; LLVM IR from lichen-community-systems/signaletic :: hosts/daisy/vendor/libDaisy/Drivers/STM32H7xx_HAL_Driver/Src (GenerateAuthTAG)

; 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"

%struct.CRYP_HandleTypeDef = type { ptr, %struct.CRYP_ConfigTypeDef, ptr, ptr, i16, i16, i16, i16, i32, ptr, ptr, i32, i32, i32, i32 }
%struct.CRYP_ConfigTypeDef = type { i32, i32, ptr, ptr, i32, ptr, i32, ptr, i32 }
%struct.CRYP_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_CRYPEx_AESGCM_GenerateAuthTAG(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %13, i32 0, i32 1
  %15 = getelementptr inbounds %struct.CRYP_ConfigTypeDef, ptr %14, i32 0, i32 6
  %16 = load i32, ptr %15, align 8, !tbaa !11
  %17 = zext i32 %16 to i64
  %18 = mul i64 %17, 32
  store i64 %18, ptr %9, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %19, i32 0, i32 7
  %21 = load i16, ptr %20, align 2, !tbaa !17
  %22 = zext i16 %21 to i64
  %23 = mul i64 %22, 8
  store i64 %23, ptr %10, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = ptrtoint ptr %24 to i32
  store i32 %25, ptr %11, align 4, !tbaa !9
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %26, i32 0, i32 12
  %28 = load volatile i32, ptr %27, align 4, !tbaa !18
  %29 = icmp eq i32 %28, 1
  br i1 %29, label %30, label %356

30:                                               ; preds = %3
  br label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %32, i32 0, i32 11
  %34 = load i32, ptr %33, align 8, !tbaa !19
  %35 = icmp eq i32 %34, 1
  br i1 %35, label %36, label %37

36:                                               ; preds = %31
  store i32 2, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %362

37:                                               ; preds = %31
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %38, i32 0, i32 11
  store i32 1, ptr %39, align 8, !tbaa !19
  br label %40

40:                                               ; preds = %37
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %43, i32 0, i32 12
  store volatile i32 2, ptr %44, align 4, !tbaa !18
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %45, i32 0, i32 8
  %47 = load i32, ptr %46, align 8, !tbaa !20
  %48 = icmp eq i32 %47, 2
  br i1 %48, label %49, label %52

49:                                               ; preds = %42
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %50, i32 0, i32 8
  store i32 3, ptr %51, align 8, !tbaa !20
  br label %72

52:                                               ; preds = %42
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %53, i32 0, i32 0
  %55 = load ptr, ptr %54, align 8, !tbaa !21
  %56 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %55, i32 0, i32 0
  %57 = load volatile i32, ptr %56, align 4, !tbaa !22
  %58 = zext i32 %57 to i64
  %59 = and i64 %58, -32769
  %60 = trunc i64 %59 to i32
  store volatile i32 %60, ptr %56, align 4, !tbaa !22
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %61, i32 0, i32 13
  %63 = load volatile i32, ptr %62, align 8, !tbaa !24
  %64 = or i32 %63, 64
  store volatile i32 %64, ptr %62, align 8, !tbaa !24
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %65, i32 0, i32 12
  store volatile i32 1, ptr %66, align 4, !tbaa !18
  br label %67

67:                                               ; preds = %52
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %68, i32 0, i32 11
  store i32 0, ptr %69, align 8, !tbaa !19
  br label %70

70:                                               ; preds = %67
  br label %71

71:                                               ; preds = %70
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %362

72:                                               ; preds = %49
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !21
  %76 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %75, i32 0, i32 0
  %77 = load volatile i32, ptr %76, align 4, !tbaa !22
  %78 = zext i32 %77 to i64
  %79 = and i64 %78, -32769
  %80 = trunc i64 %79 to i32
  store volatile i32 %80, ptr %76, align 4, !tbaa !22
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %81, i32 0, i32 0
  %83 = load ptr, ptr %82, align 8, !tbaa !21
  %84 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %83, i32 0, i32 0
  %85 = load volatile i32, ptr %84, align 4, !tbaa !22
  %86 = zext i32 %85 to i64
  %87 = and i64 %86, -196609
  %88 = or i64 %87, 196608
  %89 = trunc i64 %88 to i32
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !21
  %93 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %92, i32 0, i32 0
  store volatile i32 %89, ptr %93, align 4, !tbaa !22
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %94, i32 0, i32 0
  %96 = load ptr, ptr %95, align 8, !tbaa !21
  %97 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %96, i32 0, i32 0
  %98 = load volatile i32, ptr %97, align 4, !tbaa !22
  %99 = zext i32 %98 to i64
  %100 = and i64 %99, -5
  %101 = trunc i64 %100 to i32
  store volatile i32 %101, ptr %97, align 4, !tbaa !22
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !21
  %105 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %104, i32 0, i32 0
  %106 = load volatile i32, ptr %105, align 4, !tbaa !22
  %107 = zext i32 %106 to i64
  %108 = or i64 %107, 32768
  %109 = trunc i64 %108 to i32
  store volatile i32 %109, ptr %105, align 4, !tbaa !22
  %110 = load ptr, ptr %5, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %110, i32 0, i32 14
  %112 = load i32, ptr %111, align 4, !tbaa !25
  %113 = icmp uge i32 %112, 8192
  br i1 %113, label %114, label %135

114:                                              ; preds = %72
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !21
  %118 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %117, i32 0, i32 2
  store volatile i32 0, ptr %118, align 4, !tbaa !26
  %119 = load i64, ptr %9, align 8, !tbaa !15
  %120 = trunc i64 %119 to i32
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !21
  %124 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %123, i32 0, i32 2
  store volatile i32 %120, ptr %124, align 4, !tbaa !26
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !21
  %128 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %127, i32 0, i32 2
  store volatile i32 0, ptr %128, align 4, !tbaa !26
  %129 = load i64, ptr %10, align 8, !tbaa !15
  %130 = trunc i64 %129 to i32
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %131, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !21
  %134 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %133, i32 0, i32 2
  store volatile i32 %130, ptr %134, align 4, !tbaa !26
  br label %257

135:                                              ; preds = %72
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %136, i32 0, i32 1
  %138 = getelementptr inbounds %struct.CRYP_ConfigTypeDef, ptr %137, i32 0, i32 0
  %139 = load i32, ptr %138, align 8, !tbaa !27
  %140 = zext i32 %139 to i64
  %141 = icmp eq i64 %140, 192
  br i1 %141, label %142, label %165

142:                                              ; preds = %135
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !21
  %146 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %145, i32 0, i32 2
  store volatile i32 0, ptr %146, align 4, !tbaa !26
  %147 = load i64, ptr %9, align 8, !tbaa !15
  %148 = trunc i64 %147 to i32
  %149 = call i32 @__RBIT(i32 noundef %148)
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %150, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !21
  %153 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %152, i32 0, i32 2
  store volatile i32 %149, ptr %153, align 4, !tbaa !26
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !21
  %157 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %156, i32 0, i32 2
  store volatile i32 0, ptr %157, align 4, !tbaa !26
  %158 = load i64, ptr %10, align 8, !tbaa !15
  %159 = trunc i64 %158 to i32
  %160 = call i32 @__RBIT(i32 noundef %159)
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %161, i32 0, i32 0
  %163 = load ptr, ptr %162, align 8, !tbaa !21
  %164 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %163, i32 0, i32 2
  store volatile i32 %160, ptr %164, align 4, !tbaa !26
  br label %256

165:                                              ; preds = %135
  %166 = load ptr, ptr %5, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %166, i32 0, i32 1
  %168 = getelementptr inbounds %struct.CRYP_ConfigTypeDef, ptr %167, i32 0, i32 0
  %169 = load i32, ptr %168, align 8, !tbaa !27
  %170 = zext i32 %169 to i64
  %171 = icmp eq i64 %170, 128
  br i1 %171, label %172, label %195

172:                                              ; preds = %165
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %173, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8, !tbaa !21
  %176 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %175, i32 0, i32 2
  store volatile i32 0, ptr %176, align 4, !tbaa !26
  %177 = load i64, ptr %9, align 8, !tbaa !15
  %178 = trunc i64 %177 to i32
  %179 = call i32 @__REV(i32 noundef %178)
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %180, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8, !tbaa !21
  %183 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %182, i32 0, i32 2
  store volatile i32 %179, ptr %183, align 4, !tbaa !26
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %184, i32 0, i32 0
  %186 = load ptr, ptr %185, align 8, !tbaa !21
  %187 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %186, i32 0, i32 2
  store volatile i32 0, ptr %187, align 4, !tbaa !26
  %188 = load i64, ptr %10, align 8, !tbaa !15
  %189 = trunc i64 %188 to i32
  %190 = call i32 @__REV(i32 noundef %189)
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %191, i32 0, i32 0
  %193 = load ptr, ptr %192, align 8, !tbaa !21
  %194 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %193, i32 0, i32 2
  store volatile i32 %190, ptr %194, align 4, !tbaa !26
  br label %255

195:                                              ; preds = %165
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %196, i32 0, i32 1
  %198 = getelementptr inbounds %struct.CRYP_ConfigTypeDef, ptr %197, i32 0, i32 0
  %199 = load i32, ptr %198, align 8, !tbaa !27
  %200 = zext i32 %199 to i64
  %201 = icmp eq i64 %200, 64
  br i1 %201, label %202, label %225

202:                                              ; preds = %195
  %203 = load ptr, ptr %5, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !21
  %206 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %205, i32 0, i32 2
  store volatile i32 0, ptr %206, align 4, !tbaa !26
  %207 = load i64, ptr %9, align 8, !tbaa !15
  %208 = trunc i64 %207 to i32
  %209 = call i32 @__ROR(i32 noundef %208, i32 noundef 16)
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %210, i32 0, i32 0
  %212 = load ptr, ptr %211, align 8, !tbaa !21
  %213 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %212, i32 0, i32 2
  store volatile i32 %209, ptr %213, align 4, !tbaa !26
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %214, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8, !tbaa !21
  %217 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %216, i32 0, i32 2
  store volatile i32 0, ptr %217, align 4, !tbaa !26
  %218 = load i64, ptr %10, align 8, !tbaa !15
  %219 = trunc i64 %218 to i32
  %220 = call i32 @__ROR(i32 noundef %219, i32 noundef 16)
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %221, i32 0, i32 0
  %223 = load ptr, ptr %222, align 8, !tbaa !21
  %224 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %223, i32 0, i32 2
  store volatile i32 %220, ptr %224, align 4, !tbaa !26
  br label %254

225:                                              ; preds = %195
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %226, i32 0, i32 1
  %228 = getelementptr inbounds %struct.CRYP_ConfigTypeDef, ptr %227, i32 0, i32 0
  %229 = load i32, ptr %228, align 8, !tbaa !27
  %230 = icmp eq i32 %229, 0
  br i1 %230, label %231, label %252

231:                                              ; preds = %225
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %232, i32 0, i32 0
  %234 = load ptr, ptr %233, align 8, !tbaa !21
  %235 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %234, i32 0, i32 2
  store volatile i32 0, ptr %235, align 4, !tbaa !26
  %236 = load i64, ptr %9, align 8, !tbaa !15
  %237 = trunc i64 %236 to i32
  %238 = load ptr, ptr %5, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %238, i32 0, i32 0
  %240 = load ptr, ptr %239, align 8, !tbaa !21
  %241 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %240, i32 0, i32 2
  store volatile i32 %237, ptr %241, align 4, !tbaa !26
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %242, i32 0, i32 0
  %244 = load ptr, ptr %243, align 8, !tbaa !21
  %245 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %244, i32 0, i32 2
  store volatile i32 0, ptr %245, align 4, !tbaa !26
  %246 = load i64, ptr %10, align 8, !tbaa !15
  %247 = trunc i64 %246 to i32
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %248, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8, !tbaa !21
  %251 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %250, i32 0, i32 2
  store volatile i32 %247, ptr %251, align 4, !tbaa !26
  br label %253

252:                                              ; preds = %225
  br label %253

253:                                              ; preds = %252, %231
  br label %254

254:                                              ; preds = %253, %202
  br label %255

255:                                              ; preds = %254, %172
  br label %256

256:                                              ; preds = %255, %142
  br label %257

257:                                              ; preds = %256, %114
  %258 = call i32 @HAL_GetTick()
  store i32 %258, ptr %8, align 4, !tbaa !9
  br label %259

259:                                              ; preds = %301, %257
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %260, i32 0, i32 0
  %262 = load ptr, ptr %261, align 8, !tbaa !21
  %263 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %262, i32 0, i32 1
  %264 = load volatile i32, ptr %263, align 4, !tbaa !28
  %265 = zext i32 %264 to i64
  %266 = and i64 %265, 4
  %267 = icmp eq i64 %266, 0
  br i1 %267, label %268, label %302

268:                                              ; preds = %259
  %269 = load i32, ptr %7, align 4, !tbaa !9
  %270 = icmp ne i32 %269, -1
  br i1 %270, label %271, label %301

271:                                              ; preds = %268
  %272 = call i32 @HAL_GetTick()
  %273 = load i32, ptr %8, align 4, !tbaa !9
  %274 = sub i32 %272, %273
  %275 = load i32, ptr %7, align 4, !tbaa !9
  %276 = icmp ugt i32 %274, %275
  br i1 %276, label %280, label %277

277:                                              ; preds = %271
  %278 = load i32, ptr %7, align 4, !tbaa !9
  %279 = icmp eq i32 %278, 0
  br i1 %279, label %280, label %300

280:                                              ; preds = %277, %271
  %281 = load ptr, ptr %5, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %281, i32 0, i32 0
  %283 = load ptr, ptr %282, align 8, !tbaa !21
  %284 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %283, i32 0, i32 0
  %285 = load volatile i32, ptr %284, align 4, !tbaa !22
  %286 = zext i32 %285 to i64
  %287 = and i64 %286, -32769
  %288 = trunc i64 %287 to i32
  store volatile i32 %288, ptr %284, align 4, !tbaa !22
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %289, i32 0, i32 13
  %291 = load volatile i32, ptr %290, align 8, !tbaa !24
  %292 = or i32 %291, 16
  store volatile i32 %292, ptr %290, align 8, !tbaa !24
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %293, i32 0, i32 12
  store volatile i32 1, ptr %294, align 4, !tbaa !18
  br label %295

295:                                              ; preds = %280
  %296 = load ptr, ptr %5, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %296, i32 0, i32 11
  store i32 0, ptr %297, align 8, !tbaa !19
  br label %298

298:                                              ; preds = %295
  br label %299

299:                                              ; preds = %298
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %362

300:                                              ; preds = %277
  br label %301

301:                                              ; preds = %300, %268
  br label %259, !llvm.loop !29

302:                                              ; preds = %259
  %303 = load ptr, ptr %5, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %303, i32 0, i32 0
  %305 = load ptr, ptr %304, align 8, !tbaa !21
  %306 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %305, i32 0, i32 3
  %307 = load volatile i32, ptr %306, align 4, !tbaa !31
  %308 = load i32, ptr %11, align 4, !tbaa !9
  %309 = zext i32 %308 to i64
  %310 = inttoptr i64 %309 to ptr
  store i32 %307, ptr %310, align 4, !tbaa !9
  %311 = load i32, ptr %11, align 4, !tbaa !9
  %312 = add i32 %311, 4
  store i32 %312, ptr %11, align 4, !tbaa !9
  %313 = load ptr, ptr %5, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %313, i32 0, i32 0
  %315 = load ptr, ptr %314, align 8, !tbaa !21
  %316 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %315, i32 0, i32 3
  %317 = load volatile i32, ptr %316, align 4, !tbaa !31
  %318 = load i32, ptr %11, align 4, !tbaa !9
  %319 = zext i32 %318 to i64
  %320 = inttoptr i64 %319 to ptr
  store i32 %317, ptr %320, align 4, !tbaa !9
  %321 = load i32, ptr %11, align 4, !tbaa !9
  %322 = add i32 %321, 4
  store i32 %322, ptr %11, align 4, !tbaa !9
  %323 = load ptr, ptr %5, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %323, i32 0, i32 0
  %325 = load ptr, ptr %324, align 8, !tbaa !21
  %326 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %325, i32 0, i32 3
  %327 = load volatile i32, ptr %326, align 4, !tbaa !31
  %328 = load i32, ptr %11, align 4, !tbaa !9
  %329 = zext i32 %328 to i64
  %330 = inttoptr i64 %329 to ptr
  store i32 %327, ptr %330, align 4, !tbaa !9
  %331 = load i32, ptr %11, align 4, !tbaa !9
  %332 = add i32 %331, 4
  store i32 %332, ptr %11, align 4, !tbaa !9
  %333 = load ptr, ptr %5, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %333, i32 0, i32 0
  %335 = load ptr, ptr %334, align 8, !tbaa !21
  %336 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %335, i32 0, i32 3
  %337 = load volatile i32, ptr %336, align 4, !tbaa !31
  %338 = load i32, ptr %11, align 4, !tbaa !9
  %339 = zext i32 %338 to i64
  %340 = inttoptr i64 %339 to ptr
  store i32 %337, ptr %340, align 4, !tbaa !9
  %341 = load ptr, ptr %5, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %341, i32 0, i32 0
  %343 = load ptr, ptr %342, align 8, !tbaa !21
  %344 = getelementptr inbounds %struct.CRYP_TypeDef, ptr %343, i32 0, i32 0
  %345 = load volatile i32, ptr %344, align 4, !tbaa !22
  %346 = zext i32 %345 to i64
  %347 = and i64 %346, -32769
  %348 = trunc i64 %347 to i32
  store volatile i32 %348, ptr %344, align 4, !tbaa !22
  %349 = load ptr, ptr %5, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %349, i32 0, i32 12
  store volatile i32 1, ptr %350, align 4, !tbaa !18
  br label %351

351:                                              ; preds = %302
  %352 = load ptr, ptr %5, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %352, i32 0, i32 11
  store i32 0, ptr %353, align 8, !tbaa !19
  br label %354

354:                                              ; preds = %351
  br label %355

355:                                              ; preds = %354
  br label %361

356:                                              ; preds = %3
  %357 = load ptr, ptr %5, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.CRYP_HandleTypeDef, ptr %357, i32 0, i32 13
  %359 = load volatile i32, ptr %358, align 8, !tbaa !24
  %360 = or i32 %359, 8
  store volatile i32 %360, ptr %358, align 8, !tbaa !24
  store i32 1, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %362

361:                                              ; preds = %355
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %362

362:                                              ; preds = %361, %356, %299, %71, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %363 = load i32, ptr %4, align 4
  ret i32 %363
}

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__RBIT(i32 noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__REV(i32 noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__ROR(i32 noundef, i32 noundef) #2

declare i32 @HAL_GetTick() #3

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

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 = { alwaysinline 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 #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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 48}
!12 = !{!"", !6, i64 0, !13, i64 8, !6, i64 72, !6, i64 80, !14, i64 88, !14, i64 90, !14, i64 92, !14, i64 94, !10, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132}
!13 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !10, i64 40, !6, i64 48, !10, i64 56}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!12, !14, i64 94}
!18 = !{!12, !10, i64 124}
!19 = !{!12, !10, i64 120}
!20 = !{!12, !10, i64 96}
!21 = !{!12, !6, i64 0}
!22 = !{!23, !10, i64 0}
!23 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140}
!24 = !{!12, !10, i64 128}
!25 = !{!12, !10, i64 132}
!26 = !{!23, !10, i64 8}
!27 = !{!12, !10, i64 8}
!28 = !{!23, !10, i64 4}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!23, !10, i64 12}


