; 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_paef_128_192_aead_decrypt(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 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 ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, 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 i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca [16 x i8], align 16
  %45 = alloca i32, align 4
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = 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 ptr %3, ptr %14, align 8, !tbaa !5
  store i64 %4, ptr %15, align 8, !tbaa !9
  store ptr %5, ptr %16, align 8, !tbaa !5
  store i64 %6, ptr %17, align 8, !tbaa !9
  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) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %50, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %51 = load ptr, ptr %13, align 8, !tbaa !5
  %52 = load i64, ptr %15, align 8, !tbaa !9
  %53 = icmp ult i64 %52, 16
  br i1 %53, label %54, label %55

54:                                               ; preds = %9
  store i32 -1, ptr %10, align 4
  store i32 1, ptr %25, align 4
  br label %343

55:                                               ; preds = %9
  %56 = load i64, ptr %15, align 8, !tbaa !9
  %57 = sub i64 %56, 16
  store i64 %57, ptr %15, align 8, !tbaa !9
  %58 = load i64, ptr %15, align 8, !tbaa !9
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  store i64 %58, ptr %59, align 8, !tbaa !9
  %60 = load i64, ptr %17, align 8, !tbaa !9
  %61 = icmp ugt i64 %60, 131056
  br i1 %61, label %65, label %62

62:                                               ; preds = %55
  %63 = load i64, ptr %15, align 8, !tbaa !9
  %64 = icmp ugt i64 %63, 131056
  br i1 %64, label %65, label %66

65:                                               ; preds = %62, %55
  store i32 -2, ptr %10, align 4
  store i32 1, ptr %25, align 4
  br label %343

66:                                               ; preds = %62
  %67 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %68 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %67, ptr align 1 %68, i64 16, i1 false)
  %69 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %71 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %70, ptr align 1 %71, i64 6, i1 false)
  %72 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %73 = getelementptr inbounds i8, ptr %72, i64 16
  %74 = getelementptr inbounds i8, ptr %73, i64 6
  call void @llvm.memset.p0.i64(ptr align 1 %74, i8 0, i64 10, i1 false)
  %75 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %75, i8 0, i64 16, i1 false)
  store i64 1, ptr %24, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %106, %66
  %77 = load i64, ptr %17, align 8, !tbaa !9
  %78 = icmp ugt i64 %77, 16
  br i1 %78, label %79, label %113

79:                                               ; preds = %76
  %80 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %81 = load i64, ptr %24, align 8, !tbaa !9
  call void @forkae_paef_128_192_set_counter(ptr noundef %80, i64 noundef %81, i8 noundef zeroext 0)
  %82 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %83 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  call void @forkskinny_128_256_encrypt(ptr noundef %82, ptr noundef null, ptr noundef %83, ptr noundef %84)
  br label %85

85:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %86 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %86, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %87 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  store ptr %87, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  store i32 16, ptr %28, align 4, !tbaa !11
  br label %88

88:                                               ; preds = %91, %85
  %89 = load i32, ptr %28, align 4, !tbaa !11
  %90 = icmp ugt i32 %89, 0
  br i1 %90, label %91, label %104

91:                                               ; preds = %88
  %92 = load ptr, ptr %27, align 8, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %92, i32 1
  store ptr %93, ptr %27, align 8, !tbaa !5
  %94 = load i8, ptr %92, align 1, !tbaa !13
  %95 = zext i8 %94 to i32
  %96 = load ptr, ptr %26, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i32 1
  store ptr %97, ptr %26, align 8, !tbaa !5
  %98 = load i8, ptr %96, align 1, !tbaa !13
  %99 = zext i8 %98 to i32
  %100 = xor i32 %99, %95
  %101 = trunc i32 %100 to i8
  store i8 %101, ptr %96, align 1, !tbaa !13
  %102 = load i32, ptr %28, align 4, !tbaa !11
  %103 = add i32 %102, -1
  store i32 %103, ptr %28, align 4, !tbaa !11
  br label %88, !llvm.loop !14

104:                                              ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %105

105:                                              ; preds = %104
  br label %106

106:                                              ; preds = %105
  %107 = load ptr, ptr %16, align 8, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %107, i64 16
  store ptr %108, ptr %16, align 8, !tbaa !5
  %109 = load i64, ptr %17, align 8, !tbaa !9
  %110 = sub i64 %109, 16
  store i64 %110, ptr %17, align 8, !tbaa !9
  %111 = load i64, ptr %24, align 8, !tbaa !9
  %112 = add i64 %111, 1
  store i64 %112, ptr %24, align 8, !tbaa !9
  br label %76, !llvm.loop !16

113:                                              ; preds = %76
  %114 = load i64, ptr %17, align 8, !tbaa !9
  %115 = icmp eq i64 %114, 16
  br i1 %115, label %116, label %144

116:                                              ; preds = %113
  %117 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %118 = load i64, ptr %24, align 8, !tbaa !9
  call void @forkae_paef_128_192_set_counter(ptr noundef %117, i64 noundef %118, i8 noundef zeroext 1)
  %119 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %120 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %121 = load ptr, ptr %16, align 8, !tbaa !5
  call void @forkskinny_128_256_encrypt(ptr noundef %119, ptr noundef null, ptr noundef %120, ptr noundef %121)
  br label %122

122:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %123 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %123, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %124 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  store ptr %124, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 16, ptr %31, align 4, !tbaa !11
  br label %125

125:                                              ; preds = %128, %122
  %126 = load i32, ptr %31, align 4, !tbaa !11
  %127 = icmp ugt i32 %126, 0
  br i1 %127, label %128, label %141

128:                                              ; preds = %125
  %129 = load ptr, ptr %30, align 8, !tbaa !5
  %130 = getelementptr inbounds i8, ptr %129, i32 1
  store ptr %130, ptr %30, align 8, !tbaa !5
  %131 = load i8, ptr %129, align 1, !tbaa !13
  %132 = zext i8 %131 to i32
  %133 = load ptr, ptr %29, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i32 1
  store ptr %134, ptr %29, align 8, !tbaa !5
  %135 = load i8, ptr %133, align 1, !tbaa !13
  %136 = zext i8 %135 to i32
  %137 = xor i32 %136, %132
  %138 = trunc i32 %137 to i8
  store i8 %138, ptr %133, align 1, !tbaa !13
  %139 = load i32, ptr %31, align 4, !tbaa !11
  %140 = add i32 %139, -1
  store i32 %140, ptr %31, align 4, !tbaa !11
  br label %125, !llvm.loop !17

141:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  br label %197

144:                                              ; preds = %113
  %145 = load i64, ptr %17, align 8, !tbaa !9
  %146 = icmp ne i64 %145, 0
  br i1 %146, label %150, label %147

147:                                              ; preds = %144
  %148 = load i64, ptr %15, align 8, !tbaa !9
  %149 = icmp eq i64 %148, 0
  br i1 %149, label %150, label %196

150:                                              ; preds = %147, %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %151 = load i64, ptr %17, align 8, !tbaa !9
  %152 = trunc i64 %151 to i32
  store i32 %152, ptr %32, align 4, !tbaa !11
  %153 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %154 = load ptr, ptr %16, align 8, !tbaa !5
  %155 = load i32, ptr %32, align 4, !tbaa !11
  %156 = zext i32 %155 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %153, ptr align 1 %154, i64 %156, i1 false)
  %157 = load i32, ptr %32, align 4, !tbaa !11
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 %158
  store i8 -128, ptr %159, align 1, !tbaa !13
  %160 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %161 = load i32, ptr %32, align 4, !tbaa !11
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds i8, ptr %160, i64 %162
  %164 = getelementptr inbounds i8, ptr %163, i64 1
  %165 = load i32, ptr %32, align 4, !tbaa !11
  %166 = zext i32 %165 to i64
  %167 = sub i64 16, %166
  %168 = sub i64 %167, 1
  call void @llvm.memset.p0.i64(ptr align 1 %164, i8 0, i64 %168, i1 false)
  %169 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %170 = load i64, ptr %24, align 8, !tbaa !9
  call void @forkae_paef_128_192_set_counter(ptr noundef %169, i64 noundef %170, i8 noundef zeroext 3)
  %171 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %172 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %173 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  call void @forkskinny_128_256_encrypt(ptr noundef %171, ptr noundef null, ptr noundef %172, ptr noundef %173)
  br label %174

174:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #6
  %175 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %175, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #6
  %176 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  store ptr %176, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 16, ptr %35, align 4, !tbaa !11
  br label %177

177:                                              ; preds = %180, %174
  %178 = load i32, ptr %35, align 4, !tbaa !11
  %179 = icmp ugt i32 %178, 0
  br i1 %179, label %180, label %193

180:                                              ; preds = %177
  %181 = load ptr, ptr %34, align 8, !tbaa !5
  %182 = getelementptr inbounds i8, ptr %181, i32 1
  store ptr %182, ptr %34, align 8, !tbaa !5
  %183 = load i8, ptr %181, align 1, !tbaa !13
  %184 = zext i8 %183 to i32
  %185 = load ptr, ptr %33, align 8, !tbaa !5
  %186 = getelementptr inbounds i8, ptr %185, i32 1
  store ptr %186, ptr %33, align 8, !tbaa !5
  %187 = load i8, ptr %185, align 1, !tbaa !13
  %188 = zext i8 %187 to i32
  %189 = xor i32 %188, %184
  %190 = trunc i32 %189 to i8
  store i8 %190, ptr %185, align 1, !tbaa !13
  %191 = load i32, ptr %35, align 4, !tbaa !11
  %192 = add i32 %191, -1
  store i32 %192, ptr %35, align 4, !tbaa !11
  br label %177, !llvm.loop !18

193:                                              ; preds = %177
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #6
  br label %194

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %196

196:                                              ; preds = %195, %147
  br label %197

197:                                              ; preds = %196, %143
  %198 = load i64, ptr %15, align 8, !tbaa !9
  %199 = icmp ne i64 %198, 0
  br i1 %199, label %206, label %200

200:                                              ; preds = %197
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = load i64, ptr %15, align 8, !tbaa !9
  %203 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  %204 = load ptr, ptr %14, align 8, !tbaa !5
  %205 = call i32 @aead_check_tag(ptr noundef %201, i64 noundef %202, ptr noundef %203, ptr noundef %204, i32 noundef 16)
  store i32 %205, ptr %10, align 4
  store i32 1, ptr %25, align 4
  br label %343

206:                                              ; preds = %197
  store i64 1, ptr %24, align 8, !tbaa !9
  br label %207

207:                                              ; preds = %238, %206
  %208 = load i64, ptr %15, align 8, !tbaa !9
  %209 = icmp ugt i64 %208, 16
  br i1 %209, label %210, label %247

210:                                              ; preds = %207
  %211 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %212 = load i64, ptr %24, align 8, !tbaa !9
  call void @forkae_paef_128_192_set_counter(ptr noundef %211, i64 noundef %212, i8 noundef zeroext 4)
  %213 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %216 = load ptr, ptr %14, align 8, !tbaa !5
  call void @forkskinny_128_256_decrypt(ptr noundef %213, ptr noundef %214, ptr noundef %215, ptr noundef %216)
  br label %217

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

220:                                              ; preds = %223, %217
  %221 = load i32, ptr %38, align 4, !tbaa !11
  %222 = icmp ugt i32 %221, 0
  br i1 %222, label %223, label %236

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

236:                                              ; preds = %220
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  br label %237

237:                                              ; preds = %236
  br label %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %14, align 8, !tbaa !5
  %240 = getelementptr inbounds i8, ptr %239, i64 16
  store ptr %240, ptr %14, align 8, !tbaa !5
  %241 = load ptr, ptr %11, align 8, !tbaa !5
  %242 = getelementptr inbounds i8, ptr %241, i64 16
  store ptr %242, ptr %11, align 8, !tbaa !5
  %243 = load i64, ptr %15, align 8, !tbaa !9
  %244 = sub i64 %243, 16
  store i64 %244, ptr %15, align 8, !tbaa !9
  %245 = load i64, ptr %24, align 8, !tbaa !9
  %246 = add i64 %245, 1
  store i64 %246, ptr %24, align 8, !tbaa !9
  br label %207, !llvm.loop !20

247:                                              ; preds = %207
  %248 = load i64, ptr %15, align 8, !tbaa !9
  %249 = icmp eq i64 %248, 16
  br i1 %249, label %250, label %289

250:                                              ; preds = %247
  %251 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %252 = load i64, ptr %24, align 8, !tbaa !9
  call void @forkae_paef_128_192_set_counter(ptr noundef %251, i64 noundef %252, i8 noundef zeroext 5)
  br label %253

253:                                              ; preds = %250
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #6
  %254 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %254, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #6
  %255 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %255, ptr %40, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #6
  %256 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %256, ptr %41, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  store i32 16, ptr %42, align 4, !tbaa !11
  br label %257

257:                                              ; preds = %260, %253
  %258 = load i32, ptr %42, align 4, !tbaa !11
  %259 = icmp ugt i32 %258, 0
  br i1 %259, label %260, label %275

260:                                              ; preds = %257
  %261 = load ptr, ptr %40, align 8, !tbaa !5
  %262 = getelementptr inbounds i8, ptr %261, i32 1
  store ptr %262, ptr %40, align 8, !tbaa !5
  %263 = load i8, ptr %261, align 1, !tbaa !13
  %264 = zext i8 %263 to i32
  %265 = load ptr, ptr %41, align 8, !tbaa !5
  %266 = getelementptr inbounds i8, ptr %265, i32 1
  store ptr %266, ptr %41, align 8, !tbaa !5
  %267 = load i8, ptr %265, align 1, !tbaa !13
  %268 = zext i8 %267 to i32
  %269 = xor i32 %264, %268
  %270 = trunc i32 %269 to i8
  %271 = load ptr, ptr %39, align 8, !tbaa !5
  %272 = getelementptr inbounds i8, ptr %271, i32 1
  store ptr %272, ptr %39, align 8, !tbaa !5
  store i8 %270, ptr %271, align 1, !tbaa !13
  %273 = load i32, ptr %42, align 4, !tbaa !11
  %274 = add i32 %273, -1
  store i32 %274, ptr %42, align 4, !tbaa !11
  br label %257, !llvm.loop !21

275:                                              ; preds = %257
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #6
  br label %276

276:                                              ; preds = %275
  br label %277

277:                                              ; preds = %276
  %278 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %279 = load ptr, ptr %11, align 8, !tbaa !5
  %280 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  call void @forkskinny_128_256_decrypt(ptr noundef %278, ptr noundef %279, ptr noundef %280, ptr noundef %281)
  %282 = load ptr, ptr %23, align 8, !tbaa !5
  %283 = load ptr, ptr %12, align 8, !tbaa !5
  %284 = load i64, ptr %283, align 8, !tbaa !9
  %285 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %286 = load ptr, ptr %14, align 8, !tbaa !5
  %287 = getelementptr inbounds i8, ptr %286, i64 16
  %288 = call i32 @aead_check_tag(ptr noundef %282, i64 noundef %284, ptr noundef %285, ptr noundef %287, i32 noundef 16)
  store i32 %288, ptr %10, align 4
  store i32 1, ptr %25, align 4
  br label %343

289:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %290 = load i64, ptr %15, align 8, !tbaa !9
  %291 = trunc i64 %290 to i32
  store i32 %291, ptr %43, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %292 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %293 = load i64, ptr %24, align 8, !tbaa !9
  call void @forkae_paef_128_192_set_counter(ptr noundef %292, i64 noundef %293, i8 noundef zeroext 7)
  br label %294

294:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #6
  %295 = getelementptr inbounds [16 x i8], ptr %44, i64 0, i64 0
  store ptr %295, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #6
  %296 = getelementptr inbounds [16 x i8], ptr %21, i64 0, i64 0
  store ptr %296, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #6
  %297 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %297, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #6
  store i32 16, ptr %49, align 4, !tbaa !11
  br label %298

298:                                              ; preds = %301, %294
  %299 = load i32, ptr %49, align 4, !tbaa !11
  %300 = icmp ugt i32 %299, 0
  br i1 %300, label %301, label %316

301:                                              ; preds = %298
  %302 = load ptr, ptr %47, align 8, !tbaa !5
  %303 = getelementptr inbounds i8, ptr %302, i32 1
  store ptr %303, ptr %47, align 8, !tbaa !5
  %304 = load i8, ptr %302, align 1, !tbaa !13
  %305 = zext i8 %304 to i32
  %306 = load ptr, ptr %48, align 8, !tbaa !5
  %307 = getelementptr inbounds i8, ptr %306, i32 1
  store ptr %307, ptr %48, align 8, !tbaa !5
  %308 = load i8, ptr %306, align 1, !tbaa !13
  %309 = zext i8 %308 to i32
  %310 = xor i32 %305, %309
  %311 = trunc i32 %310 to i8
  %312 = load ptr, ptr %46, align 8, !tbaa !5
  %313 = getelementptr inbounds i8, ptr %312, i32 1
  store ptr %313, ptr %46, align 8, !tbaa !5
  store i8 %311, ptr %312, align 1, !tbaa !13
  %314 = load i32, ptr %49, align 4, !tbaa !11
  %315 = add i32 %314, -1
  store i32 %315, ptr %49, align 4, !tbaa !11
  br label %298, !llvm.loop !22

316:                                              ; preds = %298
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #6
  br label %317

317:                                              ; preds = %316
  br label %318

318:                                              ; preds = %317
  %319 = getelementptr inbounds [32 x i8], ptr %20, i64 0, i64 0
  %320 = getelementptr inbounds [16 x i8], ptr %44, i64 0, i64 0
  %321 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %322 = getelementptr inbounds [16 x i8], ptr %44, i64 0, i64 0
  call void @forkskinny_128_256_decrypt(ptr noundef %319, ptr noundef %320, ptr noundef %321, ptr noundef %322)
  %323 = getelementptr inbounds [16 x i8], ptr %44, i64 0, i64 0
  %324 = load i32, ptr %43, align 4, !tbaa !11
  %325 = zext i32 %324 to i64
  %326 = getelementptr inbounds i8, ptr %323, i64 %325
  %327 = load i32, ptr %43, align 4, !tbaa !11
  %328 = sub i32 16, %327
  %329 = call i32 @forkae_paef_128_192_is_padding(ptr noundef %326, i32 noundef %328)
  store i32 %329, ptr %45, align 4, !tbaa !11
  %330 = load ptr, ptr %11, align 8, !tbaa !5
  %331 = getelementptr inbounds [16 x i8], ptr %44, i64 0, i64 0
  %332 = load i32, ptr %43, align 4, !tbaa !11
  %333 = zext i32 %332 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %330, ptr align 16 %331, i64 %333, i1 false)
  %334 = load ptr, ptr %23, align 8, !tbaa !5
  %335 = load ptr, ptr %12, align 8, !tbaa !5
  %336 = load i64, ptr %335, align 8, !tbaa !9
  %337 = getelementptr inbounds [16 x i8], ptr %22, i64 0, i64 0
  %338 = load ptr, ptr %14, align 8, !tbaa !5
  %339 = getelementptr inbounds i8, ptr %338, i64 16
  %340 = load i32, ptr %43, align 4, !tbaa !11
  %341 = load i32, ptr %45, align 4, !tbaa !11
  %342 = call i32 @aead_check_tag_precheck(ptr noundef %334, i64 noundef %336, ptr noundef %337, ptr noundef %339, i32 noundef %340, i32 noundef %341)
  store i32 %342, ptr %10, align 4
  store i32 1, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %343

343:                                              ; preds = %318, %277, %200, %65, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #6
  %344 = load i32, ptr %10, align 4
  ret i32 %344
}

; 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

declare i32 @aead_check_tag(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef) #4

declare i32 @aead_check_tag_precheck(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @forkae_paef_128_192_set_counter(ptr noundef, i64 noundef, i8 noundef zeroext) #5

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @forkae_paef_128_192_is_padding(ptr noundef, i32 noundef) #5

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 = { "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 #5 = { inlinehint 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 #6 = { 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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !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}


; 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 i32 @forkae_paef_128_192_aead_decrypt(ptr noundef %0, ptr nocapture noundef %1, ptr nocapture noundef readnone %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %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
  %13 = alloca [16 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #6
  %14 = icmp ult i64 %4, 16
  br i1 %14, label %194, label %15

15:                                               ; preds = %9
  %16 = add i64 %4, -16
  store i64 %16, ptr %1, align 8, !tbaa !5
  %17 = icmp ugt i64 %6, 131056
  %18 = icmp ugt i64 %16, 131056
  %or.cond = or i1 %18, %17
  br i1 %or.cond, label %194, label %19

19:                                               ; preds = %15
  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)
  %20 = getelementptr inbounds i8, ptr %10, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(6) %20, ptr noundef nonnull align 1 dereferenceable(6) %7, i64 6, i1 false)
  %21 = getelementptr inbounds i8, ptr %10, i64 22
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 2 dereferenceable(10) %21, i8 0, i64 10, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %11, i8 0, i64 16, i1 false)
  %22 = icmp ugt i64 %6, 16
  br i1 %22, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %19
  %23 = add nsw i64 %6, -17
  %24 = lshr i64 %23, 4
  %25 = add nuw nsw i64 %24, 2
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.0112131 = phi i64 [ %31, %.lr.ph ], [ 1, %.lr.ph.preheader ]
  %.0114130 = phi ptr [ %29, %.lr.ph ], [ %5, %.lr.ph.preheader ]
  %.0115129 = phi i64 [ %30, %.lr.ph ], [ %6, %.lr.ph.preheader ]
  call void @forkae_paef_128_192_set_counter(ptr noundef nonnull %10, i64 noundef %.0112131, i8 noundef zeroext 0)
  call void @forkskinny_128_256_encrypt(ptr noundef nonnull %10, ptr noundef null, ptr noundef nonnull %12, ptr noundef %.0114130)
  %26 = load <16 x i8>, ptr %12, align 16, !tbaa !9
  %27 = load <16 x i8>, ptr %11, align 16, !tbaa !9
  %28 = xor <16 x i8> %27, %26
  store <16 x i8> %28, ptr %11, align 16, !tbaa !9
  %29 = getelementptr inbounds i8, ptr %.0114130, i64 16
  %30 = add nsw i64 %.0115129, -16
  %31 = add nuw nsw i64 %.0112131, 1
  %exitcond.not = icmp eq i64 %31, %25
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !10

._crit_edge:                                      ; preds = %.lr.ph, %19
  %.0115.lcssa = phi i64 [ %6, %19 ], [ %30, %.lr.ph ]
  %.0114.lcssa = phi ptr [ %5, %19 ], [ %29, %.lr.ph ]
  %.0112.lcssa = phi i64 [ 1, %19 ], [ %25, %.lr.ph ]
  %32 = icmp eq i64 %.0115.lcssa, 16
  br i1 %32, label %.loopexit.loopexit, label %38

.loopexit.loopexit:                               ; preds = %._crit_edge
  call void @forkae_paef_128_192_set_counter(ptr noundef nonnull %10, i64 noundef %.0112.lcssa, i8 noundef zeroext 1)
  call void @forkskinny_128_256_encrypt(ptr noundef nonnull %10, ptr noundef null, ptr noundef nonnull %12, ptr noundef %.0114.lcssa)
  %33 = getelementptr inbounds i8, ptr %12, i64 1
  %34 = load i8, ptr %12, align 16, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %11, i64 1
  %36 = load i8, ptr %11, align 16, !tbaa !9
  %37 = xor i8 %36, %34
  br label %.loopexit

38:                                               ; preds = %._crit_edge
  %39 = icmp ne i64 %.0115.lcssa, 0
  %40 = icmp eq i64 %16, 0
  %or.cond3 = or i1 %40, %39
  br i1 %or.cond3, label %.loopexit.loopexit161, label %.preheader

.loopexit.loopexit161:                            ; preds = %38
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %12, ptr align 1 %.0114.lcssa, i64 %.0115.lcssa, i1 false)
  %41 = getelementptr inbounds [16 x i8], ptr %12, i64 0, i64 %.0115.lcssa
  store i8 -128, ptr %41, align 1, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %41, i64 1
  %43 = sub nuw nsw i64 15, %.0115.lcssa
  call void @llvm.memset.p0.i64(ptr nonnull align 1 %42, i8 0, i64 %43, i1 false)
  call void @forkae_paef_128_192_set_counter(ptr noundef nonnull %10, i64 noundef %.0112.lcssa, i8 noundef zeroext 3)
  call void @forkskinny_128_256_encrypt(ptr noundef nonnull %10, ptr noundef null, ptr noundef nonnull %12, ptr noundef nonnull %12)
  %44 = getelementptr inbounds i8, ptr %12, i64 1
  %45 = load i8, ptr %12, align 16, !tbaa !9
  %46 = getelementptr inbounds i8, ptr %11, i64 1
  %47 = load i8, ptr %11, align 16, !tbaa !9
  %48 = xor i8 %47, %45
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit161, %.loopexit.loopexit
  %storemerge = phi i8 [ %48, %.loopexit.loopexit161 ], [ %37, %.loopexit.loopexit ]
  %.sink248 = phi ptr [ %44, %.loopexit.loopexit161 ], [ %33, %.loopexit.loopexit ]
  %.sink247 = phi ptr [ %46, %.loopexit.loopexit161 ], [ %35, %.loopexit.loopexit ]
  store i8 %storemerge, ptr %11, align 16, !tbaa !9
  %49 = getelementptr inbounds i8, ptr %12, i64 2
  %50 = load i8, ptr %.sink248, align 1, !tbaa !9
  %51 = getelementptr inbounds i8, ptr %11, i64 2
  %52 = load i8, ptr %.sink247, align 1, !tbaa !9
  %53 = xor i8 %52, %50
  store i8 %53, ptr %.sink247, align 1, !tbaa !9
  %54 = getelementptr inbounds i8, ptr %12, i64 10
  %55 = getelementptr inbounds i8, ptr %11, i64 10
  %56 = load <8 x i8>, ptr %49, align 2, !tbaa !9
  %57 = load <8 x i8>, ptr %51, align 2, !tbaa !9
  %58 = xor <8 x i8> %57, %56
  store <8 x i8> %58, ptr %51, align 2, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %12, i64 14
  %60 = getelementptr inbounds i8, ptr %11, i64 14
  %61 = load <4 x i8>, ptr %54, align 2, !tbaa !9
  %62 = load <4 x i8>, ptr %55, align 2, !tbaa !9
  %63 = xor <4 x i8> %62, %61
  store <4 x i8> %63, ptr %55, align 2, !tbaa !9
  %64 = getelementptr inbounds i8, ptr %12, i64 15
  %65 = load i8, ptr %59, align 2, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %11, i64 15
  %67 = load i8, ptr %60, align 2, !tbaa !9
  %68 = xor i8 %67, %65
  store i8 %68, ptr %60, align 2, !tbaa !9
  %69 = load i8, ptr %64, align 1, !tbaa !9
  %70 = load i8, ptr %66, align 1, !tbaa !9
  %71 = xor i8 %70, %69
  store i8 %71, ptr %66, align 1, !tbaa !9
  %.not120 = icmp eq i64 %16, 0
  br i1 %.not120, label %76, label %.preheader

.preheader:                                       ; preds = %38, %.loopexit
  %72 = icmp ugt i64 %16, 16
  br i1 %72, label %.lr.ph147.preheader, label %._crit_edge148

.lr.ph147.preheader:                              ; preds = %.preheader
  %73 = add nsw i64 %4, -33
  %74 = lshr i64 %73, 4
  %75 = add nuw nsw i64 %74, 2
  br label %.lr.ph147

76:                                               ; preds = %.loopexit
  %77 = call i32 @aead_check_tag(ptr noundef %0, i64 noundef 0, ptr noundef nonnull %11, ptr noundef %3, i32 noundef 16) #6
  br label %194

.lr.ph147:                                        ; preds = %.lr.ph147.preheader, %.lr.ph147
  %.094146 = phi ptr [ %82, %.lr.ph147 ], [ %0, %.lr.ph147.preheader ]
  %.0105145 = phi ptr [ %81, %.lr.ph147 ], [ %3, %.lr.ph147.preheader ]
  %.1144 = phi i64 [ %84, %.lr.ph147 ], [ 1, %.lr.ph147.preheader ]
  %.0113143 = phi i64 [ %83, %.lr.ph147 ], [ %16, %.lr.ph147.preheader ]
  call void @forkae_paef_128_192_set_counter(ptr noundef nonnull %10, i64 noundef %.1144, i8 noundef zeroext 4)
  call void @forkskinny_128_256_decrypt(ptr noundef nonnull %10, ptr noundef %.094146, ptr noundef nonnull %12, ptr noundef %.0105145)
  %78 = load <16 x i8>, ptr %12, align 16, !tbaa !9
  %79 = load <16 x i8>, ptr %11, align 16, !tbaa !9
  %80 = xor <16 x i8> %79, %78
  store <16 x i8> %80, ptr %11, align 16, !tbaa !9
  %81 = getelementptr inbounds i8, ptr %.0105145, i64 16
  %82 = getelementptr inbounds i8, ptr %.094146, i64 16
  %83 = add nsw i64 %.0113143, -16
  %84 = add nuw nsw i64 %.1144, 1
  %exitcond168.not = icmp eq i64 %84, %75
  br i1 %exitcond168.not, label %._crit_edge148, label %.lr.ph147, !llvm.loop !12

._crit_edge148:                                   ; preds = %.lr.ph147, %.preheader
  %.0113.lcssa = phi i64 [ %16, %.preheader ], [ %83, %.lr.ph147 ]
  %.1.lcssa = phi i64 [ 1, %.preheader ], [ %75, %.lr.ph147 ]
  %.0105.lcssa = phi ptr [ %3, %.preheader ], [ %81, %.lr.ph147 ]
  %.094.lcssa = phi ptr [ %0, %.preheader ], [ %82, %.lr.ph147 ]
  %85 = icmp eq i64 %.0113.lcssa, 16
  br i1 %85, label %86, label %183

86:                                               ; preds = %._crit_edge148
  call void @forkae_paef_128_192_set_counter(ptr noundef nonnull %10, i64 noundef %.1.lcssa, i8 noundef zeroext 5)
  %87 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 1
  %88 = load i8, ptr %.0105.lcssa, align 1, !tbaa !9
  %89 = getelementptr inbounds i8, ptr %11, i64 1
  %90 = load i8, ptr %11, align 16, !tbaa !9
  %91 = xor i8 %90, %88
  %92 = getelementptr inbounds i8, ptr %.094.lcssa, i64 1
  store i8 %91, ptr %.094.lcssa, align 1, !tbaa !9
  %93 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 2
  %94 = load i8, ptr %87, align 1, !tbaa !9
  %95 = getelementptr inbounds i8, ptr %11, i64 2
  %96 = load i8, ptr %89, align 1, !tbaa !9
  %97 = xor i8 %96, %94
  %98 = getelementptr inbounds i8, ptr %.094.lcssa, i64 2
  store i8 %97, ptr %92, align 1, !tbaa !9
  %99 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 3
  %100 = load i8, ptr %93, align 1, !tbaa !9
  %101 = getelementptr inbounds i8, ptr %11, i64 3
  %102 = load i8, ptr %95, align 2, !tbaa !9
  %103 = xor i8 %102, %100
  %104 = getelementptr inbounds i8, ptr %.094.lcssa, i64 3
  store i8 %103, ptr %98, align 1, !tbaa !9
  %105 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 4
  %106 = load i8, ptr %99, align 1, !tbaa !9
  %107 = getelementptr inbounds i8, ptr %11, i64 4
  %108 = load i8, ptr %101, align 1, !tbaa !9
  %109 = xor i8 %108, %106
  %110 = getelementptr inbounds i8, ptr %.094.lcssa, i64 4
  store i8 %109, ptr %104, align 1, !tbaa !9
  %111 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 5
  %112 = load i8, ptr %105, align 1, !tbaa !9
  %113 = getelementptr inbounds i8, ptr %11, i64 5
  %114 = load i8, ptr %107, align 4, !tbaa !9
  %115 = xor i8 %114, %112
  %116 = getelementptr inbounds i8, ptr %.094.lcssa, i64 5
  store i8 %115, ptr %110, align 1, !tbaa !9
  %117 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 6
  %118 = load i8, ptr %111, align 1, !tbaa !9
  %119 = getelementptr inbounds i8, ptr %11, i64 6
  %120 = load i8, ptr %113, align 1, !tbaa !9
  %121 = xor i8 %120, %118
  %122 = getelementptr inbounds i8, ptr %.094.lcssa, i64 6
  store i8 %121, ptr %116, align 1, !tbaa !9
  %123 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 7
  %124 = load i8, ptr %117, align 1, !tbaa !9
  %125 = getelementptr inbounds i8, ptr %11, i64 7
  %126 = load i8, ptr %119, align 2, !tbaa !9
  %127 = xor i8 %126, %124
  %128 = getelementptr inbounds i8, ptr %.094.lcssa, i64 7
  store i8 %127, ptr %122, align 1, !tbaa !9
  %129 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 8
  %130 = load i8, ptr %123, align 1, !tbaa !9
  %131 = getelementptr inbounds i8, ptr %11, i64 8
  %132 = load i8, ptr %125, align 1, !tbaa !9
  %133 = xor i8 %132, %130
  %134 = getelementptr inbounds i8, ptr %.094.lcssa, i64 8
  store i8 %133, ptr %128, align 1, !tbaa !9
  %135 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 9
  %136 = load i8, ptr %129, align 1, !tbaa !9
  %137 = getelementptr inbounds i8, ptr %11, i64 9
  %138 = load i8, ptr %131, align 8, !tbaa !9
  %139 = xor i8 %138, %136
  %140 = getelementptr inbounds i8, ptr %.094.lcssa, i64 9
  store i8 %139, ptr %134, align 1, !tbaa !9
  %141 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 10
  %142 = load i8, ptr %135, align 1, !tbaa !9
  %143 = getelementptr inbounds i8, ptr %11, i64 10
  %144 = load i8, ptr %137, align 1, !tbaa !9
  %145 = xor i8 %144, %142
  %146 = getelementptr inbounds i8, ptr %.094.lcssa, i64 10
  store i8 %145, ptr %140, align 1, !tbaa !9
  %147 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 11
  %148 = load i8, ptr %141, align 1, !tbaa !9
  %149 = getelementptr inbounds i8, ptr %11, i64 11
  %150 = load i8, ptr %143, align 2, !tbaa !9
  %151 = xor i8 %150, %148
  %152 = getelementptr inbounds i8, ptr %.094.lcssa, i64 11
  store i8 %151, ptr %146, align 1, !tbaa !9
  %153 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 12
  %154 = load i8, ptr %147, align 1, !tbaa !9
  %155 = getelementptr inbounds i8, ptr %11, i64 12
  %156 = load i8, ptr %149, align 1, !tbaa !9
  %157 = xor i8 %156, %154
  %158 = getelementptr inbounds i8, ptr %.094.lcssa, i64 12
  store i8 %157, ptr %152, align 1, !tbaa !9
  %159 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 13
  %160 = load i8, ptr %153, align 1, !tbaa !9
  %161 = getelementptr inbounds i8, ptr %11, i64 13
  %162 = load i8, ptr %155, align 4, !tbaa !9
  %163 = xor i8 %162, %160
  %164 = getelementptr inbounds i8, ptr %.094.lcssa, i64 13
  store i8 %163, ptr %158, align 1, !tbaa !9
  %165 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 14
  %166 = load i8, ptr %159, align 1, !tbaa !9
  %167 = getelementptr inbounds i8, ptr %11, i64 14
  %168 = load i8, ptr %161, align 1, !tbaa !9
  %169 = xor i8 %168, %166
  %170 = getelementptr inbounds i8, ptr %.094.lcssa, i64 14
  store i8 %169, ptr %164, align 1, !tbaa !9
  %171 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 15
  %172 = load i8, ptr %165, align 1, !tbaa !9
  %173 = getelementptr inbounds i8, ptr %11, i64 15
  %174 = load i8, ptr %167, align 2, !tbaa !9
  %175 = xor i8 %174, %172
  %176 = getelementptr inbounds i8, ptr %.094.lcssa, i64 15
  store i8 %175, ptr %170, align 1, !tbaa !9
  %177 = load i8, ptr %171, align 1, !tbaa !9
  %178 = load i8, ptr %173, align 1, !tbaa !9
  %179 = xor i8 %178, %177
  store i8 %179, ptr %176, align 1, !tbaa !9
  call void @forkskinny_128_256_decrypt(ptr noundef nonnull %10, ptr noundef nonnull %.094.lcssa, ptr noundef nonnull %12, ptr noundef nonnull %.094.lcssa)
  %180 = load i64, ptr %1, align 8, !tbaa !5
  %181 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 16
  %182 = call i32 @aead_check_tag(ptr noundef %0, i64 noundef %180, ptr noundef nonnull %12, ptr noundef nonnull %181, i32 noundef 16) #6
  br label %194

183:                                              ; preds = %._crit_edge148
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #6
  call void @forkae_paef_128_192_set_counter(ptr noundef nonnull %10, i64 noundef %.1.lcssa, i8 noundef zeroext 7)
  %184 = load <16 x i8>, ptr %11, align 16, !tbaa !9
  %185 = load <16 x i8>, ptr %.0105.lcssa, align 1, !tbaa !9
  %186 = xor <16 x i8> %185, %184
  store <16 x i8> %186, ptr %13, align 16, !tbaa !9
  %187 = trunc nuw nsw i64 %.0113.lcssa to i32
  call void @forkskinny_128_256_decrypt(ptr noundef nonnull %10, ptr noundef nonnull %13, ptr noundef nonnull %12, ptr noundef nonnull %13)
  %188 = getelementptr inbounds i8, ptr %13, i64 %.0113.lcssa
  %189 = sub nuw nsw i32 16, %187
  %190 = call i32 @forkae_paef_128_192_is_padding(ptr noundef nonnull %188, i32 noundef %189)
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %.094.lcssa, ptr nonnull align 16 %13, i64 %.0113.lcssa, i1 false)
  %191 = load i64, ptr %1, align 8, !tbaa !5
  %192 = getelementptr inbounds i8, ptr %.0105.lcssa, i64 16
  %193 = call i32 @aead_check_tag_precheck(ptr noundef %0, i64 noundef %191, ptr noundef nonnull %12, ptr noundef nonnull %192, i32 noundef %187, i32 noundef %190) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #6
  br label %194

194:                                              ; preds = %15, %9, %183, %86, %76
  %.093 = phi i32 [ %182, %86 ], [ %193, %183 ], [ %77, %76 ], [ -1, %9 ], [ -2, %15 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #6
  ret i32 %.093
}

; 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

declare i32 @aead_check_tag(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare i32 @aead_check_tag_precheck(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @forkae_paef_128_192_set_counter(ptr noundef, i64 noundef, i8 noundef zeroext) local_unnamed_addr #5

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @forkae_paef_128_192_is_padding(ptr noundef, i32 noundef) local_unnamed_addr #5

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 = { "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 #5 = { inlinehint 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 #6 = { 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 = distinct !{!12, !11}


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