; LLVM IR from rweather/lightweight-crypto :: src/combined (forkae)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local i32 @forkae_saef_128_192_aead_encrypt(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca [32 x i8], align 16
  %21 = alloca [16 x i8], align 16
  %22 = alloca [16 x i8], align 16
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca i32, align 4
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca i32, align 4
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca ptr, align 8
  %50 = alloca ptr, align 8
  %51 = alloca i32, align 4
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store i64 %3, ptr %14, align 8, !tbaa !9
  store ptr %4, ptr %15, align 8, !tbaa !5
  store i64 %5, ptr %16, align 8, !tbaa !9
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %55 = load ptr, ptr %17, align 8, !tbaa !5
  %56 = load i64, ptr %14, align 8, !tbaa !9
  %57 = add i64 %56, 16
  %58 = load ptr, ptr %12, align 8, !tbaa !5
  store i64 %57, ptr %58, align 8, !tbaa !9
  %59 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %60 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %59, ptr align 1 %60, i64 16, i1 false)
  %61 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %63 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %62, ptr align 1 %63, i64 7, i1 false)
  %64 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %65 = getelementptr inbounds i8, ptr %64, i64 16
  %66 = getelementptr inbounds i8, ptr %65, i64 7
  call void @llvm.memset.p0.i64(ptr align 1 %66, i8 0, i64 9, i1 false)
  %67 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 23
  store i8 8, ptr %67, align 1, !tbaa !11
  %68 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %68, i8 0, i64 16, i1 false)
  %69 = load i64, ptr %16, align 8, !tbaa !9
  %70 = icmp ugt i64 %69, 0
  br i1 %70, label %74, label %71

71:                                               ; preds = %9
  %72 = load i64, ptr %14, align 8, !tbaa !9
  %73 = icmp eq i64 %72, 0
  br i1 %73, label %74, label %206

74:                                               ; preds = %71, %9
  br label %75

75:                                               ; preds = %100, %74
  %76 = load i64, ptr %16, align 8, !tbaa !9
  %77 = icmp ugt i64 %76, 16
  br i1 %77, label %78, label %110

78:                                               ; preds = %75
  br label %79

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %80 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %80, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %81, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 16, ptr %25, align 4, !tbaa !12
  br label %82

82:                                               ; preds = %85, %79
  %83 = load i32, ptr %25, align 4, !tbaa !12
  %84 = icmp ugt i32 %83, 0
  br i1 %84, label %85, label %98

85:                                               ; preds = %82
  %86 = load ptr, ptr %24, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i32 1
  store ptr %87, ptr %24, align 8, !tbaa !5
  %88 = load i8, ptr %86, align 1, !tbaa !11
  %89 = zext i8 %88 to i32
  %90 = load ptr, ptr %23, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %90, i32 1
  store ptr %91, ptr %23, align 8, !tbaa !5
  %92 = load i8, ptr %90, align 1, !tbaa !11
  %93 = zext i8 %92 to i32
  %94 = xor i32 %93, %89
  %95 = trunc i32 %94 to i8
  store i8 %95, ptr %90, align 1, !tbaa !11
  %96 = load i32, ptr %25, align 4, !tbaa !12
  %97 = add i32 %96, -1
  store i32 %97, ptr %25, align 4, !tbaa !12
  br label %82, !llvm.loop !14

98:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  %101 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %102 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %103 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  call void @forkskinny_128_256_encrypt(ptr noundef %101, ptr noundef null, ptr noundef %102, ptr noundef %103)
  %104 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %105 = getelementptr inbounds i8, ptr %104, i64 16
  call void @llvm.memset.p0.i64(ptr align 1 %105, i8 0, i64 16, i1 false)
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i64 16
  store ptr %107, ptr %15, align 8, !tbaa !5
  %108 = load i64, ptr %16, align 8, !tbaa !9
  %109 = sub i64 %108, 16
  store i64 %109, ptr %16, align 8, !tbaa !9
  br label %75, !llvm.loop !16

110:                                              ; preds = %75
  %111 = load i64, ptr %14, align 8, !tbaa !9
  %112 = icmp eq i64 %111, 0
  br i1 %112, label %113, label %119

113:                                              ; preds = %110
  %114 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 23
  %115 = load i8, ptr %114, align 1, !tbaa !11
  %116 = zext i8 %115 to i32
  %117 = xor i32 %116, 4
  %118 = trunc i32 %117 to i8
  store i8 %118, ptr %114, align 1, !tbaa !11
  br label %119

119:                                              ; preds = %113, %110
  %120 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 23
  %121 = load i8, ptr %120, align 1, !tbaa !11
  %122 = zext i8 %121 to i32
  %123 = xor i32 %122, 2
  %124 = trunc i32 %123 to i8
  store i8 %124, ptr %120, align 1, !tbaa !11
  %125 = load i64, ptr %16, align 8, !tbaa !9
  %126 = icmp eq i64 %125, 16
  br i1 %126, label %127, label %155

127:                                              ; preds = %119
  br label %128

128:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %129 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %129, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %130 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %130, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 16, ptr %28, align 4, !tbaa !12
  br label %131

131:                                              ; preds = %134, %128
  %132 = load i32, ptr %28, align 4, !tbaa !12
  %133 = icmp ugt i32 %132, 0
  br i1 %133, label %134, label %147

134:                                              ; preds = %131
  %135 = load ptr, ptr %27, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %135, i32 1
  store ptr %136, ptr %27, align 8, !tbaa !5
  %137 = load i8, ptr %135, align 1, !tbaa !11
  %138 = zext i8 %137 to i32
  %139 = load ptr, ptr %26, align 8, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %139, i32 1
  store ptr %140, ptr %26, align 8, !tbaa !5
  %141 = load i8, ptr %139, align 1, !tbaa !11
  %142 = zext i8 %141 to i32
  %143 = xor i32 %142, %138
  %144 = trunc i32 %143 to i8
  store i8 %144, ptr %139, align 1, !tbaa !11
  %145 = load i32, ptr %28, align 4, !tbaa !12
  %146 = add i32 %145, -1
  store i32 %146, ptr %28, align 4, !tbaa !12
  br label %131, !llvm.loop !17

147:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  %150 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %151 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %152 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  call void @forkskinny_128_256_encrypt(ptr noundef %150, ptr noundef null, ptr noundef %151, ptr noundef %152)
  %153 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %154 = getelementptr inbounds i8, ptr %153, i64 16
  call void @llvm.memset.p0.i64(ptr align 1 %154, i8 0, i64 16, i1 false)
  br label %205

155:                                              ; preds = %119
  %156 = load i64, ptr %16, align 8, !tbaa !9
  %157 = icmp ne i64 %156, 0
  br i1 %157, label %161, label %158

158:                                              ; preds = %155
  %159 = load i64, ptr %14, align 8, !tbaa !9
  %160 = icmp eq i64 %159, 0
  br i1 %160, label %161, label %204

161:                                              ; preds = %158, %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %162 = load i64, ptr %16, align 8, !tbaa !9
  %163 = trunc i64 %162 to i32
  store i32 %163, ptr %29, align 4, !tbaa !12
  br label %164

164:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %165 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %165, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %166 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %166, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  %167 = load i32, ptr %29, align 4, !tbaa !12
  store i32 %167, ptr %32, align 4, !tbaa !12
  br label %168

168:                                              ; preds = %171, %164
  %169 = load i32, ptr %32, align 4, !tbaa !12
  %170 = icmp ugt i32 %169, 0
  br i1 %170, label %171, label %184

171:                                              ; preds = %168
  %172 = load ptr, ptr %31, align 8, !tbaa !5
  %173 = getelementptr inbounds i8, ptr %172, i32 1
  store ptr %173, ptr %31, align 8, !tbaa !5
  %174 = load i8, ptr %172, align 1, !tbaa !11
  %175 = zext i8 %174 to i32
  %176 = load ptr, ptr %30, align 8, !tbaa !5
  %177 = getelementptr inbounds i8, ptr %176, i32 1
  store ptr %177, ptr %30, align 8, !tbaa !5
  %178 = load i8, ptr %176, align 1, !tbaa !11
  %179 = zext i8 %178 to i32
  %180 = xor i32 %179, %175
  %181 = trunc i32 %180 to i8
  store i8 %181, ptr %176, align 1, !tbaa !11
  %182 = load i32, ptr %32, align 4, !tbaa !12
  %183 = add i32 %182, -1
  store i32 %183, ptr %32, align 4, !tbaa !12
  br label %168, !llvm.loop !18

184:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %29, align 4, !tbaa !12
  %188 = zext i32 %187 to i64
  %189 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 %188
  %190 = load i8, ptr %189, align 1, !tbaa !11
  %191 = zext i8 %190 to i32
  %192 = xor i32 %191, 128
  %193 = trunc i32 %192 to i8
  store i8 %193, ptr %189, align 1, !tbaa !11
  %194 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 23
  %195 = load i8, ptr %194, align 1, !tbaa !11
  %196 = zext i8 %195 to i32
  %197 = xor i32 %196, 1
  %198 = trunc i32 %197 to i8
  store i8 %198, ptr %194, align 1, !tbaa !11
  %199 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %200 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %201 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  call void @forkskinny_128_256_encrypt(ptr noundef %199, ptr noundef null, ptr noundef %200, ptr noundef %201)
  %202 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %203 = getelementptr inbounds i8, ptr %202, i64 16
  call void @llvm.memset.p0.i64(ptr align 1 %203, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %204

204:                                              ; preds = %186, %158
  br label %205

205:                                              ; preds = %204, %149
  br label %206

206:                                              ; preds = %205, %71
  %207 = load i64, ptr %14, align 8, !tbaa !9
  %208 = icmp ne i64 %207, 0
  br i1 %208, label %212, label %209

209:                                              ; preds = %206
  %210 = load ptr, ptr %11, align 8, !tbaa !5
  %211 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %210, ptr align 16 %211, i64 16, i1 false)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %33, align 4
  br label %418

212:                                              ; preds = %206
  br label %213

213:                                              ; preds = %272, %212
  %214 = load i64, ptr %14, align 8, !tbaa !9
  %215 = icmp ugt i64 %214, 16
  br i1 %215, label %216, label %283

216:                                              ; preds = %213
  br label %217

217:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  %218 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  store ptr %218, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  %219 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %219, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  %220 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %220, ptr %36, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #4
  store i32 16, ptr %37, align 4, !tbaa !12
  br label %221

221:                                              ; preds = %224, %217
  %222 = load i32, ptr %37, align 4, !tbaa !12
  %223 = icmp ugt i32 %222, 0
  br i1 %223, label %224, label %239

224:                                              ; preds = %221
  %225 = load ptr, ptr %35, align 8, !tbaa !5
  %226 = getelementptr inbounds i8, ptr %225, i32 1
  store ptr %226, ptr %35, align 8, !tbaa !5
  %227 = load i8, ptr %225, align 1, !tbaa !11
  %228 = zext i8 %227 to i32
  %229 = load ptr, ptr %36, align 8, !tbaa !5
  %230 = getelementptr inbounds i8, ptr %229, i32 1
  store ptr %230, ptr %36, align 8, !tbaa !5
  %231 = load i8, ptr %229, align 1, !tbaa !11
  %232 = zext i8 %231 to i32
  %233 = xor i32 %228, %232
  %234 = trunc i32 %233 to i8
  %235 = load ptr, ptr %34, align 8, !tbaa !5
  %236 = getelementptr inbounds i8, ptr %235, i32 1
  store ptr %236, ptr %34, align 8, !tbaa !5
  store i8 %234, ptr %235, align 1, !tbaa !11
  %237 = load i32, ptr %37, align 4, !tbaa !12
  %238 = add i32 %237, -1
  store i32 %238, ptr %37, align 4, !tbaa !12
  br label %221, !llvm.loop !19

239:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  br label %240

240:                                              ; preds = %239
  br label %241

241:                                              ; preds = %240
  %242 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 23
  %243 = load i8, ptr %242, align 1, !tbaa !11
  %244 = zext i8 %243 to i32
  %245 = xor i32 %244, 1
  %246 = trunc i32 %245 to i8
  store i8 %246, ptr %242, align 1, !tbaa !11
  %247 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %248 = load ptr, ptr %11, align 8, !tbaa !5
  %249 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %250 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  call void @forkskinny_128_256_encrypt(ptr noundef %247, ptr noundef %248, ptr noundef %249, ptr noundef %250)
  br label %251

251:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  %252 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %252, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  %253 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %253, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  store i32 16, ptr %40, align 4, !tbaa !12
  br label %254

254:                                              ; preds = %257, %251
  %255 = load i32, ptr %40, align 4, !tbaa !12
  %256 = icmp ugt i32 %255, 0
  br i1 %256, label %257, label %270

257:                                              ; preds = %254
  %258 = load ptr, ptr %39, align 8, !tbaa !5
  %259 = getelementptr inbounds i8, ptr %258, i32 1
  store ptr %259, ptr %39, align 8, !tbaa !5
  %260 = load i8, ptr %258, align 1, !tbaa !11
  %261 = zext i8 %260 to i32
  %262 = load ptr, ptr %38, align 8, !tbaa !5
  %263 = getelementptr inbounds i8, ptr %262, i32 1
  store ptr %263, ptr %38, align 8, !tbaa !5
  %264 = load i8, ptr %262, align 1, !tbaa !11
  %265 = zext i8 %264 to i32
  %266 = xor i32 %265, %261
  %267 = trunc i32 %266 to i8
  store i8 %267, ptr %262, align 1, !tbaa !11
  %268 = load i32, ptr %40, align 4, !tbaa !12
  %269 = add i32 %268, -1
  store i32 %269, ptr %40, align 4, !tbaa !12
  br label %254, !llvm.loop !20

270:                                              ; preds = %254
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #4
  br label %271

271:                                              ; preds = %270
  br label %272

272:                                              ; preds = %271
  %273 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %274 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %273, ptr align 16 %274, i64 16, i1 false)
  %275 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %276 = getelementptr inbounds i8, ptr %275, i64 16
  call void @llvm.memset.p0.i64(ptr align 1 %276, i8 0, i64 16, i1 false)
  %277 = load ptr, ptr %11, align 8, !tbaa !5
  %278 = getelementptr inbounds i8, ptr %277, i64 16
  store ptr %278, ptr %11, align 8, !tbaa !5
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  %280 = getelementptr inbounds i8, ptr %279, i64 16
  store ptr %280, ptr %13, align 8, !tbaa !5
  %281 = load i64, ptr %14, align 8, !tbaa !9
  %282 = sub i64 %281, 16
  store i64 %282, ptr %14, align 8, !tbaa !9
  br label %213, !llvm.loop !21

283:                                              ; preds = %213
  %284 = load i64, ptr %14, align 8, !tbaa !9
  %285 = icmp eq i64 %284, 16
  br i1 %285, label %286, label %346

286:                                              ; preds = %283
  br label %287

287:                                              ; preds = %286
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #4
  %288 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  store ptr %288, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #4
  %289 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %289, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  %290 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %290, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #4
  store i32 16, ptr %44, align 4, !tbaa !12
  br label %291

291:                                              ; preds = %294, %287
  %292 = load i32, ptr %44, align 4, !tbaa !12
  %293 = icmp ugt i32 %292, 0
  br i1 %293, label %294, label %309

294:                                              ; preds = %291
  %295 = load ptr, ptr %42, align 8, !tbaa !5
  %296 = getelementptr inbounds i8, ptr %295, i32 1
  store ptr %296, ptr %42, align 8, !tbaa !5
  %297 = load i8, ptr %295, align 1, !tbaa !11
  %298 = zext i8 %297 to i32
  %299 = load ptr, ptr %43, align 8, !tbaa !5
  %300 = getelementptr inbounds i8, ptr %299, i32 1
  store ptr %300, ptr %43, align 8, !tbaa !5
  %301 = load i8, ptr %299, align 1, !tbaa !11
  %302 = zext i8 %301 to i32
  %303 = xor i32 %298, %302
  %304 = trunc i32 %303 to i8
  %305 = load ptr, ptr %41, align 8, !tbaa !5
  %306 = getelementptr inbounds i8, ptr %305, i32 1
  store ptr %306, ptr %41, align 8, !tbaa !5
  store i8 %304, ptr %305, align 1, !tbaa !11
  %307 = load i32, ptr %44, align 4, !tbaa !12
  %308 = add i32 %307, -1
  store i32 %308, ptr %44, align 4, !tbaa !12
  br label %291, !llvm.loop !22