; 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 range(i32 0, 3) i32 @HAL_CRYPEx_AESGCM_GenerateAuthTAG(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = getelementptr inbounds i8, ptr %0, i64 48
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = zext i32 %6 to i64
  %8 = shl nuw nsw i64 %7, 5
  %9 = getelementptr inbounds i8, ptr %0, i64 94
  %10 = load i16, ptr %9, align 2, !tbaa !13
  %11 = zext i16 %10 to i64
  %12 = shl nuw nsw i64 %11, 3
  %13 = ptrtoint ptr %1 to i64
  %14 = getelementptr inbounds i8, ptr %0, i64 124
  %15 = load volatile i32, ptr %14, align 4, !tbaa !14
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %17, label %130

17:                                               ; preds = %3
  %18 = getelementptr inbounds i8, ptr %0, i64 120
  %19 = load i32, ptr %18, align 8, !tbaa !15
  %20 = icmp eq i32 %19, 1
  br i1 %20, label %134, label %21

21:                                               ; preds = %17
  store i32 1, ptr %18, align 8, !tbaa !15
  store volatile i32 2, ptr %14, align 4, !tbaa !14
  %22 = getelementptr inbounds i8, ptr %0, i64 96
  %23 = load i32, ptr %22, align 8, !tbaa !16
  %24 = icmp eq i32 %23, 2
  br i1 %24, label %25, label %38

25:                                               ; preds = %21
  store i32 3, ptr %22, align 8, !tbaa !16
  %26 = load ptr, ptr %0, align 8, !tbaa !17
  %27 = load volatile i32, ptr %26, align 4, !tbaa !18
  %28 = and i32 %27, -32769
  store volatile i32 %28, ptr %26, align 4, !tbaa !18
  %29 = load volatile i32, ptr %26, align 4, !tbaa !18
  %30 = or i32 %29, 196608
  store volatile i32 %30, ptr %26, align 4, !tbaa !18
  %31 = load volatile i32, ptr %26, align 4, !tbaa !18
  %32 = and i32 %31, -5
  store volatile i32 %32, ptr %26, align 4, !tbaa !18
  %33 = load volatile i32, ptr %26, align 4, !tbaa !18
  %34 = or i32 %33, 32768
  store volatile i32 %34, ptr %26, align 4, !tbaa !18
  %35 = getelementptr inbounds i8, ptr %0, i64 132
  %36 = load i32, ptr %35, align 4, !tbaa !20
  %37 = icmp ugt i32 %36, 8191
  br i1 %37, label %45, label %49

38:                                               ; preds = %21
  %39 = load ptr, ptr %0, align 8, !tbaa !17
  %40 = load volatile i32, ptr %39, align 4, !tbaa !18
  %41 = and i32 %40, -32769
  store volatile i32 %41, ptr %39, align 4, !tbaa !18
  %42 = getelementptr inbounds i8, ptr %0, i64 128
  %43 = load volatile i32, ptr %42, align 8, !tbaa !21
  %44 = or i32 %43, 64
  store volatile i32 %44, ptr %42, align 8, !tbaa !21
  store volatile i32 1, ptr %14, align 4, !tbaa !14
  store i32 0, ptr %18, align 8, !tbaa !15
  br label %134

45:                                               ; preds = %25
  %46 = getelementptr inbounds i8, ptr %26, i64 8
  store volatile i32 0, ptr %46, align 4, !tbaa !22
  %47 = trunc i64 %8 to i32
  store volatile i32 %47, ptr %46, align 4, !tbaa !22
  store volatile i32 0, ptr %46, align 4, !tbaa !22
  %48 = trunc nuw nsw i64 %12 to i32
  store volatile i32 %48, ptr %46, align 4, !tbaa !22
  br label %86

49:                                               ; preds = %25
  %50 = load i32, ptr %4, align 8, !tbaa !23
  %51 = tail call i32 @llvm.fshl.i32(i32 %50, i32 %50, i32 26)
  switch i32 %51, label %86 [
    i32 3, label %52
    i32 2, label %62
    i32 1, label %72
    i32 0, label %82
  ]

52:                                               ; preds = %49
  %53 = getelementptr inbounds i8, ptr %26, i64 8
  store volatile i32 0, ptr %53, align 4, !tbaa !22
  %54 = trunc i64 %8 to i32
  %55 = tail call i32 @__RBIT(i32 noundef %54)
  %56 = load ptr, ptr %0, align 8, !tbaa !17
  %57 = getelementptr inbounds i8, ptr %56, i64 8
  store volatile i32 %55, ptr %57, align 4, !tbaa !22
  store volatile i32 0, ptr %57, align 4, !tbaa !22
  %58 = trunc nuw nsw i64 %12 to i32
  %59 = tail call i32 @__RBIT(i32 noundef %58)
  %60 = load ptr, ptr %0, align 8, !tbaa !17
  %61 = getelementptr inbounds i8, ptr %60, i64 8
  store volatile i32 %59, ptr %61, align 4, !tbaa !22
  br label %86

62:                                               ; preds = %49
  %63 = getelementptr inbounds i8, ptr %26, i64 8
  store volatile i32 0, ptr %63, align 4, !tbaa !22
  %64 = trunc i64 %8 to i32
  %65 = tail call i32 @__REV(i32 noundef %64)
  %66 = load ptr, ptr %0, align 8, !tbaa !17
  %67 = getelementptr inbounds i8, ptr %66, i64 8
  store volatile i32 %65, ptr %67, align 4, !tbaa !22
  store volatile i32 0, ptr %67, align 4, !tbaa !22
  %68 = trunc nuw nsw i64 %12 to i32
  %69 = tail call i32 @__REV(i32 noundef %68)
  %70 = load ptr, ptr %0, align 8, !tbaa !17
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  store volatile i32 %69, ptr %71, align 4, !tbaa !22
  br label %86

72:                                               ; preds = %49
  %73 = getelementptr inbounds i8, ptr %26, i64 8
  store volatile i32 0, ptr %73, align 4, !tbaa !22
  %74 = trunc i64 %8 to i32
  %75 = tail call i32 @__ROR(i32 noundef %74, i32 noundef 16)
  %76 = load ptr, ptr %0, align 8, !tbaa !17
  %77 = getelementptr inbounds i8, ptr %76, i64 8
  store volatile i32 %75, ptr %77, align 4, !tbaa !22
  store volatile i32 0, ptr %77, align 4, !tbaa !22
  %78 = trunc nuw nsw i64 %12 to i32
  %79 = tail call i32 @__ROR(i32 noundef %78, i32 noundef 16)
  %80 = load ptr, ptr %0, align 8, !tbaa !17
  %81 = getelementptr inbounds i8, ptr %80, i64 8
  store volatile i32 %79, ptr %81, align 4, !tbaa !22
  br label %86

82:                                               ; preds = %49
  %83 = getelementptr inbounds i8, ptr %26, i64 8
  store volatile i32 0, ptr %83, align 4, !tbaa !22
  %84 = trunc i64 %8 to i32
  store volatile i32 %84, ptr %83, align 4, !tbaa !22
  store volatile i32 0, ptr %83, align 4, !tbaa !22
  %85 = trunc nuw nsw i64 %12 to i32
  store volatile i32 %85, ptr %83, align 4, !tbaa !22
  br label %86

86:                                               ; preds = %49, %52, %72, %82, %62, %45
  %87 = tail call i32 @HAL_GetTick() #4
  %88 = load ptr, ptr %0, align 8, !tbaa !17
  %89 = getelementptr inbounds i8, ptr %88, i64 4
  %90 = load volatile i32, ptr %89, align 4, !tbaa !24
  %91 = and i32 %90, 4
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %86
  switch i32 %2, label %.lr.ph.split.split [
    i32 -1, label %.lr.ph.split.us
    i32 0, label %.lr.ph.split.split.us
  ]

.lr.ph.split.us:                                  ; preds = %.lr.ph, %.lr.ph.split.us
  %93 = load volatile i32, ptr %89, align 4, !tbaa !24
  %94 = and i32 %93, 4
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %.lr.ph.split.us, label %._crit_edge, !llvm.loop !25

.lr.ph.split.split.us:                            ; preds = %.lr.ph
  %96 = tail call i32 @HAL_GetTick() #4
  br label %.split

.lr.ph.split.split:                               ; preds = %.lr.ph, %106
  %97 = tail call i32 @HAL_GetTick() #4
  %98 = sub i32 %97, %87
  %99 = icmp ugt i32 %98, %2
  br i1 %99, label %.split, label %106

.split:                                           ; preds = %.lr.ph.split.split, %.lr.ph.split.split.us
  %100 = load ptr, ptr %0, align 8, !tbaa !17
  %101 = load volatile i32, ptr %100, align 4, !tbaa !18
  %102 = and i32 %101, -32769
  store volatile i32 %102, ptr %100, align 4, !tbaa !18
  %103 = getelementptr inbounds i8, ptr %0, i64 128
  %104 = load volatile i32, ptr %103, align 8, !tbaa !21
  %105 = or i32 %104, 16
  store volatile i32 %105, ptr %103, align 8, !tbaa !21
  store volatile i32 1, ptr %14, align 4, !tbaa !14
  store i32 0, ptr %18, align 8, !tbaa !15
  br label %134

106:                                              ; preds = %.lr.ph.split.split
  %107 = load ptr, ptr %0, align 8, !tbaa !17
  %108 = getelementptr inbounds i8, ptr %107, i64 4
  %109 = load volatile i32, ptr %108, align 4, !tbaa !24
  %110 = and i32 %109, 4
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %.lr.ph.split.split, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph.split.us, %106, %86
  %.lcssa = phi ptr [ %88, %86 ], [ %107, %106 ], [ %88, %.lr.ph.split.us ]
  %112 = getelementptr inbounds i8, ptr %.lcssa, i64 12
  %113 = load volatile i32, ptr %112, align 4, !tbaa !27
  %114 = and i64 %13, 4294967295
  %115 = inttoptr i64 %114 to ptr
  store i32 %113, ptr %115, align 4, !tbaa !28
  %116 = add i64 %13, 4
  %117 = load volatile i32, ptr %112, align 4, !tbaa !27
  %118 = and i64 %116, 4294967295
  %119 = inttoptr i64 %118 to ptr
  store i32 %117, ptr %119, align 4, !tbaa !28
  %120 = add i64 %13, 8
  %121 = load volatile i32, ptr %112, align 4, !tbaa !27
  %122 = and i64 %120, 4294967295
  %123 = inttoptr i64 %122 to ptr
  store i32 %121, ptr %123, align 4, !tbaa !28
  %124 = add i64 %13, 12
  %125 = load volatile i32, ptr %112, align 4, !tbaa !27
  %126 = and i64 %124, 4294967295
  %127 = inttoptr i64 %126 to ptr
  store i32 %125, ptr %127, align 4, !tbaa !28
  %128 = load volatile i32, ptr %.lcssa, align 4, !tbaa !18
  %129 = and i32 %128, -32769
  store volatile i32 %129, ptr %.lcssa, align 4, !tbaa !18
  store volatile i32 1, ptr %14, align 4, !tbaa !14
  store i32 0, ptr %18, align 8, !tbaa !15
  br label %134

130:                                              ; preds = %3
  %131 = getelementptr inbounds i8, ptr %0, i64 128
  %132 = load volatile i32, ptr %131, align 8, !tbaa !21
  %133 = or i32 %132, 8
  store volatile i32 %133, ptr %131, align 8, !tbaa !21
  br label %134

134:                                              ; preds = %17, %._crit_edge, %130, %.split, %38
  %.0 = phi i32 [ 1, %.split ], [ 0, %._crit_edge ], [ 1, %38 ], [ 1, %130 ], [ 2, %17 ]
  ret i32 %.0
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__RBIT(i32 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__REV(i32 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__ROR(i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @HAL_GetTick() local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.fshl.i32(i32, i32, i32) #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 = { alwaysinline 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 #2 = { "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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !11, i64 48}
!6 = !{!"", !7, i64 0, !10, i64 8, !7, i64 72, !7, i64 80, !12, i64 88, !12, i64 90, !12, i64 92, !12, i64 94, !11, i64 96, !7, i64 104, !7, i64 112, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !11, i64 4, !7, i64 8, !7, i64 16, !11, i64 24, !7, i64 32, !11, i64 40, !7, i64 48, !11, i64 56}
!11 = !{!"int", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!6, !12, i64 94}
!14 = !{!6, !11, i64 124}
!15 = !{!6, !11, i64 120}
!16 = !{!6, !11, i64 96}
!17 = !{!6, !7, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140}
!20 = !{!6, !11, i64 132}
!21 = !{!6, !11, i64 128}
!22 = !{!19, !11, i64 8}
!23 = !{!6, !11, i64 8}
!24 = !{!19, !11, i64 4}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!19, !11, i64 12}
!28 = !{!11, !11, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass