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

; 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 @oribatida_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 [24 x i8], align 16
  %21 = alloca [12 x i8], align 1
  %22 = alloca [3 x i8], align 1
  %23 = alloca [12 x i8], align 1
  %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 ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca i8, align 1
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca i32, align 4
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca i32, align 4
  %41 = alloca i8, align 1
  %42 = alloca i32, align 4
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %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
  %50 = alloca i8, align 1
  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 24, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %51, ptr %24, align 8, !tbaa !5
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = load i64, ptr %15, align 8, !tbaa !9
  %54 = icmp ult i64 %53, 12
  br i1 %54, label %55, label %56

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

56:                                               ; preds = %9
  %57 = load i64, ptr %15, align 8, !tbaa !9
  %58 = sub i64 %57, 12
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  store i64 %58, ptr %59, align 8, !tbaa !9
  %60 = load i64, ptr %15, align 8, !tbaa !9
  %61 = sub i64 %60, 12
  store i64 %61, ptr %15, align 8, !tbaa !9
  %62 = getelementptr inbounds [3 x i8], ptr %22, i64 0, i64 0
  %63 = load i64, ptr %17, align 8, !tbaa !9
  %64 = load i64, ptr %15, align 8, !tbaa !9
  call void @oribatida_get_domains(ptr noundef %62, i64 noundef %63, i64 noundef %64, i32 noundef 12)
  %65 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  %66 = getelementptr inbounds [12 x i8], ptr %21, i64 0, i64 0
  %67 = getelementptr inbounds [3 x i8], ptr %22, i64 0, i64 0
  %68 = load ptr, ptr %19, align 8, !tbaa !5
  %69 = load ptr, ptr %18, align 8, !tbaa !5
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  %71 = load i64, ptr %17, align 8, !tbaa !9
  call void @oribatida_192_init(ptr noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, i64 noundef %71)
  br label %72

72:                                               ; preds = %129, %56
  %73 = load i64, ptr %15, align 8, !tbaa !9
  %74 = icmp ugt i64 %73, 12
  br i1 %74, label %75, label %141

75:                                               ; preds = %72
  %76 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %76, ptr align 1 %77, i64 12, i1 false)
  br label %78

78:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %79 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  %80 = getelementptr inbounds i8, ptr %79, i64 12
  %81 = getelementptr inbounds i8, ptr %80, i64 -12
  store ptr %81, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %82 = getelementptr inbounds [12 x i8], ptr %21, i64 0, i64 0
  store ptr %82, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 12, ptr %28, align 4, !tbaa !11
  br label %83

83:                                               ; preds = %86, %78
  %84 = load i32, ptr %28, align 4, !tbaa !11
  %85 = icmp ugt i32 %84, 0
  br i1 %85, label %86, label %99

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

99:                                               ; preds = %83
  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 %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %103, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %104 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  store ptr %104, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  %105 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  store ptr %105, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  store i32 12, ptr %32, align 4, !tbaa !11
  br label %106

106:                                              ; preds = %109, %102
  %107 = load i32, ptr %32, align 4, !tbaa !11
  %108 = icmp ugt i32 %107, 0
  br i1 %108, label %109, label %127

109:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #4
  %110 = load ptr, ptr %31, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i32 1
  store ptr %111, ptr %31, align 8, !tbaa !5
  %112 = load i8, ptr %110, align 1, !tbaa !13
  store i8 %112, ptr %33, align 1, !tbaa !13
  %113 = load ptr, ptr %30, align 8, !tbaa !5
  %114 = load i8, ptr %113, align 1, !tbaa !13
  %115 = zext i8 %114 to i32
  %116 = load i8, ptr %33, align 1, !tbaa !13
  %117 = zext i8 %116 to i32
  %118 = xor i32 %115, %117
  %119 = trunc i32 %118 to i8
  %120 = load ptr, ptr %29, align 8, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %120, i32 1
  store ptr %121, ptr %29, align 8, !tbaa !5
  store i8 %119, ptr %120, align 1, !tbaa !13
  %122 = load i8, ptr %33, align 1, !tbaa !13
  %123 = load ptr, ptr %30, align 8, !tbaa !5
  %124 = getelementptr inbounds i8, ptr %123, i32 1
  store ptr %124, ptr %30, align 8, !tbaa !5
  store i8 %122, ptr %123, align 1, !tbaa !13
  %125 = load i32, ptr %32, align 4, !tbaa !11
  %126 = add i32 %125, -1
  store i32 %126, ptr %32, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #4
  br label %106, !llvm.loop !16

127:                                              ; preds = %106
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  br label %128

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128
  %130 = getelementptr inbounds [12 x i8], ptr %21, i64 0, i64 0
  %131 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  %132 = getelementptr inbounds i8, ptr %131, i64 24
  %133 = getelementptr inbounds i8, ptr %132, i64 -12
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %130, ptr align 1 %133, i64 12, i1 false)
  %134 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  call void @simp_192_permute(ptr noundef %134, i32 noundef 4)
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %135, i64 12
  store ptr %136, ptr %14, align 8, !tbaa !5
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i64 12
  store ptr %138, ptr %11, align 8, !tbaa !5
  %139 = load i64, ptr %15, align 8, !tbaa !9
  %140 = sub i64 %139, 12
  store i64 %140, ptr %15, align 8, !tbaa !9
  br label %72, !llvm.loop !17

141:                                              ; preds = %72
  %142 = load i64, ptr %15, align 8, !tbaa !9
  %143 = icmp eq i64 %142, 12
  br i1 %143, label %144, label %208

144:                                              ; preds = %141
  %145 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %145, ptr align 1 %146, i64 12, i1 false)
  br label %147

147:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #4
  %148 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  %149 = getelementptr inbounds i8, ptr %148, i64 12
  %150 = getelementptr inbounds i8, ptr %149, i64 -12
  store ptr %150, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #4
  %151 = getelementptr inbounds [12 x i8], ptr %21, i64 0, i64 0
  store ptr %151, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #4
  store i32 12, ptr %36, align 4, !tbaa !11
  br label %152

152:                                              ; preds = %155, %147
  %153 = load i32, ptr %36, align 4, !tbaa !11
  %154 = icmp ugt i32 %153, 0
  br i1 %154, label %155, label %168

155:                                              ; preds = %152
  %156 = load ptr, ptr %35, align 8, !tbaa !5
  %157 = getelementptr inbounds i8, ptr %156, i32 1
  store ptr %157, ptr %35, align 8, !tbaa !5
  %158 = load i8, ptr %156, align 1, !tbaa !13
  %159 = zext i8 %158 to i32
  %160 = load ptr, ptr %34, align 8, !tbaa !5
  %161 = getelementptr inbounds i8, ptr %160, i32 1
  store ptr %161, ptr %34, align 8, !tbaa !5
  %162 = load i8, ptr %160, align 1, !tbaa !13
  %163 = zext i8 %162 to i32
  %164 = xor i32 %163, %159
  %165 = trunc i32 %164 to i8
  store i8 %165, ptr %160, align 1, !tbaa !13
  %166 = load i32, ptr %36, align 4, !tbaa !11
  %167 = add i32 %166, -1
  store i32 %167, ptr %36, align 4, !tbaa !11
  br label %152, !llvm.loop !18

168:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 4, 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 %169

169:                                              ; preds = %168
  br label %170

170:                                              ; preds = %169
  br label %171

171:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %172, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #4
  %173 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  store ptr %173, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #4
  %174 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  store ptr %174, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  store i32 12, ptr %40, align 4, !tbaa !11
  br label %175

175:                                              ; preds = %178, %171
  %176 = load i32, ptr %40, align 4, !tbaa !11
  %177 = icmp ugt i32 %176, 0
  br i1 %177, label %178, label %196

178:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #4
  %179 = load ptr, ptr %39, align 8, !tbaa !5
  %180 = getelementptr inbounds i8, ptr %179, i32 1
  store ptr %180, ptr %39, align 8, !tbaa !5
  %181 = load i8, ptr %179, align 1, !tbaa !13
  store i8 %181, ptr %41, align 1, !tbaa !13
  %182 = load ptr, ptr %38, align 8, !tbaa !5
  %183 = load i8, ptr %182, align 1, !tbaa !13
  %184 = zext i8 %183 to i32
  %185 = load i8, ptr %41, align 1, !tbaa !13
  %186 = zext i8 %185 to i32
  %187 = xor i32 %184, %186
  %188 = trunc i32 %187 to i8
  %189 = load ptr, ptr %37, align 8, !tbaa !5
  %190 = getelementptr inbounds i8, ptr %189, i32 1
  store ptr %190, ptr %37, align 8, !tbaa !5
  store i8 %188, ptr %189, align 1, !tbaa !13
  %191 = load i8, ptr %41, align 1, !tbaa !13
  %192 = load ptr, ptr %38, align 8, !tbaa !5
  %193 = getelementptr inbounds i8, ptr %192, i32 1
  store ptr %193, ptr %38, align 8, !tbaa !5
  store i8 %191, ptr %192, align 1, !tbaa !13
  %194 = load i32, ptr %40, align 4, !tbaa !11
  %195 = add i32 %194, -1
  store i32 %195, ptr %40, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #4
  br label %175, !llvm.loop !19

196:                                              ; preds = %175
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  %199 = getelementptr inbounds [3 x i8], ptr %22, i64 0, i64 2
  %200 = load i8, ptr %199, align 1, !tbaa !13
  %201 = zext i8 %200 to i32
  %202 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 23
  %203 = load i8, ptr %202, align 1, !tbaa !13
  %204 = zext i8 %203 to i32
  %205 = xor i32 %204, %201
  %206 = trunc i32 %205 to i8
  store i8 %206, ptr %202, align 1, !tbaa !13
  %207 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  call void @simp_192_permute(ptr noundef %207, i32 noundef 4)
  br label %294

208:                                              ; preds = %141
  %209 = load i64, ptr %15, align 8, !tbaa !9
  %210 = icmp ugt i64 %209, 0
  br i1 %210, label %211, label %293

211:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #4
  %212 = load i64, ptr %15, align 8, !tbaa !9
  %213 = trunc i64 %212 to i32
  store i32 %213, ptr %42, align 4, !tbaa !11
  %214 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  %215 = load ptr, ptr %14, align 8, !tbaa !5
  %216 = load i32, ptr %42, align 4, !tbaa !11
  %217 = zext i32 %216 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %214, ptr align 1 %215, i64 %217, i1 false)
  %218 = load i32, ptr %42, align 4, !tbaa !11
  %219 = icmp ugt i32 %218, 0
  br i1 %219, label %220, label %247

220:                                              ; preds = %211
  br label %221

221:                                              ; preds = %220
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #4
  %222 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  %223 = getelementptr inbounds i8, ptr %222, i64 12
  %224 = getelementptr inbounds i8, ptr %223, i64 -12
  store ptr %224, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #4
  %225 = getelementptr inbounds [12 x i8], ptr %21, i64 0, i64 0
  store ptr %225, ptr %44, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #4
  %226 = load i32, ptr %42, align 4, !tbaa !11
  %227 = sub i32 %226, 0
  store i32 %227, ptr %45, align 4, !tbaa !11
  br label %228

228:                                              ; preds = %231, %221
  %229 = load i32, ptr %45, align 4, !tbaa !11
  %230 = icmp ugt i32 %229, 0
  br i1 %230, label %231, label %244

231:                                              ; preds = %228
  %232 = load ptr, ptr %44, align 8, !tbaa !5
  %233 = getelementptr inbounds i8, ptr %232, i32 1
  store ptr %233, ptr %44, align 8, !tbaa !5
  %234 = load i8, ptr %232, align 1, !tbaa !13
  %235 = zext i8 %234 to i32
  %236 = load ptr, ptr %43, align 8, !tbaa !5
  %237 = getelementptr inbounds i8, ptr %236, i32 1
  store ptr %237, ptr %43, align 8, !tbaa !5
  %238 = load i8, ptr %236, align 1, !tbaa !13
  %239 = zext i8 %238 to i32
  %240 = xor i32 %239, %235
  %241 = trunc i32 %240 to i8
  store i8 %241, ptr %236, align 1, !tbaa !13
  %242 = load i32, ptr %45, align 4, !tbaa !11
  %243 = add i32 %242, -1
  store i32 %243, ptr %45, align 4, !tbaa !11
  br label %228, !llvm.loop !20

244:                                              ; preds = %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #4
  br label %245

245:                                              ; preds = %244
  br label %246

246:                                              ; preds = %245
  br label %247

247:                                              ; preds = %246, %211
  br label %248

248:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #4
  %249 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %249, ptr %46, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #4
  %250 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  store ptr %250, ptr %47, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #4
  %251 = getelementptr inbounds [12 x i8], ptr %23, i64 0, i64 0
  store ptr %251, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #4
  %252 = load i32, ptr %42, align 4, !tbaa !11
  store i32 %252, ptr %49, align 4, !tbaa !11
  br label %253

253:                                              ; preds = %256, %248
  %254 = load i32, ptr %49, align 4, !tbaa !11
  %255 = icmp ugt i32 %254, 0
  br i1 %255, label %256, label %274

256:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 1, ptr %50) #4
  %257 = load ptr, ptr %48, align 8, !tbaa !5
  %258 = getelementptr inbounds i8, ptr %257, i32 1
  store ptr %258, ptr %48, align 8, !tbaa !5
  %259 = load i8, ptr %257, align 1, !tbaa !13
  store i8 %259, ptr %50, align 1, !tbaa !13
  %260 = load ptr, ptr %47, align 8, !tbaa !5
  %261 = load i8, ptr %260, align 1, !tbaa !13
  %262 = zext i8 %261 to i32
  %263 = load i8, ptr %50, align 1, !tbaa !13
  %264 = zext i8 %263 to i32
  %265 = xor i32 %262, %264
  %266 = trunc i32 %265 to i8
  %267 = load ptr, ptr %46, align 8, !tbaa !5
  %268 = getelementptr inbounds i8, ptr %267, i32 1
  store ptr %268, ptr %46, align 8, !tbaa !5
  store i8 %266, ptr %267, align 1, !tbaa !13
  %269 = load i8, ptr %50, align 1, !tbaa !13
  %270 = load ptr, ptr %47, align 8, !tbaa !5
  %271 = getelementptr inbounds i8, ptr %270, i32 1
  store ptr %271, ptr %47, align 8, !tbaa !5
  store i8 %269, ptr %270, align 1, !tbaa !13
  %272 = load i32, ptr %49, align 4, !tbaa !11
  %273 = add i32 %272, -1
  store i32 %273, ptr %49, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #4
  br label %253, !llvm.loop !21

274:                                              ; preds = %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #4
  br label %275

275:                                              ; preds = %274
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %42, align 4, !tbaa !11
  %278 = zext i32 %277 to i64
  %279 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 %278
  %280 = load i8, ptr %279, align 1, !tbaa !13
  %281 = zext i8 %280 to i32
  %282 = xor i32 %281, 128
  %283 = trunc i32 %282 to i8
  store i8 %283, ptr %279, align 1, !tbaa !13
  %284 = getelementptr inbounds [3 x i8], ptr %22, i64 0, i64 2
  %285 = load i8, ptr %284, align 1, !tbaa !13
  %286 = zext i8 %285 to i32
  %287 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 23
  %288 = load i8, ptr %287, align 1, !tbaa !13
  %289 = zext i8 %288 to i32
  %290 = xor i32 %289, %286
  %291 = trunc i32 %290 to i8
  store i8 %291, ptr %287, align 1, !tbaa !13
  %292 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  call void @simp_192_permute(ptr noundef %292, i32 noundef 4)
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #4
  br label %293

293:                                              ; preds = %276, %208
  br label %294

294:                                              ; preds = %293, %198
  %295 = load i64, ptr %15, align 8, !tbaa !9
  %296 = load ptr, ptr %14, align 8, !tbaa !5
  %297 = getelementptr inbounds i8, ptr %296, i64 %295
  store ptr %297, ptr %14, align 8, !tbaa !5
  %298 = load ptr, ptr %24, align 8, !tbaa !5
  %299 = load ptr, ptr %12, align 8, !tbaa !5
  %300 = load i64, ptr %299, align 8, !tbaa !9
  %301 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  %302 = load ptr, ptr %14, align 8, !tbaa !5
  %303 = call i32 @aead_check_tag(ptr noundef %298, i64 noundef %300, ptr noundef %301, ptr noundef %302, i32 noundef 12)
  store i32 %303, ptr %10, align 4
  store i32 1, ptr %25, align 4
  br label %304

304:                                              ; preds = %294, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 3, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #4
  %305 = load i32, ptr %10, align 4
  ret i32 %305
}

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

; Function Attrs: nounwind uwtable
declare hidden void @oribatida_get_domains(ptr noundef, i64 noundef, i64 noundef, i32 noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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

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

; Function Attrs: nounwind uwtable
declare hidden void @oribatida_192_init(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) #0

declare void @simp_192_permute(ptr noundef, i32 noundef) #3

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 = { "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 #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 = !{!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}


; 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 @oribatida_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 noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca [24 x i8], align 16
  %11 = alloca [12 x i8], align 8
  %12 = alloca [3 x i8], align 1
  %13 = alloca [12 x i8], align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #4
  %14 = icmp ult i64 %4, 12
  br i1 %14, label %188, label %15

15:                                               ; preds = %9
  %16 = add i64 %4, -12
  store i64 %16, ptr %1, align 8, !tbaa !5
  call void @oribatida_get_domains(ptr noundef nonnull %12, i64 noundef %6, i64 noundef %16, i32 noundef 12)
  call void @oribatida_192_init(ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef %8, ptr noundef %7, ptr noundef %5, i64 noundef %6)
  %17 = icmp ugt i64 %16, 12
  br i1 %17, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %15
  %18 = getelementptr inbounds i8, ptr %10, i64 12
  %19 = getelementptr inbounds i8, ptr %11, i64 8
  %20 = getelementptr inbounds i8, ptr %13, i64 8
  %21 = getelementptr inbounds i8, ptr %10, i64 8
  br label %.preheader104.preheader

.preheader104.preheader:                          ; preds = %.lr.ph, %.preheader104.preheader
  %.078114 = phi ptr [ %0, %.lr.ph ], [ %34, %.preheader104.preheader ]
  %.079113 = phi ptr [ %3, %.lr.ph ], [ %33, %.preheader104.preheader ]
  %.087112 = phi i64 [ %16, %.lr.ph ], [ %35, %.preheader104.preheader ]
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %13, ptr noundef nonnull align 1 dereferenceable(12) %.079113, i64 12, i1 false)
  %22 = load <8 x i8>, ptr %11, align 8, !tbaa !9
  %23 = load <8 x i8>, ptr %13, align 8, !tbaa !9
  %24 = xor <8 x i8> %23, %22
  store <8 x i8> %24, ptr %13, align 8, !tbaa !9
  %25 = load <4 x i8>, ptr %19, align 8, !tbaa !9
  %26 = load <4 x i8>, ptr %20, align 8, !tbaa !9
  %27 = xor <4 x i8> %26, %25
  store <4 x i8> %27, ptr %20, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %.078114, i64 8
  %29 = load <8 x i8>, ptr %10, align 16, !tbaa !9
  %30 = xor <8 x i8> %29, %24
  store <8 x i8> %30, ptr %.078114, align 1, !tbaa !9
  store <8 x i8> %24, ptr %10, align 16, !tbaa !9
  %31 = load <4 x i8>, ptr %21, align 8, !tbaa !9
  %32 = xor <4 x i8> %31, %27
  store <4 x i8> %32, ptr %28, align 1, !tbaa !9
  store <4 x i8> %27, ptr %21, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %18, i64 12, i1 false)
  call void @simp_192_permute(ptr noundef nonnull %10, i32 noundef 4) #4
  %33 = getelementptr inbounds i8, ptr %.079113, i64 12
  %34 = getelementptr inbounds i8, ptr %.078114, i64 12
  %35 = add i64 %.087112, -12
  %36 = icmp ugt i64 %35, 12
  br i1 %36, label %.preheader104.preheader, label %._crit_edge, !llvm.loop !10

._crit_edge:                                      ; preds = %.preheader104.preheader, %15
  %.087.lcssa = phi i64 [ %16, %15 ], [ %35, %.preheader104.preheader ]
  %.079.lcssa = phi ptr [ %3, %15 ], [ %33, %.preheader104.preheader ]
  %.078.lcssa = phi ptr [ %0, %15 ], [ %34, %.preheader104.preheader ]
  switch i64 %.087.lcssa, label %iter.check [
    i64 12, label %.preheader103.preheader
    i64 0, label %184
  ]

.preheader103.preheader:                          ; preds = %._crit_edge
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %13, ptr noundef nonnull align 1 dereferenceable(12) %.079.lcssa, i64 12, i1 false)
  %37 = getelementptr inbounds i8, ptr %13, i64 2
  %38 = getelementptr inbounds i8, ptr %13, i64 3
  %39 = getelementptr inbounds i8, ptr %13, i64 4
  %40 = getelementptr inbounds i8, ptr %13, i64 5
  %41 = getelementptr inbounds i8, ptr %13, i64 6
  %42 = getelementptr inbounds i8, ptr %11, i64 8
  %43 = getelementptr inbounds i8, ptr %13, i64 8
  %44 = load <8 x i8>, ptr %11, align 8, !tbaa !9
  %45 = load <8 x i8>, ptr %13, align 8, !tbaa !9
  %46 = xor <8 x i8> %45, %44
  store <8 x i8> %46, ptr %13, align 8, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %13, i64 9
  %48 = getelementptr inbounds i8, ptr %13, i64 10
  %49 = getelementptr inbounds i8, ptr %13, i64 11
  %50 = load <4 x i8>, ptr %42, align 8, !tbaa !9
  %51 = load <4 x i8>, ptr %43, align 8, !tbaa !9
  %52 = xor <4 x i8> %51, %50
  store <4 x i8> %52, ptr %43, align 8, !tbaa !9
  %53 = load i8, ptr %10, align 16, !tbaa !9
  %54 = extractelement <8 x i8> %46, i64 0
  %55 = xor i8 %53, %54
  %56 = getelementptr inbounds i8, ptr %.078.lcssa, i64 1
  store i8 %55, ptr %.078.lcssa, align 1, !tbaa !9
  %57 = getelementptr inbounds i8, ptr %10, i64 1
  store i8 %54, ptr %10, align 16, !tbaa !9
  %58 = load i8, ptr %57, align 1, !tbaa !9
  %59 = extractelement <8 x i8> %46, i64 1
  %60 = xor i8 %58, %59
  %61 = getelementptr inbounds i8, ptr %.078.lcssa, i64 2
  store i8 %60, ptr %56, align 1, !tbaa !9
  %62 = getelementptr inbounds i8, ptr %10, i64 2
  store i8 %59, ptr %57, align 1, !tbaa !9
  %63 = load i8, ptr %37, align 2, !tbaa !9
  %64 = load i8, ptr %62, align 2, !tbaa !9
  %65 = xor i8 %64, %63
  %66 = getelementptr inbounds i8, ptr %.078.lcssa, i64 3
  store i8 %65, ptr %61, align 1, !tbaa !9
  %67 = getelementptr inbounds i8, ptr %10, i64 3
  store i8 %63, ptr %62, align 2, !tbaa !9
  %68 = load i8, ptr %38, align 1, !tbaa !9
  %69 = load i8, ptr %67, align 1, !tbaa !9
  %70 = xor i8 %69, %68
  %71 = getelementptr inbounds i8, ptr %.078.lcssa, i64 4
  store i8 %70, ptr %66, align 1, !tbaa !9
  %72 = getelementptr inbounds i8, ptr %10, i64 4
  store i8 %68, ptr %67, align 1, !tbaa !9
  %73 = load i8, ptr %39, align 4, !tbaa !9
  %74 = load i8, ptr %72, align 4, !tbaa !9
  %75 = xor i8 %74, %73
  %76 = getelementptr inbounds i8, ptr %.078.lcssa, i64 5
  store i8 %75, ptr %71, align 1, !tbaa !9
  %77 = getelementptr inbounds i8, ptr %10, i64 5
  store i8 %73, ptr %72, align 4, !tbaa !9
  %78 = load i8, ptr %40, align 1, !tbaa !9
  %79 = load i8, ptr %77, align 1, !tbaa !9
  %80 = xor i8 %79, %78
  %81 = getelementptr inbounds i8, ptr %.078.lcssa, i64 6
  store i8 %80, ptr %76, align 1, !tbaa !9
  %82 = getelementptr inbounds i8, ptr %10, i64 6
  store i8 %78, ptr %77, align 1, !tbaa !9
  %83 = load i8, ptr %41, align 2, !tbaa !9
  %84 = load i8, ptr %82, align 2, !tbaa !9
  %85 = xor i8 %84, %83
  %86 = getelementptr inbounds i8, ptr %.078.lcssa, i64 7
  store i8 %85, ptr %81, align 1, !tbaa !9
  %87 = getelementptr inbounds i8, ptr %10, i64 7
  store i8 %83, ptr %82, align 2, !tbaa !9
  %88 = load i8, ptr %87, align 1, !tbaa !9
  %89 = extractelement <8 x i8> %46, i64 7
  %90 = xor i8 %88, %89
  %91 = getelementptr inbounds i8, ptr %.078.lcssa, i64 8
  store i8 %90, ptr %86, align 1, !tbaa !9
  %92 = getelementptr inbounds i8, ptr %10, i64 8
  store i8 %89, ptr %87, align 1, !tbaa !9
  %93 = load i8, ptr %43, align 8, !tbaa !9
  %94 = load i8, ptr %92, align 8, !tbaa !9
  %95 = xor i8 %94, %93
  %96 = getelementptr inbounds i8, ptr %.078.lcssa, i64 9
  store i8 %95, ptr %91, align 1, !tbaa !9
  %97 = getelementptr inbounds i8, ptr %10, i64 9
  store i8 %93, ptr %92, align 8, !tbaa !9
  %98 = load i8, ptr %47, align 1, !tbaa !9
  %99 = load i8, ptr %97, align 1, !tbaa !9
  %100 = xor i8 %99, %98
  %101 = getelementptr inbounds i8, ptr %.078.lcssa, i64 10
  store i8 %100, ptr %96, align 1, !tbaa !9
  %102 = getelementptr inbounds i8, ptr %10, i64 10
  store i8 %98, ptr %97, align 1, !tbaa !9
  %103 = load i8, ptr %48, align 2, !tbaa !9
  %104 = load i8, ptr %102, align 2, !tbaa !9
  %105 = xor i8 %104, %103
  %106 = getelementptr inbounds i8, ptr %.078.lcssa, i64 11
  store i8 %105, ptr %101, align 1, !tbaa !9
  %107 = getelementptr inbounds i8, ptr %10, i64 11
  store i8 %103, ptr %102, align 2, !tbaa !9
  %108 = load i8, ptr %49, align 1, !tbaa !9
  %109 = load i8, ptr %107, align 1, !tbaa !9
  %110 = xor i8 %109, %108
  store i8 %110, ptr %106, align 1, !tbaa !9
  store i8 %108, ptr %107, align 1, !tbaa !9
  br label %.sink.split

iter.check:                                       ; preds = %._crit_edge
  %111 = trunc nuw i64 %.087.lcssa to i32
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %13, ptr align 1 %.079.lcssa, i64 %.087.lcssa, i1 false)
  %112 = add nuw nsw i64 %.087.lcssa, 4294967295
  %113 = and i64 %112, 4294967295
  %114 = add nuw nsw i64 %113, 1
  %min.iters.check = icmp ult i64 %113, 7
  br i1 %min.iters.check, label %.lr.ph129.preheader, label %vector.main.loop.iter.check

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

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %114, 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 %11, i64 %index
  %next.gep148 = getelementptr i8, ptr %13, i64 %index
  %115 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load = load <16 x i8>, ptr %next.gep, align 8, !tbaa !9
  %wide.load150 = load <16 x i8>, ptr %115, align 8, !tbaa !9
  %116 = getelementptr i8, ptr %next.gep148, i64 16
  %wide.load151 = load <16 x i8>, ptr %next.gep148, align 8, !tbaa !9
  %wide.load152 = load <16 x i8>, ptr %116, align 8, !tbaa !9
  %117 = xor <16 x i8> %wide.load151, %wide.load
  %118 = xor <16 x i8> %wide.load152, %wide.load150
  store <16 x i8> %117, ptr %next.gep148, align 8, !tbaa !9
  store <16 x i8> %118, ptr %116, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 32
  %119 = icmp eq i64 %index.next, %n.vec
  br i1 %119, label %middle.block, label %vector.body, !llvm.loop !12

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

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end161 = getelementptr i8, ptr %13, i64 %n.vec
  %ind.end158 = getelementptr i8, ptr %11, i64 %n.vec
  %.cast155 = trunc i64 %n.vec to i32
  %ind.end156 = sub i32 %111, %.cast155
  %n.vec.remaining = and i64 %114, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph129.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.vec154 = and i64 %114, 8589934584
  %.cast = trunc i64 %n.vec154 to i32
  %ind.end = sub i32 %111, %.cast
  %ind.end157 = getelementptr i8, ptr %11, i64 %n.vec154
  %ind.end160 = getelementptr i8, ptr %13, i64 %n.vec154
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index163 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next168, %vec.epilog.vector.body ]
  %next.gep164 = getelementptr i8, ptr %11, i64 %index163
  %next.gep165 = getelementptr i8, ptr %13, i64 %index163
  %wide.load166 = load <8 x i8>, ptr %next.gep164, align 8, !tbaa !9
  %wide.load167 = load <8 x i8>, ptr %next.gep165, align 8, !tbaa !9
  %120 = xor <8 x i8> %wide.load167, %wide.load166
  store <8 x i8> %120, ptr %next.gep165, align 8, !tbaa !9
  %index.next168 = add nuw i64 %index163, 8
  %121 = icmp eq i64 %index.next168, %n.vec154
  br i1 %121, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !15

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n169 = icmp eq i64 %114, %n.vec154
  br i1 %cmp.n169, label %iter.check182, label %.lr.ph129.preheader

.lr.ph129.preheader:                              ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %.075127.ph = phi i32 [ %111, %iter.check ], [ %ind.end156, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  %.076126.ph = phi ptr [ %11, %iter.check ], [ %ind.end158, %vec.epilog.iter.check ], [ %ind.end157, %vec.epilog.middle.block ]
  %.077125.ph = phi ptr [ %13, %iter.check ], [ %ind.end161, %vec.epilog.iter.check ], [ %ind.end160, %vec.epilog.middle.block ]
  br label %.lr.ph129

.lr.ph129:                                        ; preds = %.lr.ph129.preheader, %.lr.ph129
  %.075127 = phi i32 [ %127, %.lr.ph129 ], [ %.075127.ph, %.lr.ph129.preheader ]
  %.076126 = phi ptr [ %122, %.lr.ph129 ], [ %.076126.ph, %.lr.ph129.preheader ]
  %.077125 = phi ptr [ %124, %.lr.ph129 ], [ %.077125.ph, %.lr.ph129.preheader ]
  %122 = getelementptr inbounds i8, ptr %.076126, i64 1
  %123 = load i8, ptr %.076126, align 1, !tbaa !9
  %124 = getelementptr inbounds i8, ptr %.077125, i64 1
  %125 = load i8, ptr %.077125, align 1, !tbaa !9
  %126 = xor i8 %125, %123
  store i8 %126, ptr %.077125, align 1, !tbaa !9
  %127 = add nsw i32 %.075127, -1
  %.not97 = icmp eq i32 %127, 0
  br i1 %.not97, label %iter.check182, label %.lr.ph129, !llvm.loop !16

iter.check182:                                    ; preds = %.lr.ph129, %vec.epilog.middle.block, %middle.block
  %128 = add nuw nsw i64 %.087.lcssa, 4294967295
  %129 = and i64 %128, 4294967295
  %130 = add nuw nsw i64 %129, 1
  %min.iters.check180 = icmp ult i64 %129, 7
  br i1 %min.iters.check180, label %.lr.ph135.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %iter.check182
  %131 = add nuw nsw i64 %.087.lcssa, 4294967295
  %132 = and i64 %131, 4294967295
  %133 = add nuw nsw i64 %132, 1
  %scevgep = getelementptr i8, ptr %.078.lcssa, i64 %133
  %scevgep170 = getelementptr i8, ptr %10, i64 %133
  %scevgep171 = getelementptr i8, ptr %13, i64 %133
  %bound0 = icmp ult ptr %.078.lcssa, %scevgep170
  %bound1 = icmp ult ptr %10, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %bound0172 = icmp ult ptr %.078.lcssa, %scevgep171
  %bound1173 = icmp ult ptr %13, %scevgep
  %found.conflict174 = and i1 %bound0172, %bound1173
  %conflict.rdx = or i1 %found.conflict, %found.conflict174
  %bound0175 = icmp ult ptr %10, %scevgep171
  %bound1176 = icmp ult ptr %13, %scevgep170
  %found.conflict177 = and i1 %bound0175, %bound1176
  %conflict.rdx178 = or i1 %conflict.rdx, %found.conflict177
  br i1 %conflict.rdx178, label %.lr.ph135.preheader, label %vector.main.loop.iter.check184

vector.main.loop.iter.check184:                   ; preds = %vector.memcheck
  %min.iters.check183 = icmp ult i64 %129, 31
  br i1 %min.iters.check183, label %vec.epilog.ph204, label %vector.ph185

vector.ph185:                                     ; preds = %vector.main.loop.iter.check184
  %n.vec187 = and i64 %130, 8589934560
  br label %vector.body188

vector.body188:                                   ; preds = %vector.body188, %vector.ph185
  %index189 = phi i64 [ 0, %vector.ph185 ], [ %index.next200, %vector.body188 ]
  %next.gep190 = getelementptr i8, ptr %13, i64 %index189
  %next.gep192 = getelementptr i8, ptr %10, i64 %index189
  %next.gep194 = getelementptr i8, ptr %.078.lcssa, i64 %index189
  %134 = getelementptr i8, ptr %next.gep190, i64 16
  %wide.load196 = load <16 x i8>, ptr %next.gep190, align 8, !tbaa !9, !alias.scope !17
  %wide.load197 = load <16 x i8>, ptr %134, align 8, !tbaa !9, !alias.scope !17
  %135 = getelementptr i8, ptr %next.gep192, i64 16
  %wide.load198 = load <16 x i8>, ptr %next.gep192, align 16, !tbaa !9, !alias.scope !20, !noalias !17
  %wide.load199 = load <16 x i8>, ptr %135, align 16, !tbaa !9, !alias.scope !20, !noalias !17
  %136 = xor <16 x i8> %wide.load198, %wide.load196
  %137 = xor <16 x i8> %wide.load199, %wide.load197
  %138 = getelementptr i8, ptr %next.gep194, i64 16
  store <16 x i8> %136, ptr %next.gep194, align 1, !tbaa !9, !alias.scope !22, !noalias !24
  store <16 x i8> %137, ptr %138, align 1, !tbaa !9, !alias.scope !22, !noalias !24
  store <16 x i8> %wide.load196, ptr %next.gep192, align 16, !tbaa !9, !alias.scope !20, !noalias !17
  store <16 x i8> %wide.load197, ptr %135, align 16, !tbaa !9, !alias.scope !20, !noalias !17
  %index.next200 = add nuw i64 %index189, 32
  %139 = icmp eq i64 %index.next200, %n.vec187
  br i1 %139, label %middle.block179, label %vector.body188, !llvm.loop !25

middle.block179:                                  ; preds = %vector.body188
  %cmp.n201 = icmp eq i64 %130, %n.vec187
  br i1 %cmp.n201, label %._crit_edge136, label %vec.epilog.iter.check205

vec.epilog.iter.check205:                         ; preds = %middle.block179
  %ind.end223 = getelementptr i8, ptr %.078.lcssa, i64 %n.vec187
  %ind.end220 = getelementptr i8, ptr %10, i64 %n.vec187
  %ind.end217 = getelementptr i8, ptr %13, i64 %n.vec187
  %.cast213 = trunc i64 %n.vec187 to i32
  %ind.end214 = sub i32 %111, %.cast213
  %n.vec.remaining206 = and i64 %130, 24
  %min.epilog.iters.check207 = icmp eq i64 %n.vec.remaining206, 0
  br i1 %min.epilog.iters.check207, label %.lr.ph135.preheader, label %vec.epilog.ph204

vec.epilog.ph204:                                 ; preds = %vector.main.loop.iter.check184, %vec.epilog.iter.check205
  %vec.epilog.resume.val208 = phi i64 [ %n.vec187, %vec.epilog.iter.check205 ], [ 0, %vector.main.loop.iter.check184 ]
  %n.vec210 = and i64 %130, 8589934584
  %.cast211 = trunc i64 %n.vec210 to i32
  %ind.end212 = sub i32 %111, %.cast211
  %ind.end216 = getelementptr i8, ptr %13, i64 %n.vec210
  %ind.end219 = getelementptr i8, ptr %10, i64 %n.vec210
  %ind.end222 = getelementptr i8, ptr %.078.lcssa, i64 %n.vec210
  br label %vec.epilog.vector.body225

vec.epilog.vector.body225:                        ; preds = %vec.epilog.vector.body225, %vec.epilog.ph204
  %index226 = phi i64 [ %vec.epilog.resume.val208, %vec.epilog.ph204 ], [ %index.next232, %vec.epilog.vector.body225 ]
  %next.gep227 = getelementptr i8, ptr %13, i64 %index226
  %next.gep228 = getelementptr i8, ptr %10, i64 %index226
  %next.gep229 = getelementptr i8, ptr %.078.lcssa, i64 %index226
  %wide.load230 = load <8 x i8>, ptr %next.gep227, align 8, !tbaa !9, !alias.scope !26
  %wide.load231 = load <8 x i8>, ptr %next.gep228, align 8, !tbaa !9, !alias.scope !29, !noalias !26
  %140 = xor <8 x i8> %wide.load231, %wide.load230
  store <8 x i8> %140, ptr %next.gep229, align 1, !tbaa !9, !alias.scope !31, !noalias !33
  store <8 x i8> %wide.load230, ptr %next.gep228, align 8, !tbaa !9, !alias.scope !29, !noalias !26
  %index.next232 = add nuw i64 %index226, 8
  %141 = icmp eq i64 %index.next232, %n.vec210
  br i1 %141, label %vec.epilog.middle.block202, label %vec.epilog.vector.body225, !llvm.loop !34

vec.epilog.middle.block202:                       ; preds = %vec.epilog.vector.body225
  %cmp.n233 = icmp eq i64 %130, %n.vec210
  br i1 %cmp.n233, label %._crit_edge136, label %.lr.ph135.preheader

.lr.ph135.preheader:                              ; preds = %vec.epilog.middle.block202, %vector.memcheck, %iter.check182, %vec.epilog.iter.check205
  %.071134.ph = phi i32 [ %111, %iter.check182 ], [ %111, %vector.memcheck ], [ %ind.end214, %vec.epilog.iter.check205 ], [ %ind.end212, %vec.epilog.middle.block202 ]
  %.072133.ph = phi ptr [ %13, %iter.check182 ], [ %13, %vector.memcheck ], [ %ind.end217, %vec.epilog.iter.check205 ], [ %ind.end216, %vec.epilog.middle.block202 ]
  %.073132.ph = phi ptr [ %10, %iter.check182 ], [ %10, %vector.memcheck ], [ %ind.end220, %vec.epilog.iter.check205 ], [ %ind.end219, %vec.epilog.middle.block202 ]
  %.074131.ph = phi ptr [ %.078.lcssa, %iter.check182 ], [ %.078.lcssa, %vector.memcheck ], [ %ind.end223, %vec.epilog.iter.check205 ], [ %ind.end222, %vec.epilog.middle.block202 ]
  %142 = add nsw i32 %.071134.ph, -1
  %xtraiter = and i32 %.071134.ph, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph135.prol.loopexit, label %.lr.ph135.prol

.lr.ph135.prol:                                   ; preds = %.lr.ph135.preheader, %.lr.ph135.prol
  %.071134.prol = phi i32 [ %149, %.lr.ph135.prol ], [ %.071134.ph, %.lr.ph135.preheader ]
  %.072133.prol = phi ptr [ %143, %.lr.ph135.prol ], [ %.072133.ph, %.lr.ph135.preheader ]
  %.073132.prol = phi ptr [ %148, %.lr.ph135.prol ], [ %.073132.ph, %.lr.ph135.preheader ]
  %.074131.prol = phi ptr [ %147, %.lr.ph135.prol ], [ %.074131.ph, %.lr.ph135.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph135.prol ], [ 0, %.lr.ph135.preheader ]
  %143 = getelementptr inbounds i8, ptr %.072133.prol, i64 1
  %144 = load i8, ptr %.072133.prol, align 1, !tbaa !9
  %145 = load i8, ptr %.073132.prol, align 1, !tbaa !9
  %146 = xor i8 %145, %144
  %147 = getelementptr inbounds i8, ptr %.074131.prol, i64 1
  store i8 %146, ptr %.074131.prol, align 1, !tbaa !9
  %148 = getelementptr inbounds i8, ptr %.073132.prol, i64 1
  store i8 %144, ptr %.073132.prol, align 1, !tbaa !9
  %149 = add nsw i32 %.071134.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.ph135.prol.loopexit, label %.lr.ph135.prol, !llvm.loop !35

.lr.ph135.prol.loopexit:                          ; preds = %.lr.ph135.prol, %.lr.ph135.preheader
  %.071134.unr = phi i32 [ %.071134.ph, %.lr.ph135.preheader ], [ %149, %.lr.ph135.prol ]
  %.072133.unr = phi ptr [ %.072133.ph, %.lr.ph135.preheader ], [ %143, %.lr.ph135.prol ]
  %.073132.unr = phi ptr [ %.073132.ph, %.lr.ph135.preheader ], [ %148, %.lr.ph135.prol ]
  %.074131.unr = phi ptr [ %.074131.ph, %.lr.ph135.preheader ], [ %147, %.lr.ph135.prol ]
  %150 = icmp ult i32 %142, 3
  br i1 %150, label %._crit_edge136, label %.lr.ph135

.lr.ph135:                                        ; preds = %.lr.ph135.prol.loopexit, %.lr.ph135
  %.071134 = phi i32 [ %175, %.lr.ph135 ], [ %.071134.unr, %.lr.ph135.prol.loopexit ]
  %.072133 = phi ptr [ %169, %.lr.ph135 ], [ %.072133.unr, %.lr.ph135.prol.loopexit ]
  %.073132 = phi ptr [ %174, %.lr.ph135 ], [ %.073132.unr, %.lr.ph135.prol.loopexit ]
  %.074131 = phi ptr [ %173, %.lr.ph135 ], [ %.074131.unr, %.lr.ph135.prol.loopexit ]
  %151 = getelementptr inbounds i8, ptr %.072133, i64 1
  %152 = load i8, ptr %.072133, align 1, !tbaa !9
  %153 = load i8, ptr %.073132, align 1, !tbaa !9
  %154 = xor i8 %153, %152
  %155 = getelementptr inbounds i8, ptr %.074131, i64 1
  store i8 %154, ptr %.074131, align 1, !tbaa !9
  %156 = getelementptr inbounds i8, ptr %.073132, i64 1
  store i8 %152, ptr %.073132, align 1, !tbaa !9
  %157 = getelementptr inbounds i8, ptr %.072133, i64 2
  %158 = load i8, ptr %151, align 1, !tbaa !9
  %159 = load i8, ptr %156, align 1, !tbaa !9
  %160 = xor i8 %159, %158
  %161 = getelementptr inbounds i8, ptr %.074131, i64 2
  store i8 %160, ptr %155, align 1, !tbaa !9
  %162 = getelementptr inbounds i8, ptr %.073132, i64 2
  store i8 %158, ptr %156, align 1, !tbaa !9
  %163 = getelementptr inbounds i8, ptr %.072133, i64 3
  %164 = load i8, ptr %157, align 1, !tbaa !9
  %165 = load i8, ptr %162, align 1, !tbaa !9
  %166 = xor i8 %165, %164
  %167 = getelementptr inbounds i8, ptr %.074131, i64 3
  store i8 %166, ptr %161, align 1, !tbaa !9
  %168 = getelementptr inbounds i8, ptr %.073132, i64 3
  store i8 %164, ptr %162, align 1, !tbaa !9
  %169 = getelementptr inbounds i8, ptr %.072133, i64 4
  %170 = load i8, ptr %163, align 1, !tbaa !9
  %171 = load i8, ptr %168, align 1, !tbaa !9
  %172 = xor i8 %171, %170
  %173 = getelementptr inbounds i8, ptr %.074131, i64 4
  store i8 %172, ptr %167, align 1, !tbaa !9
  %174 = getelementptr inbounds i8, ptr %.073132, i64 4
  store i8 %170, ptr %168, align 1, !tbaa !9
  %175 = add nsw i32 %.071134, -4
  %.not98.3 = icmp eq i32 %175, 0
  br i1 %.not98.3, label %._crit_edge136, label %.lr.ph135, !llvm.loop !37

._crit_edge136:                                   ; preds = %.lr.ph135.prol.loopexit, %.lr.ph135, %vec.epilog.middle.block202, %middle.block179
  %176 = getelementptr inbounds [24 x i8], ptr %10, i64 0, i64 %.087.lcssa
  %177 = load i8, ptr %176, align 1, !tbaa !9
  %178 = xor i8 %177, -128
  store i8 %178, ptr %176, align 1, !tbaa !9
  br label %.sink.split

.sink.split:                                      ; preds = %.preheader103.preheader, %._crit_edge136
  %179 = getelementptr inbounds i8, ptr %12, i64 2
  %180 = load i8, ptr %179, align 1, !tbaa !9
  %181 = getelementptr inbounds i8, ptr %10, i64 23
  %182 = load i8, ptr %181, align 1, !tbaa !9
  %183 = xor i8 %182, %180
  store i8 %183, ptr %181, align 1, !tbaa !9
  call void @simp_192_permute(ptr noundef nonnull %10, i32 noundef 4) #4
  br label %184

184:                                              ; preds = %.sink.split, %._crit_edge
  %185 = getelementptr inbounds i8, ptr %.079.lcssa, i64 %.087.lcssa
  %186 = load i64, ptr %1, align 8, !tbaa !5
  %187 = call i32 @aead_check_tag(ptr noundef %0, i64 noundef %186, ptr noundef nonnull %10, ptr noundef %185, i32 noundef 12) #4
  br label %188

188:                                              ; preds = %9, %184
  %.0 = phi i32 [ %187, %184 ], [ -1, %9 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 24, 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: nounwind uwtable
declare hidden void @oribatida_get_domains(ptr noundef, i64 noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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

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

; Function Attrs: nounwind uwtable
declare hidden void @oribatida_192_init(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

declare void @simp_192_permute(ptr noundef, i32 noundef) local_unnamed_addr #3

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 = { "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 #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 = distinct !{!12, !11, !13, !14}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !11, !13, !14}
!16 = distinct !{!16, !11, !14, !13}
!17 = !{!18}
!18 = distinct !{!18, !19}
!19 = distinct !{!19, !"LVerDomain"}
!20 = !{!21}
!21 = distinct !{!21, !19}
!22 = !{!23}
!23 = distinct !{!23, !19}
!24 = !{!21, !18}
!25 = distinct !{!25, !11, !13, !14}
!26 = !{!27}
!27 = distinct !{!27, !28}
!28 = distinct !{!28, !"LVerDomain"}
!29 = !{!30}
!30 = distinct !{!30, !28}
!31 = !{!32}
!32 = distinct !{!32, !28}
!33 = !{!30, !27}
!34 = distinct !{!34, !11, !13, !14}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.unroll.disable"}
!37 = distinct !{!37, !11, !13}


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