309:                                              ; preds = %291
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #4
  br label %310

310:                                              ; preds = %309
  br label %311

311:                                              ; preds = %310
  %312 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 23
  %313 = load i8, ptr %312, align 1, !tbaa !11
  %314 = zext i8 %313 to i32
  %315 = xor i32 %314, 4
  %316 = trunc i32 %315 to i8
  store i8 %316, ptr %312, align 1, !tbaa !11
  %317 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %318 = load ptr, ptr %11, align 8, !tbaa !5
  %319 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %320 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  call void @forkskinny_128_256_encrypt(ptr noundef %317, ptr noundef %318, ptr noundef %319, ptr noundef %320)
  br label %321

321:                                              ; preds = %311
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #4
  %322 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %322, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  %323 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %323, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #4
  store i32 16, ptr %47, align 4, !tbaa !12
  br label %324

324:                                              ; preds = %327, %321
  %325 = load i32, ptr %47, align 4, !tbaa !12
  %326 = icmp ugt i32 %325, 0
  br i1 %326, label %327, label %340

327:                                              ; preds = %324
  %328 = load ptr, ptr %46, align 8, !tbaa !5
  %329 = getelementptr inbounds i8, ptr %328, i32 1
  store ptr %329, ptr %46, align 8, !tbaa !5
  %330 = load i8, ptr %328, align 1, !tbaa !11
  %331 = zext i8 %330 to i32
  %332 = load ptr, ptr %45, align 8, !tbaa !5
  %333 = getelementptr inbounds i8, ptr %332, i32 1
  store ptr %333, ptr %45, align 8, !tbaa !5
  %334 = load i8, ptr %332, align 1, !tbaa !11
  %335 = zext i8 %334 to i32
  %336 = xor i32 %335, %331
  %337 = trunc i32 %336 to i8
  store i8 %337, ptr %332, align 1, !tbaa !11
  %338 = load i32, ptr %47, align 4, !tbaa !12
  %339 = add i32 %338, -1
  store i32 %339, ptr %47, align 4, !tbaa !12
  br label %324, !llvm.loop !23

340:                                              ; preds = %324
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #4
  br label %341

341:                                              ; preds = %340
  br label %342

342:                                              ; preds = %341
  %343 = load ptr, ptr %11, align 8, !tbaa !5
  %344 = getelementptr inbounds i8, ptr %343, i64 16
  %345 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %344, ptr align 16 %345, i64 16, i1 false)
  br label %417

346:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #4
  %347 = load i64, ptr %14, align 8, !tbaa !9
  %348 = trunc i64 %347 to i32
  store i32 %348, ptr %48, align 4, !tbaa !12
  %349 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %350 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %349, ptr align 16 %350, i64 16, i1 false)
  br label %351

351:                                              ; preds = %346
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #4
  %352 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  store ptr %352, ptr %49, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %50) #4
  %353 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %353, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #4
  %354 = load i32, ptr %48, align 4, !tbaa !12
  store i32 %354, ptr %51, align 4, !tbaa !12
  br label %355

355:                                              ; preds = %358, %351
  %356 = load i32, ptr %51, align 4, !tbaa !12
  %357 = icmp ugt i32 %356, 0
  br i1 %357, label %358, label %371

358:                                              ; preds = %355
  %359 = load ptr, ptr %50, align 8, !tbaa !5
  %360 = getelementptr inbounds i8, ptr %359, i32 1
  store ptr %360, ptr %50, align 8, !tbaa !5
  %361 = load i8, ptr %359, align 1, !tbaa !11
  %362 = zext i8 %361 to i32
  %363 = load ptr, ptr %49, align 8, !tbaa !5
  %364 = getelementptr inbounds i8, ptr %363, i32 1
  store ptr %364, ptr %49, align 8, !tbaa !5
  %365 = load i8, ptr %363, align 1, !tbaa !11
  %366 = zext i8 %365 to i32
  %367 = xor i32 %366, %362
  %368 = trunc i32 %367 to i8
  store i8 %368, ptr %363, align 1, !tbaa !11
  %369 = load i32, ptr %51, align 4, !tbaa !12
  %370 = add i32 %369, -1
  store i32 %370, ptr %51, align 4, !tbaa !12
  br label %355, !llvm.loop !24

371:                                              ; preds = %355
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %50) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #4
  br label %372

372:                                              ; preds = %371
  br label %373

373:                                              ; preds = %372
  %374 = load i32, ptr %48, align 4, !tbaa !12
  %375 = zext i32 %374 to i64
  %376 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 %375
  %377 = load i8, ptr %376, align 1, !tbaa !11
  %378 = zext i8 %377 to i32
  %379 = xor i32 %378, 128
  %380 = trunc i32 %379 to i8
  store i8 %380, ptr %376, align 1, !tbaa !11
  %381 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 23
  %382 = load i8, ptr %381, align 1, !tbaa !11
  %383 = zext i8 %382 to i32
  %384 = xor i32 %383, 5
  %385 = trunc i32 %384 to i8
  store i8 %385, ptr %381, align 1, !tbaa !11
  %386 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %387 = load ptr, ptr %11, align 8, !tbaa !5
  %388 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %389 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  call void @forkskinny_128_256_encrypt(ptr noundef %386, ptr noundef %387, ptr noundef %388, ptr noundef %389)
  br label %390

390:                                              ; preds = %373
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #4
  %391 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %391, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #4
  %392 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %392, ptr %53, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #4
  store i32 16, ptr %54, align 4, !tbaa !12
  br label %393

393:                                              ; preds = %396, %390
  %394 = load i32, ptr %54, align 4, !tbaa !12
  %395 = icmp ugt i32 %394, 0
  br i1 %395, label %396, label %409

396:                                              ; preds = %393
  %397 = load ptr, ptr %53, align 8, !tbaa !5
  %398 = getelementptr inbounds i8, ptr %397, i32 1
  store ptr %398, ptr %53, align 8, !tbaa !5
  %399 = load i8, ptr %397, align 1, !tbaa !11
  %400 = zext i8 %399 to i32
  %401 = load ptr, ptr %52, align 8, !tbaa !5
  %402 = getelementptr inbounds i8, ptr %401, i32 1
  store ptr %402, ptr %52, align 8, !tbaa !5
  %403 = load i8, ptr %401, align 1, !tbaa !11
  %404 = zext i8 %403 to i32
  %405 = xor i32 %404, %400
  %406 = trunc i32 %405 to i8
  store i8 %406, ptr %401, align 1, !tbaa !11
  %407 = load i32, ptr %54, align 4, !tbaa !12
  %408 = add i32 %407, -1
  store i32 %408, ptr %54, align 4, !tbaa !12
  br label %393, !llvm.loop !25

409:                                              ; preds = %393
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #4
  br label %410

410:                                              ; preds = %409
  br label %411

411:                                              ; preds = %410
  %412 = load ptr, ptr %11, align 8, !tbaa !5
  %413 = getelementptr inbounds i8, ptr %412, i64 16
  %414 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %415 = load i32, ptr %48, align 4, !tbaa !12
  %416 = zext i32 %415 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %413, ptr align 16 %414, i64 %416, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #4
  br label %417

417:                                              ; preds = %411, %342
  store i32 0, ptr %10, align 4
  store i32 1, ptr %33, align 4
  br label %418

418:                                              ; preds = %417, %209
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #4
  %419 = load i32, ptr %10, align 4
  ret i32 %419
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @forkskinny_128_256_encrypt(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = distinct !{!22, !15}
!23 = distinct !{!23, !15}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @forkae_saef_128_192_aead_encrypt(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef readonly %2, i64 noundef %3, ptr nocapture noundef readonly %4, i64 noundef %5, ptr nocapture noundef readnone %6, ptr nocapture noundef readonly %7, ptr nocapture noundef readonly %8) local_unnamed_addr #0 {
  %10 = alloca [32 x i8], align 16
  %11 = alloca [16 x i8], align 16
  %12 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  %13 = add i64 %3, 16
  store i64 %13, ptr %1, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %10, ptr noundef nonnull align 1 dereferenceable(16) %8, i64 16, i1 false)
  %14 = getelementptr inbounds i8, ptr %10, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(7) %14, ptr noundef nonnull align 1 dereferenceable(7) %7, i64 7, i1 false)
  %15 = getelementptr inbounds i8, ptr %10, i64 23
  %16 = getelementptr inbounds i8, ptr %10, i64 24
  store i64 0, ptr %16, align 8
  store i8 8, ptr %15, align 1, !tbaa !9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %11, i8 0, i64 16, i1 false)
  %17 = icmp ne i64 %5, 0
  %18 = icmp eq i64 %3, 0
  %or.cond = or i1 %18, %17
  br i1 %or.cond, label %.preheader131, label %.preheader128

.preheader131:                                    ; preds = %9
  %19 = icmp ugt i64 %5, 16
  br i1 %19, label %.preheader130, label %._crit_edge

.preheader130:                                    ; preds = %.preheader131, %.preheader130
  %.0115136 = phi ptr [ %23, %.preheader130 ], [ %4, %.preheader131 ]
  %.0116135 = phi i64 [ %24, %.preheader130 ], [ %5, %.preheader131 ]
  %20 = load <16 x i8>, ptr %.0115136, align 1, !tbaa !9
  %21 = load <16 x i8>, ptr %11, align 16, !tbaa !9
  %22 = xor <16 x i8> %21, %20
  store <16 x i8> %22, ptr %11, align 16, !tbaa !9
  call void @forkskinny_128_256_encrypt(ptr noundef nonnull %10, ptr noundef null, ptr noundef nonnull %11, ptr noundef nonnull %11)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  %23 = getelementptr inbounds i8, ptr %.0115136, i64 16
  %24 = add i64 %.0116135, -16
  %25 = icmp ugt i64 %24, 16
  br i1 %25, label %.preheader130, label %._crit_edge, !llvm.loop !10

._crit_edge:                                      ; preds = %.preheader130, %.preheader131
  %26 = phi i8 [ 8, %.preheader131 ], [ 0, %.preheader130 ]
  %.0116.lcssa = phi i64 [ %5, %.preheader131 ], [ %24, %.preheader130 ]
  %.0115.lcssa = phi ptr [ %4, %.preheader131 ], [ %23, %.preheader130 ]
  %27 = or disjoint i8 %26, 4
  %spec.select = select i1 %18, i8 %27, i8 %26
  %28 = or disjoint i8 %spec.select, 2
  store i8 %28, ptr %15, align 1, !tbaa !9
  %29 = icmp eq i64 %.0116.lcssa, 16
  br i1 %29, label %.preheader129.preheader, label %33

.preheader129.preheader:                          ; preds = %._crit_edge
  %30 = load <16 x i8>, ptr %.0115.lcssa, align 1, !tbaa !9
  %31 = load <16 x i8>, ptr %11, align 16, !tbaa !9
  %32 = xor <16 x i8> %31, %30
  store <16 x i8> %32, ptr %11, align 16, !tbaa !9
  br label %83

33:                                               ; preds = %._crit_edge
  %34 = icmp ne i64 %.0116.lcssa, 0
  %or.cond3 = or i1 %18, %34
  br i1 %or.cond3, label %35, label %.preheader128

35:                                               ; preds = %33
  %.not138 = icmp eq i64 %.0116.lcssa, 0
  br i1 %.not138, label %._crit_edge143, label %iter.check

iter.check:                                       ; preds = %35
  %36 = trunc nuw i64 %.0116.lcssa to i32
  %37 = add nuw nsw i64 %.0116.lcssa, 4294967295
  %38 = and i64 %37, 4294967295
  %39 = add nuw nsw i64 %38, 1
  %min.iters.check = icmp ult i64 %38, 7
  br i1 %min.iters.check, label %.lr.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %iter.check
  %40 = add nuw nsw i64 %.0116.lcssa, 4294967295
  %41 = and i64 %40, 4294967295
  %42 = add nuw nsw i64 %41, 1
  %scevgep = getelementptr i8, ptr %11, i64 %42
  %scevgep190 = getelementptr i8, ptr %.0115.lcssa, i64 %42
  %bound0 = icmp ult ptr %11, %scevgep190
  %bound1 = icmp ult ptr %.0115.lcssa, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %vector.memcheck
  %min.iters.check191 = icmp ult i64 %38, 31
  br i1 %min.iters.check191, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %39, 8589934560
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %next.gep = getelementptr i8, ptr %.0115.lcssa, i64 %index
  %next.gep193 = getelementptr i8, ptr %11, i64 %index
  %43 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load = load <16 x i8>, ptr %next.gep, align 1, !tbaa !9, !alias.scope !12
  %wide.load195 = load <16 x i8>, ptr %43, align 1, !tbaa !9, !alias.scope !12
  %44 = getelementptr i8, ptr %next.gep193, i64 16
  %wide.load196 = load <16 x i8>, ptr %next.gep193, align 16, !tbaa !9, !alias.scope !15, !noalias !12
  %wide.load197 = load <16 x i8>, ptr %44, align 16, !tbaa !9, !alias.scope !15, !noalias !12
  %45 = xor <16 x i8> %wide.load196, %wide.load
  %46 = xor <16 x i8> %wide.load197, %wide.load195
  store <16 x i8> %45, ptr %next.gep193, align 16, !tbaa !9, !alias.scope !15, !noalias !12
  store <16 x i8> %46, ptr %44, align 16, !tbaa !9, !alias.scope !15, !noalias !12
  %index.next = add nuw i64 %index, 32
  %47 = icmp eq i64 %index.next, %n.vec
  br i1 %47, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %39, %n.vec
  br i1 %cmp.n, label %._crit_edge143, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end206 = getelementptr i8, ptr %11, i64 %n.vec
  %ind.end203 = getelementptr i8, ptr %.0115.lcssa, i64 %n.vec
  %.cast200 = trunc i64 %n.vec to i32
  %ind.end201 = sub i32 %36, %.cast200
  %n.vec.remaining = and i64 %39, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph.preheader, label %vec.epilog.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec199 = and i64 %39, 8589934584
  %.cast = trunc i64 %n.vec199 to i32
  %ind.end = sub i32 %36, %.cast
  %ind.end202 = getelementptr i8, ptr %.0115.lcssa, i64 %n.vec199
  %ind.end205 = getelementptr i8, ptr %11, i64 %n.vec199
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index208 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next213, %vec.epilog.vector.body ]
  %next.gep209 = getelementptr i8, ptr %.0115.lcssa, i64 %index208
  %next.gep210 = getelementptr i8, ptr %11, i64 %index208
  %wide.load211 = load <8 x i8>, ptr %next.gep209, align 1, !tbaa !9, !alias.scope !20
  %wide.load212 = load <8 x i8>, ptr %next.gep210, align 8, !tbaa !9, !alias.scope !23, !noalias !20
  %48 = xor <8 x i8> %wide.load212, %wide.load211
  store <8 x i8> %48, ptr %next.gep210, align 8, !tbaa !9, !alias.scope !23, !noalias !20
  %index.next213 = add nuw i64 %index208, 8
  %49 = icmp eq i64 %index.next213, %n.vec199
  br i1 %49, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !25

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n214 = icmp eq i64 %39, %n.vec199
  br i1 %cmp.n214, label %._crit_edge143, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %vector.memcheck, %iter.check, %vec.epilog.iter.check
  %.0103141.ph = phi i32 [ %36, %iter.check ], [ %36, %vector.memcheck ], [ %ind.end201, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  %.0104140.ph = phi ptr [ %.0115.lcssa, %iter.check ], [ %.0115.lcssa, %vector.memcheck ], [ %ind.end203, %vec.epilog.iter.check ], [ %ind.end202, %vec.epilog.middle.block ]
  %.0105139.ph = phi ptr [ %11, %iter.check ], [ %11, %vector.memcheck ], [ %ind.end206, %vec.epilog.iter.check ], [ %ind.end205, %vec.epilog.middle.block ]
  %50 = add nsw i32 %.0103141.ph, -1
  %xtraiter = and i32 %.0103141.ph, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %.0103141.prol = phi i32 [ %56, %.lr.ph.prol ], [ %.0103141.ph, %.lr.ph.preheader ]
  %.0104140.prol = phi ptr [ %51, %.lr.ph.prol ], [ %.0104140.ph, %.lr.ph.preheader ]
  %.0105139.prol = phi ptr [ %53, %.lr.ph.prol ], [ %.0105139.ph, %.lr.ph.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %51 = getelementptr inbounds i8, ptr %.0104140.prol, i64 1
  %52 = load i8, ptr %.0104140.prol, align 1, !tbaa !9
  %53 = getelementptr inbounds i8, ptr %.0105139.prol, i64 1
  %54 = load i8, ptr %.0105139.prol, align 1, !tbaa !9
  %55 = xor i8 %54, %52
  store i8 %55, ptr %.0105139.prol, align 1, !tbaa !9
  %56 = add nsw i32 %.0103141.prol, -1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !26

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.0103141.unr = phi i32 [ %.0103141.ph, %.lr.ph.preheader ], [ %56, %.lr.ph.prol ]
  %.0104140.unr = phi ptr [ %.0104140.ph, %.lr.ph.preheader ], [ %51, %.lr.ph.prol ]
  %.0105139.unr = phi ptr [ %.0105139.ph, %.lr.ph.preheader ], [ %53, %.lr.ph.prol ]
  %57 = icmp ult i32 %50, 3
  br i1 %57, label %._crit_edge143, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.0103141 = phi i32 [ %78, %.lr.ph ], [ %.0103141.unr, %.lr.ph.prol.loopexit ]
  %.0104140 = phi ptr [ %73, %.lr.ph ], [ %.0104140.unr, %.lr.ph.prol.loopexit ]
  %.0105139 = phi ptr [ %75, %.lr.ph ], [ %.0105139.unr, %.lr.ph.prol.loopexit ]
  %58 = getelementptr inbounds i8, ptr %.0104140, i64 1
  %59 = load i8, ptr %.0104140, align 1, !tbaa !9
  %60 = getelementptr inbounds i8, ptr %.0105139, i64 1
  %61 = load i8, ptr %.0105139, align 1, !tbaa !9
  %62 = xor i8 %61, %59
  store i8 %62, ptr %.0105139, align 1, !tbaa !9
  %63 = getelementptr inbounds i8, ptr %.0104140, i64 2
  %64 = load i8, ptr %58, align 1, !tbaa !9
  %65 = getelementptr inbounds i8, ptr %.0105139, i64 2
  %66 = load i8, ptr %60, align 1, !tbaa !9
  %67 = xor i8 %66, %64
  store i8 %67, ptr %60, align 1, !tbaa !9
  %68 = getelementptr inbounds i8, ptr %.0104140, i64 3
  %69 = load i8, ptr %63, align 1, !tbaa !9
  %70 = getelementptr inbounds i8, ptr %.0105139, i64 3
  %71 = load i8, ptr %65, align 1, !tbaa !9
  %72 = xor i8 %71, %69
  store i8 %72, ptr %65, align 1, !tbaa !9
  %73 = getelementptr inbounds i8, ptr %.0104140, i64 4
  %74 = load i8, ptr %68, align 1, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %.0105139, i64 4
  %76 = load i8, ptr %70, align 1, !tbaa !9
  %77 = xor i8 %76, %74
  store i8 %77, ptr %70, align 1, !tbaa !9
  %78 = add nsw i32 %.0103141, -4
  %.not.3 = icmp eq i32 %78, 0
  br i1 %.not.3, label %._crit_edge143, label %.lr.ph, !llvm.loop !28

._crit_edge143:                                   ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %vec.epilog.middle.block, %35
  %79 = getelementptr inbounds [16 x i8], ptr %11, i64 0, i64 %.0116.lcssa
  %80 = load i8, ptr %79, align 1, !tbaa !9
  %81 = xor i8 %80, -128
  store i8 %81, ptr %79, align 1, !tbaa !9
  %82 = or disjoint i8 %spec.select, 3
  store i8 %82, ptr %15, align 1, !tbaa !9
  br label %83

83:                                               ; preds = %.preheader129.preheader, %._crit_edge143
  call void @forkskinny_128_256_encrypt(ptr noundef nonnull %10, ptr noundef null, ptr noundef nonnull %11, ptr noundef nonnull %11)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  br i1 %18, label %86, label %.preheader128

.preheader128:                                    ; preds = %9, %33, %83
  %84 = phi i8 [ 0, %83 ], [ 8, %9 ], [ %28, %33 ]
  %85 = icmp ugt i64 %3, 16
  br i1 %85, label %.preheader127, label %._crit_edge157

86:                                               ; preds = %83
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(16) %0, ptr noundef nonnull align 16 dereferenceable(16) %11, i64 16, i1 false)
  br label %311

.preheader127:                                    ; preds = %.preheader128, %.preheader127
  %.0106156 = phi ptr [ %95, %.preheader127 ], [ %0, %.preheader128 ]
  %.0113155 = phi ptr [ %96, %.preheader127 ], [ %2, %.preheader128 ]
  %.0114154 = phi i64 [ %97, %.preheader127 ], [ %3, %.preheader128 ]
  %87 = load <16 x i8>, ptr %.0113155, align 1, !tbaa !9
  %88 = load <16 x i8>, ptr %11, align 16, !tbaa !9
  %89 = xor <16 x i8> %88, %87
  store <16 x i8> %89, ptr %12, align 16, !tbaa !9
  %90 = load i8, ptr %15, align 1, !tbaa !9
  %91 = xor i8 %90, 1
  store i8 %91, ptr %15, align 1, !tbaa !9
  call void @forkskinny_128_256_encrypt(ptr noundef nonnull %10, ptr noundef %.0106156, ptr noundef nonnull %12, ptr noundef nonnull %12)
  %92 = load <16 x i8>, ptr %11, align 16, !tbaa !9
  %93 = load <16 x i8>, ptr %.0106156, align 1, !tbaa !9
  %94 = xor <16 x i8> %93, %92
  store <16 x i8> %94, ptr %.0106156, align 1, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %11, ptr noundef nonnull align 16 dereferenceable(16) %12, i64 16, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  %95 = getelementptr inbounds i8, ptr %.0106156, i64 16
  %96 = getelementptr inbounds i8, ptr %.0113155, i64 16
  %97 = add i64 %.0114154, -16
  %98 = icmp ugt i64 %97, 16
  br i1 %98, label %.preheader127, label %._crit_edge157, !llvm.loop !29

._crit_edge157:                                   ; preds = %.preheader127, %.preheader128
  %99 = phi i8 [ %84, %.preheader128 ], [ 0, %.preheader127 ]
  %.0114.lcssa = phi i64 [ %3, %.preheader128 ], [ %97, %.preheader127 ]
  %.0113.lcssa = phi ptr [ %2, %.preheader128 ], [ %96, %.preheader127 ]
  %.0106.lcssa = phi ptr [ %0, %.preheader128 ], [ %95, %.preheader127 ]
  %100 = icmp eq i64 %.0114.lcssa, 16
  br i1 %100, label %.preheader.preheader, label %iter.check224

.preheader.preheader:                             ; preds = %._crit_edge157
  %101 = getelementptr inbounds i8, ptr %11, i64 1
  %102 = getelementptr inbounds i8, ptr %11, i64 2
  %103 = getelementptr inbounds i8, ptr %11, i64 3
  %104 = getelementptr inbounds i8, ptr %11, i64 4
  %105 = getelementptr inbounds i8, ptr %11, i64 5
  %106 = getelementptr inbounds i8, ptr %11, i64 6
  %107 = getelementptr inbounds i8, ptr %11, i64 7
  %108 = getelementptr inbounds i8, ptr %11, i64 8
  %109 = getelementptr inbounds i8, ptr %11, i64 9
  %110 = getelementptr inbounds i8, ptr %11, i64 10
  %111 = getelementptr inbounds i8, ptr %11, i64 11
  %112 = getelementptr inbounds i8, ptr %11, i64 12
  %113 = getelementptr inbounds i8, ptr %11, i64 13
  %114 = getelementptr inbounds i8, ptr %11, i64 14
  %115 = getelementptr inbounds i8, ptr %11, i64 15
  %116 = load <16 x i8>, ptr %.0113.lcssa, align 1, !tbaa !9
  %117 = load <16 x i8>, ptr %11, align 16, !tbaa !9
  %118 = xor <16 x i8> %117, %116
  store <16 x i8> %118, ptr %12, align 16, !tbaa !9
  %119 = load i8, ptr %15, align 1, !tbaa !9
  %120 = xor i8 %119, 4
  store i8 %120, ptr %15, align 1, !tbaa !9
  call void @forkskinny_128_256_encrypt(ptr noundef nonnull %10, ptr noundef %.0106.lcssa, ptr noundef nonnull %12, ptr noundef nonnull %12)
  %121 = load i8, ptr %11, align 16, !tbaa !9
  %122 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 1
  %123 = load i8, ptr %.0106.lcssa, align 1, !tbaa !9
  %124 = xor i8 %123, %121
  store i8 %124, ptr %.0106.lcssa, align 1, !tbaa !9
  %125 = load i8, ptr %101, align 1, !tbaa !9
  %126 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 2
  %127 = load i8, ptr %122, align 1, !tbaa !9
  %128 = xor i8 %127, %125
  store i8 %128, ptr %122, align 1, !tbaa !9
  %129 = load i8, ptr %102, align 2, !tbaa !9
  %130 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 3
  %131 = load i8, ptr %126, align 1, !tbaa !9
  %132 = xor i8 %131, %129
  store i8 %132, ptr %126, align 1, !tbaa !9
  %133 = load i8, ptr %103, align 1, !tbaa !9
  %134 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 4
  %135 = load i8, ptr %130, align 1, !tbaa !9
  %136 = xor i8 %135, %133
  store i8 %136, ptr %130, align 1, !tbaa !9
  %137 = load i8, ptr %104, align 4, !tbaa !9
  %138 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 5
  %139 = load i8, ptr %134, align 1, !tbaa !9
  %140 = xor i8 %139, %137
  store i8 %140, ptr %134, align 1, !tbaa !9
  %141 = load i8, ptr %105, align 1, !tbaa !9
  %142 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 6
  %143 = load i8, ptr %138, align 1, !tbaa !9
  %144 = xor i8 %143, %141
  store i8 %144, ptr %138, align 1, !tbaa !9
  %145 = load i8, ptr %106, align 2, !tbaa !9
  %146 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 7
  %147 = load i8, ptr %142, align 1, !tbaa !9
  %148 = xor i8 %147, %145
  store i8 %148, ptr %142, align 1, !tbaa !9
  %149 = load i8, ptr %107, align 1, !tbaa !9
  %150 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 8
  %151 = load i8, ptr %146, align 1, !tbaa !9
  %152 = xor i8 %151, %149
  store i8 %152, ptr %146, align 1, !tbaa !9
  %153 = load i8, ptr %108, align 8, !tbaa !9
  %154 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 9
  %155 = load i8, ptr %150, align 1, !tbaa !9
  %156 = xor i8 %155, %153
  store i8 %156, ptr %150, align 1, !tbaa !9
  %157 = load i8, ptr %109, align 1, !tbaa !9
  %158 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 10
  %159 = load i8, ptr %154, align 1, !tbaa !9
  %160 = xor i8 %159, %157
  store i8 %160, ptr %154, align 1, !tbaa !9
  %161 = load i8, ptr %110, align 2, !tbaa !9
  %162 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 11
  %163 = load i8, ptr %158, align 1, !tbaa !9
  %164 = xor i8 %163, %161
  store i8 %164, ptr %158, align 1, !tbaa !9
  %165 = load i8, ptr %111, align 1, !tbaa !9
  %166 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 12
  %167 = load i8, ptr %162, align 1, !tbaa !9
  %168 = xor i8 %167, %165
  store i8 %168, ptr %162, align 1, !tbaa !9
  %169 = load i8, ptr %112, align 4, !tbaa !9
  %170 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 13
  %171 = load i8, ptr %166, align 1, !tbaa !9
  %172 = xor i8 %171, %169
  store i8 %172, ptr %166, align 1, !tbaa !9
  %173 = load i8, ptr %113, align 1, !tbaa !9
  %174 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 14
  %175 = load i8, ptr %170, align 1, !tbaa !9
  %176 = xor i8 %175, %173
  store i8 %176, ptr %170, align 1, !tbaa !9
  %177 = load i8, ptr %114, align 2, !tbaa !9
  %178 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 15
  %179 = load i8, ptr %174, align 1, !tbaa !9
  %180 = xor i8 %179, %177
  store i8 %180, ptr %174, align 1, !tbaa !9
  %181 = load i8, ptr %115, align 1, !tbaa !9
  %182 = load i8, ptr %178, align 1, !tbaa !9
  %183 = xor i8 %182, %181
  store i8 %183, ptr %178, align 1, !tbaa !9
  %184 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(16) %184, ptr noundef nonnull align 16 dereferenceable(16) %12, i64 16, i1 false)
  br label %311

iter.check224:                                    ; preds = %._crit_edge157
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %12, ptr noundef nonnull align 16 dereferenceable(16) %11, i64 16, i1 false)
  %185 = trunc nuw i64 %.0114.lcssa to i32
  %186 = add nuw nsw i64 %.0114.lcssa, 4294967295
  %187 = and i64 %186, 4294967295
  %188 = add nuw nsw i64 %187, 1
  %min.iters.check222 = icmp ult i64 %187, 7
  br i1 %min.iters.check222, label %.lr.ph166.preheader, label %vector.memcheck215

vector.memcheck215:                               ; preds = %iter.check224
  %189 = add nuw nsw i64 %.0114.lcssa, 4294967295
  %190 = and i64 %189, 4294967295
  %191 = add nuw nsw i64 %190, 1
  %scevgep216 = getelementptr i8, ptr %12, i64 %191
  %scevgep217 = getelementptr i8, ptr %.0113.lcssa, i64 %191
  %bound0218 = icmp ult ptr %12, %scevgep217
  %bound1219 = icmp ult ptr %.0113.lcssa, %scevgep216
  %found.conflict220 = and i1 %bound0218, %bound1219
  br i1 %found.conflict220, label %.lr.ph166.preheader, label %vector.main.loop.iter.check226

vector.main.loop.iter.check226:                   ; preds = %vector.memcheck215
  %min.iters.check225 = icmp ult i64 %187, 31
  br i1 %min.iters.check225, label %vec.epilog.ph244, label %vector.ph227

vector.ph227:                                     ; preds = %vector.main.loop.iter.check226
  %n.vec229 = and i64 %188, 8589934560
  br label %vector.body230

vector.body230:                                   ; preds = %vector.body230, %vector.ph227
  %index231 = phi i64 [ 0, %vector.ph227 ], [ %index.next240, %vector.body230 ]
  %next.gep232 = getelementptr i8, ptr %.0113.lcssa, i64 %index231
  %next.gep234 = getelementptr i8, ptr %12, i64 %index231
  %192 = getelementptr i8, ptr %next.gep232, i64 16
  %wide.load236 = load <16 x i8>, ptr %next.gep232, align 1, !tbaa !9, !alias.scope !30
  %wide.load237 = load <16 x i8>, ptr %192, align 1, !tbaa !9, !alias.scope !30
  %193 = getelementptr i8, ptr %next.gep234, i64 16
  %wide.load238 = load <16 x i8>, ptr %next.gep234, align 16, !tbaa !9, !alias.scope !33, !noalias !30
  %wide.load239 = load <16 x i8>, ptr %193, align 16, !tbaa !9, !alias.scope !33, !noalias !30
  %194 = xor <16 x i8> %wide.load238, %wide.load236
  %195 = xor <16 x i8> %wide.load239, %wide.load237
  store <16 x i8> %194, ptr %next.gep234, align 16, !tbaa !9, !alias.scope !33, !noalias !30
  store <16 x i8> %195, ptr %193, align 16, !tbaa !9, !alias.scope !33, !noalias !30
  %index.next240 = add nuw i64 %index231, 32
  %196 = icmp eq i64 %index.next240, %n.vec229
  br i1 %196, label %middle.block221, label %vector.body230, !llvm.loop !35

middle.block221:                                  ; preds = %vector.body230
  %cmp.n241 = icmp eq i64 %188, %n.vec229
  br i1 %cmp.n241, label %._crit_edge167, label %vec.epilog.iter.check245

vec.epilog.iter.check245:                         ; preds = %middle.block221
  %ind.end260 = getelementptr i8, ptr %12, i64 %n.vec229
  %ind.end257 = getelementptr i8, ptr %.0113.lcssa, i64 %n.vec229
  %.cast253 = trunc i64 %n.vec229 to i32
  %ind.end254 = sub i32 %185, %.cast253
  %n.vec.remaining246 = and i64 %188, 24
  %min.epilog.iters.check247 = icmp eq i64 %n.vec.remaining246, 0
  br i1 %min.epilog.iters.check247, label %.lr.ph166.preheader, label %vec.epilog.ph244

vec.epilog.ph244:                                 ; preds = %vector.main.loop.iter.check226, %vec.epilog.iter.check245
  %vec.epilog.resume.val248 = phi i64 [ %n.vec229, %vec.epilog.iter.check245 ], [ 0, %vector.main.loop.iter.check226 ]
  %n.vec250 = and i64 %188, 8589934584
  %.cast251 = trunc i64 %n.vec250 to i32
  %ind.end252 = sub i32 %185, %.cast251
  %ind.end256 = getelementptr i8, ptr %.0113.lcssa, i64 %n.vec250
  %ind.end259 = getelementptr i8, ptr %12, i64 %n.vec250
  br label %vec.epilog.vector.body262

vec.epilog.vector.body262:                        ; preds = %vec.epilog.vector.body262, %vec.epilog.ph244
  %index263 = phi i64 [ %vec.epilog.resume.val248, %vec.epilog.ph244 ], [ %index.next268, %vec.epilog.vector.body262 ]
  %next.gep264 = getelementptr i8, ptr %.0113.lcssa, i64 %index263
  %next.gep265 = getelementptr i8, ptr %12, i64 %index263
  %wide.load266 = load <8 x i8>, ptr %next.gep264, align 1, !tbaa !9, !alias.scope !36
  %wide.load267 = load <8 x i8>, ptr %next.gep265, align 8, !tbaa !9, !alias.scope !39, !noalias !36
  %197 = xor <8 x i8> %wide.load267, %wide.load266
  store <8 x i8> %197, ptr %next.gep265, align 8, !tbaa !9, !alias.scope !39, !noalias !36
  %index.next268 = add nuw i64 %index263, 8
  %198 = icmp eq i64 %index.next268, %n.vec250
  br i1 %198, label %vec.epilog.middle.block242, label %vec.epilog.vector.body262, !llvm.loop !41

vec.epilog.middle.block242:                       ; preds = %vec.epilog.vector.body262
  %cmp.n269 = icmp eq i64 %188, %n.vec250
  br i1 %cmp.n269, label %._crit_edge167, label %.lr.ph166.preheader

.lr.ph166.preheader:                              ; preds = %vec.epilog.middle.block242, %vector.memcheck215, %iter.check224, %vec.epilog.iter.check245
  %.085164.ph = phi i32 [ %185, %iter.check224 ], [ %185, %vector.memcheck215 ], [ %ind.end254, %vec.epilog.iter.check245 ], [ %ind.end252, %vec.epilog.middle.block242 ]
  %.086163.ph = phi ptr [ %.0113.lcssa, %iter.check224 ], [ %.0113.lcssa, %vector.memcheck215 ], [ %ind.end257, %vec.epilog.iter.check245 ], [ %ind.end256, %vec.epilog.middle.block242 ]
  %.087162.ph = phi ptr [ %12, %iter.check224 ], [ %12, %vector.memcheck215 ], [ %ind.end260, %vec.epilog.iter.check245 ], [ %ind.end259, %vec.epilog.middle.block242 ]
  %199 = add nsw i32 %.085164.ph, -1
  %xtraiter274 = and i32 %.085164.ph, 3
  %lcmp.mod275.not = icmp eq i32 %xtraiter274, 0
  br i1 %lcmp.mod275.not, label %.lr.ph166.prol.loopexit, label %.lr.ph166.prol

.lr.ph166.prol:                                   ; preds = %.lr.ph166.preheader, %.lr.ph166.prol
  %.085164.prol = phi i32 [ %205, %.lr.ph166.prol ], [ %.085164.ph, %.lr.ph166.preheader ]
  %.086163.prol = phi ptr [ %200, %.lr.ph166.prol ], [ %.086163.ph, %.lr.ph166.preheader ]
  %.087162.prol = phi ptr [ %202, %.lr.ph166.prol ], [ %.087162.ph, %.lr.ph166.preheader ]
  %prol.iter276 = phi i32 [ %prol.iter276.next, %.lr.ph166.prol ], [ 0, %.lr.ph166.preheader ]
  %200 = getelementptr inbounds i8, ptr %.086163.prol, i64 1
  %201 = load i8, ptr %.086163.prol, align 1, !tbaa !9
  %202 = getelementptr inbounds i8, ptr %.087162.prol, i64 1
  %203 = load i8, ptr %.087162.prol, align 1, !tbaa !9
  %204 = xor i8 %203, %201
  store i8 %204, ptr %.087162.prol, align 1, !tbaa !9
  %205 = add nsw i32 %.085164.prol, -1
  %prol.iter276.next = add i32 %prol.iter276, 1
  %prol.iter276.cmp.not = icmp eq i32 %prol.iter276.next, %xtraiter274
  br i1 %prol.iter276.cmp.not, label %.lr.ph166.prol.loopexit, label %.lr.ph166.prol, !llvm.loop !42

.lr.ph166.prol.loopexit:                          ; preds = %.lr.ph166.prol, %.lr.ph166.preheader
  %.085164.unr = phi i32 [ %.085164.ph, %.lr.ph166.preheader ], [ %205, %.lr.ph166.prol ]
  %.086163.unr = phi ptr [ %.086163.ph, %.lr.ph166.preheader ], [ %200, %.lr.ph166.prol ]
  %.087162.unr = phi ptr [ %.087162.ph, %.lr.ph166.preheader ], [ %202, %.lr.ph166.prol ]
  %206 = icmp ult i32 %199, 3
  br i1 %206, label %._crit_edge167, label %.lr.ph166

.lr.ph166:                                        ; preds = %.lr.ph166.prol.loopexit, %.lr.ph166
  %.085164 = phi i32 [ %227, %.lr.ph166 ], [ %.085164.unr, %.lr.ph166.prol.loopexit ]
  %.086163 = phi ptr [ %222, %.lr.ph166 ], [ %.086163.unr, %.lr.ph166.prol.loopexit ]
  %.087162 = phi ptr [ %224, %.lr.ph166 ], [ %.087162.unr, %.lr.ph166.prol.loopexit ]
  %207 = getelementptr inbounds i8, ptr %.086163, i64 1
  %208 = load i8, ptr %.086163, align 1, !tbaa !9
  %209 = getelementptr inbounds i8, ptr %.087162, i64 1
  %210 = load i8, ptr %.087162, align 1, !tbaa !9
  %211 = xor i8 %210, %208
  store i8 %211, ptr %.087162, align 1, !tbaa !9
  %212 = getelementptr inbounds i8, ptr %.086163, i64 2
  %213 = load i8, ptr %207, align 1, !tbaa !9
  %214 = getelementptr inbounds i8, ptr %.087162, i64 2
  %215 = load i8, ptr %209, align 1, !tbaa !9
  %216 = xor i8 %215, %213
  store i8 %216, ptr %209, align 1, !tbaa !9
  %217 = getelementptr inbounds i8, ptr %.086163, i64 3
  %218 = load i8, ptr %212, align 1, !tbaa !9
  %219 = getelementptr inbounds i8, ptr %.087162, i64 3
  %220 = load i8, ptr %214, align 1, !tbaa !9
  %221 = xor i8 %220, %218
  store i8 %221, ptr %214, align 1, !tbaa !9
  %222 = getelementptr inbounds i8, ptr %.086163, i64 4
  %223 = load i8, ptr %217, align 1, !tbaa !9
  %224 = getelementptr inbounds i8, ptr %.087162, i64 4
  %225 = load i8, ptr %219, align 1, !tbaa !9
  %226 = xor i8 %225, %223
  store i8 %226, ptr %219, align 1, !tbaa !9
  %227 = add nsw i32 %.085164, -4
  %.not120.3 = icmp eq i32 %227, 0
  br i1 %.not120.3, label %._crit_edge167, label %.lr.ph166, !llvm.loop !43

._crit_edge167:                                   ; preds = %.lr.ph166.prol.loopexit, %.lr.ph166, %vec.epilog.middle.block242, %middle.block221
  %228 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 %.0114.lcssa
  %229 = load i8, ptr %228, align 1, !tbaa !9
  %230 = xor i8 %229, -128
  store i8 %230, ptr %228, align 1, !tbaa !9
  %231 = xor i8 %99, 5
  store i8 %231, ptr %15, align 1, !tbaa !9
  call void @forkskinny_128_256_encrypt(ptr noundef nonnull %10, ptr noundef %.0106.lcssa, ptr noundef nonnull %12, ptr noundef nonnull %12)
  %232 = getelementptr inbounds i8, ptr %11, i64 1
  %233 = load i8, ptr %11, align 16, !tbaa !9
  %234 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 1
  %235 = load i8, ptr %.0106.lcssa, align 1, !tbaa !9
  %236 = xor i8 %235, %233
  store i8 %236, ptr %.0106.lcssa, align 1, !tbaa !9
  %237 = getelementptr inbounds i8, ptr %11, i64 2
  %238 = load i8, ptr %232, align 1, !tbaa !9
  %239 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 2
  %240 = load i8, ptr %234, align 1, !tbaa !9
  %241 = xor i8 %240, %238
  store i8 %241, ptr %234, align 1, !tbaa !9
  %242 = getelementptr inbounds i8, ptr %11, i64 3
  %243 = load i8, ptr %237, align 2, !tbaa !9
  %244 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 3
  %245 = load i8, ptr %239, align 1, !tbaa !9
  %246 = xor i8 %245, %243
  store i8 %246, ptr %239, align 1, !tbaa !9
  %247 = getelementptr inbounds i8, ptr %11, i64 4
  %248 = load i8, ptr %242, align 1, !tbaa !9
  %249 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 4
  %250 = load i8, ptr %244, align 1, !tbaa !9
  %251 = xor i8 %250, %248
  store i8 %251, ptr %244, align 1, !tbaa !9
  %252 = getelementptr inbounds i8, ptr %11, i64 5
  %253 = load i8, ptr %247, align 4, !tbaa !9
  %254 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 5
  %255 = load i8, ptr %249, align 1, !tbaa !9
  %256 = xor i8 %255, %253
  store i8 %256, ptr %249, align 1, !tbaa !9
  %257 = getelementptr inbounds i8, ptr %11, i64 6
  %258 = load i8, ptr %252, align 1, !tbaa !9
  %259 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 6
  %260 = load i8, ptr %254, align 1, !tbaa !9
  %261 = xor i8 %260, %258
  store i8 %261, ptr %254, align 1, !tbaa !9
  %262 = getelementptr inbounds i8, ptr %11, i64 7
  %263 = load i8, ptr %257, align 2, !tbaa !9
  %264 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 7
  %265 = load i8, ptr %259, align 1, !tbaa !9
  %266 = xor i8 %265, %263
  store i8 %266, ptr %259, align 1, !tbaa !9
  %267 = getelementptr inbounds i8, ptr %11, i64 8
  %268 = load i8, ptr %262, align 1, !tbaa !9
  %269 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 8
  %270 = load i8, ptr %264, align 1, !tbaa !9
  %271 = xor i8 %270, %268
  store i8 %271, ptr %264, align 1, !tbaa !9
  %272 = getelementptr inbounds i8, ptr %11, i64 9
  %273 = load i8, ptr %267, align 8, !tbaa !9
  %274 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 9
  %275 = load i8, ptr %269, align 1, !tbaa !9
  %276 = xor i8 %275, %273
  store i8 %276, ptr %269, align 1, !tbaa !9
  %277 = getelementptr inbounds i8, ptr %11, i64 10
  %278 = load i8, ptr %272, align 1, !tbaa !9
  %279 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 10
  %280 = load i8, ptr %274, align 1, !tbaa !9
  %281 = xor i8 %280, %278
  store i8 %281, ptr %274, align 1, !tbaa !9
  %282 = getelementptr inbounds i8, ptr %11, i64 11
  %283 = load i8, ptr %277, align 2, !tbaa !9
  %284 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 11
  %285 = load i8, ptr %279, align 1, !tbaa !9
  %286 = xor i8 %285, %283
  store i8 %286, ptr %279, align 1, !tbaa !9
  %287 = getelementptr inbounds i8, ptr %11, i64 12
  %288 = load i8, ptr %282, align 1, !tbaa !9
  %289 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 12
  %290 = load i8, ptr %284, align 1, !tbaa !9
  %291 = xor i8 %290, %288
  store i8 %291, ptr %284, align 1, !tbaa !9
  %292 = getelementptr inbounds i8, ptr %11, i64 13
  %293 = load i8, ptr %287, align 4, !tbaa !9
  %294 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 13
  %295 = load i8, ptr %289, align 1, !tbaa !9
  %296 = xor i8 %295, %293
  store i8 %296, ptr %289, align 1, !tbaa !9
  %297 = getelementptr inbounds i8, ptr %11, i64 14
  %298 = load i8, ptr %292, align 1, !tbaa !9
  %299 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 14
  %300 = load i8, ptr %294, align 1, !tbaa !9
  %301 = xor i8 %300, %298
  store i8 %301, ptr %294, align 1, !tbaa !9
  %302 = getelementptr inbounds i8, ptr %11, i64 15
  %303 = load i8, ptr %297, align 2, !tbaa !9
  %304 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 15
  %305 = load i8, ptr %299, align 1, !tbaa !9
  %306 = xor i8 %305, %303
  store i8 %306, ptr %299, align 1, !tbaa !9
  %307 = load i8, ptr %302, align 1, !tbaa !9
  %308 = load i8, ptr %304, align 1, !tbaa !9
  %309 = xor i8 %308, %307
  store i8 %309, ptr %304, align 1, !tbaa !9
  %310 = getelementptr inbounds i8, ptr %.0106.lcssa, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 1 %310, ptr nonnull align 16 %12, i64 %.0114.lcssa, i1 false)
  br label %311

311:                                              ; preds = %.preheader.preheader, %._crit_edge167, %86
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #4
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @forkskinny_128_256_encrypt(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13}
!13 = distinct !{!13, !14}
!14 = distinct !{!14, !"LVerDomain"}
!15 = !{!16}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !11, !18, !19}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = !{!21}
!21 = distinct !{!21, !22}
!22 = distinct !{!22, !"LVerDomain"}
!23 = !{!24}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !11, !18, !19}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.unroll.disable"}
!28 = distinct !{!28, !11, !18}
!29 = distinct !{!29, !11}
!30 = !{!31}
!31 = distinct !{!31, !32}
!32 = distinct !{!32, !"LVerDomain"}
!33 = !{!34}
!34 = distinct !{!34, !32}
!35 = distinct !{!35, !11, !18, !19}
!36 = !{!37}
!37 = distinct !{!37, !38}
!38 = distinct !{!38, !"LVerDomain"}
!39 = !{!40}
!40 = distinct !{!40, !38}
!41 = distinct !{!41, !11, !18, !19}
!42 = distinct !{!42, !27}
!43 = distinct !{!43, !11, !18}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass