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

; 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.HRTIM_HandleTypeDef = type { ptr, %struct.HRTIM_InitTypeDef, [6 x %struct.HRTIM_TimerParamTypeDef], i32, i32, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.HRTIM_InitTypeDef = type { i32, i32, i32, i32, i32 }
%struct.HRTIM_TimerParamTypeDef = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.HRTIM_TypeDef = type { %struct.HRTIM_Master_TypeDef, [5 x %struct.HRTIM_Timerx_TypeDef], [32 x i32], %struct.HRTIM_Common_TypeDef }
%struct.HRTIM_Master_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [20 x i32] }
%struct.HRTIM_Timerx_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, [5 x i32] }
%struct.HRTIM_Common_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 }

@TimerIdxToTimerId = external hidden global [6 x i32], align 16

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

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

; Function Attrs: nounwind uwtable
declare hidden i32 @HRTIM_GetITFromOCMode(ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_HRTIM_SimpleOCStop_IT(ptr noundef %0, i32 noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  br label %10

10:                                               ; preds = %3
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %11, i32 0, i32 3
  %13 = load i32, ptr %12, align 4, !tbaa !11
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %15, label %16

15:                                               ; preds = %10
  store i32 2, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %221

16:                                               ; preds = %10
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %17, i32 0, i32 3
  store i32 1, ptr %18, align 4, !tbaa !11
  br label %19

19:                                               ; preds = %16
  br label %20

20:                                               ; preds = %19
  br label %21

21:                                               ; preds = %20
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %22, i32 0, i32 4
  store volatile i32 2, ptr %23, align 8, !tbaa !14
  %24 = load i32, ptr %7, align 4, !tbaa !9
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %27, i32 0, i32 3
  %29 = getelementptr inbounds %struct.HRTIM_Common_TypeDef, ptr %28, i32 0, i32 6
  %30 = load volatile i32, ptr %29, align 4, !tbaa !16
  %31 = or i32 %30, %24
  store volatile i32 %31, ptr %29, align 4, !tbaa !16
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = call i32 @HRTIM_GetITFromOCMode(ptr noundef %32, i32 noundef %33, i32 noundef %34)
  store i32 %35, ptr %8, align 4, !tbaa !9
  %36 = load i32, ptr %8, align 4, !tbaa !9
  %37 = xor i32 %36, -1
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %41 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %40, i32 0, i32 1
  %42 = load i32, ptr %6, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds [5 x %struct.HRTIM_Timerx_TypeDef], ptr %41, i64 0, i64 %43
  %45 = getelementptr inbounds %struct.HRTIM_Timerx_TypeDef, ptr %44, i32 0, i32 3
  %46 = load volatile i32, ptr %45, align 4, !tbaa !20
  %47 = and i32 %46, %37
  store volatile i32 %47, ptr %45, align 4, !tbaa !20
  br label %48

48:                                               ; preds = %21
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds [6 x i32], ptr @TimerIdxToTimerId, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = and i64 %53, 65536
  %55 = icmp eq i64 %54, 65536
  br i1 %55, label %56, label %66

56:                                               ; preds = %48
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !15
  %60 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %59, i32 0, i32 0
  %61 = getelementptr inbounds %struct.HRTIM_Master_TypeDef, ptr %60, i32 0, i32 0
  %62 = load volatile i32, ptr %61, align 4, !tbaa !22
  %63 = zext i32 %62 to i64
  %64 = and i64 %63, -65537
  %65 = trunc i64 %64 to i32
  store volatile i32 %65, ptr %61, align 4, !tbaa !22
  br label %66

66:                                               ; preds = %56, %48
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds [6 x i32], ptr @TimerIdxToTimerId, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = and i64 %71, 131072
  %73 = icmp eq i64 %72, 131072
  br i1 %73, label %74, label %95

74:                                               ; preds = %66
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %75, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8, !tbaa !15
  %78 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %77, i32 0, i32 3
  %79 = getelementptr inbounds %struct.HRTIM_Common_TypeDef, ptr %78, i32 0, i32 5
  %80 = load volatile i32, ptr %79, align 4, !tbaa !23
  %81 = zext i32 %80 to i64
  %82 = and i64 %81, 3
  %83 = icmp eq i64 %82, 0
  br i1 %83, label %84, label %94

84:                                               ; preds = %74
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !15
  %88 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %87, i32 0, i32 0
  %89 = getelementptr inbounds %struct.HRTIM_Master_TypeDef, ptr %88, i32 0, i32 0
  %90 = load volatile i32, ptr %89, align 4, !tbaa !22
  %91 = zext i32 %90 to i64
  %92 = and i64 %91, -131073
  %93 = trunc i64 %92 to i32
  store volatile i32 %93, ptr %89, align 4, !tbaa !22
  br label %94

94:                                               ; preds = %84, %74
  br label %95

95:                                               ; preds = %94, %66
  %96 = load i32, ptr %6, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = getelementptr inbounds [6 x i32], ptr @TimerIdxToTimerId, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = and i64 %100, 262144
  %102 = icmp eq i64 %101, 262144
  br i1 %102, label %103, label %124

103:                                              ; preds = %95
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %104, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8, !tbaa !15
  %107 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %106, i32 0, i32 3
  %108 = getelementptr inbounds %struct.HRTIM_Common_TypeDef, ptr %107, i32 0, i32 5
  %109 = load volatile i32, ptr %108, align 4, !tbaa !23
  %110 = zext i32 %109 to i64
  %111 = and i64 %110, 12
  %112 = icmp eq i64 %111, 0
  br i1 %112, label %113, label %123

113:                                              ; preds = %103
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %114, i32 0, i32 0
  %116 = load ptr, ptr %115, align 8, !tbaa !15
  %117 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds %struct.HRTIM_Master_TypeDef, ptr %117, i32 0, i32 0
  %119 = load volatile i32, ptr %118, align 4, !tbaa !22
  %120 = zext i32 %119 to i64
  %121 = and i64 %120, -262145
  %122 = trunc i64 %121 to i32
  store volatile i32 %122, ptr %118, align 4, !tbaa !22
  br label %123

123:                                              ; preds = %113, %103
  br label %124

124:                                              ; preds = %123, %95
  %125 = load i32, ptr %6, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds [6 x i32], ptr @TimerIdxToTimerId, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = and i64 %129, 524288
  %131 = icmp eq i64 %130, 524288
  br i1 %131, label %132, label %153

132:                                              ; preds = %124
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %133, i32 0, i32 0
  %135 = load ptr, ptr %134, align 8, !tbaa !15
  %136 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %135, i32 0, i32 3
  %137 = getelementptr inbounds %struct.HRTIM_Common_TypeDef, ptr %136, i32 0, i32 5
  %138 = load volatile i32, ptr %137, align 4, !tbaa !23
  %139 = zext i32 %138 to i64
  %140 = and i64 %139, 48
  %141 = icmp eq i64 %140, 0
  br i1 %141, label %142, label %152

142:                                              ; preds = %132
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !15
  %146 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %145, i32 0, i32 0
  %147 = getelementptr inbounds %struct.HRTIM_Master_TypeDef, ptr %146, i32 0, i32 0
  %148 = load volatile i32, ptr %147, align 4, !tbaa !22
  %149 = zext i32 %148 to i64
  %150 = and i64 %149, -524289
  %151 = trunc i64 %150 to i32
  store volatile i32 %151, ptr %147, align 4, !tbaa !22
  br label %152

152:                                              ; preds = %142, %132
  br label %153

153:                                              ; preds = %152, %124
  %154 = load i32, ptr %6, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds [6 x i32], ptr @TimerIdxToTimerId, i64 0, i64 %155
  %157 = load i32, ptr %156, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = and i64 %158, 1048576
  %160 = icmp eq i64 %159, 1048576
  br i1 %160, label %161, label %182

161:                                              ; preds = %153
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %162, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8, !tbaa !15
  %165 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %164, i32 0, i32 3
  %166 = getelementptr inbounds %struct.HRTIM_Common_TypeDef, ptr %165, i32 0, i32 5
  %167 = load volatile i32, ptr %166, align 4, !tbaa !23
  %168 = zext i32 %167 to i64
  %169 = and i64 %168, 192
  %170 = icmp eq i64 %169, 0
  br i1 %170, label %171, label %181

171:                                              ; preds = %161
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8, !tbaa !15
  %175 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %174, i32 0, i32 0
  %176 = getelementptr inbounds %struct.HRTIM_Master_TypeDef, ptr %175, i32 0, i32 0
  %177 = load volatile i32, ptr %176, align 4, !tbaa !22
  %178 = zext i32 %177 to i64
  %179 = and i64 %178, -1048577
  %180 = trunc i64 %179 to i32
  store volatile i32 %180, ptr %176, align 4, !tbaa !22
  br label %181

181:                                              ; preds = %171, %161
  br label %182

182:                                              ; preds = %181, %153
  %183 = load i32, ptr %6, align 4, !tbaa !9
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds [6 x i32], ptr @TimerIdxToTimerId, i64 0, i64 %184
  %186 = load i32, ptr %185, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = and i64 %187, 2097152
  %189 = icmp eq i64 %188, 2097152
  br i1 %189, label %190, label %211

190:                                              ; preds = %182
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %191, i32 0, i32 0
  %193 = load ptr, ptr %192, align 8, !tbaa !15
  %194 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %193, i32 0, i32 3
  %195 = getelementptr inbounds %struct.HRTIM_Common_TypeDef, ptr %194, i32 0, i32 5
  %196 = load volatile i32, ptr %195, align 4, !tbaa !23
  %197 = zext i32 %196 to i64
  %198 = and i64 %197, 768
  %199 = icmp eq i64 %198, 0
  br i1 %199, label %200, label %210

200:                                              ; preds = %190
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %201, i32 0, i32 0
  %203 = load ptr, ptr %202, align 8, !tbaa !15
  %204 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %203, i32 0, i32 0
  %205 = getelementptr inbounds %struct.HRTIM_Master_TypeDef, ptr %204, i32 0, i32 0
  %206 = load volatile i32, ptr %205, align 4, !tbaa !22
  %207 = zext i32 %206 to i64
  %208 = and i64 %207, -2097153
  %209 = trunc i64 %208 to i32
  store volatile i32 %209, ptr %205, align 4, !tbaa !22
  br label %210

210:                                              ; preds = %200, %190
  br label %211

211:                                              ; preds = %210, %182
  br label %212

212:                                              ; preds = %211
  br label %213

213:                                              ; preds = %212
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %214, i32 0, i32 4
  store volatile i32 1, ptr %215, align 8, !tbaa !14
  br label %216

216:                                              ; preds = %213
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %217, i32 0, i32 3
  store i32 0, ptr %218, align 4, !tbaa !11
  br label %219

219:                                              ; preds = %216
  br label %220

220:                                              ; preds = %219
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %221

221:                                              ; preds = %220, %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  %222 = load i32, ptr %4, align 4
  ret i32 %222
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 196}
!12 = !{!"", !6, i64 0, !13, i64 8, !7, i64 28, !10, i64 196, !10, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!14 = !{!12, !10, i64 200}
!15 = !{!12, !6, i64 0}
!16 = !{!17, !10, i64 920}
!17 = !{!"", !18, i64 0, !7, i64 128, !7, i64 768, !19, i64 896}
!18 = !{!"", !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, !7, i64 48}
!19 = !{!"", !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}
!20 = !{!21, !10, i64 12}
!21 = !{!"", !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, !7, i64 108}
!22 = !{!17, !10, i64 0}
!23 = !{!17, !10, i64 916}


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

%struct.HRTIM_Timerx_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, [5 x i32] }

@TimerIdxToTimerId = external hidden local_unnamed_addr global [6 x i32], align 16

; Function Attrs: nounwind uwtable
declare hidden i32 @HRTIM_GetITFromOCMode(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 3) i32 @HAL_HRTIM_SimpleOCStop_IT(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 196
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = icmp eq i32 %5, 1
  br i1 %6, label %83, label %7

7:                                                ; preds = %3
  store i32 1, ptr %4, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 200
  store volatile i32 2, ptr %8, align 8, !tbaa !12
  %9 = load ptr, ptr %0, align 8, !tbaa !13
  %10 = getelementptr inbounds i8, ptr %9, i64 920
  %11 = load volatile i32, ptr %10, align 4, !tbaa !14
  %12 = or i32 %11, %2
  store volatile i32 %12, ptr %10, align 4, !tbaa !14
  %13 = tail call i32 @HRTIM_GetITFromOCMode(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2)
  %14 = xor i32 %13, -1
  %15 = load ptr, ptr %0, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %15, i64 128
  %17 = zext i32 %1 to i64
  %18 = getelementptr inbounds [5 x %struct.HRTIM_Timerx_TypeDef], ptr %16, i64 0, i64 %17, i32 3
  %19 = load volatile i32, ptr %18, align 4, !tbaa !18
  %20 = and i32 %19, %14
  store volatile i32 %20, ptr %18, align 4, !tbaa !18
  %21 = getelementptr inbounds [6 x i32], ptr @TimerIdxToTimerId, i64 0, i64 %17
  %22 = load i32, ptr %21, align 4, !tbaa !20
  %23 = and i32 %22, 65536
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %27, label %24

24:                                               ; preds = %7
  %25 = load volatile i32, ptr %15, align 4, !tbaa !21
  %26 = and i32 %25, -65537
  store volatile i32 %26, ptr %15, align 4, !tbaa !21
  %.pre = load i32, ptr %21, align 4, !tbaa !20
  br label %27

27:                                               ; preds = %24, %7
  %28 = phi i32 [ %.pre, %24 ], [ %22, %7 ]
  %29 = and i32 %28, 131072
  %.not30 = icmp eq i32 %29, 0
  br i1 %.not30, label %38, label %30

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %15, i64 916
  %32 = load volatile i32, ptr %31, align 4, !tbaa !22
  %33 = and i32 %32, 3
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %38

35:                                               ; preds = %30
  %36 = load volatile i32, ptr %15, align 4, !tbaa !21
  %37 = and i32 %36, -131073
  store volatile i32 %37, ptr %15, align 4, !tbaa !21
  %.pre35 = load i32, ptr %21, align 4, !tbaa !20
  br label %38

38:                                               ; preds = %30, %35, %27
  %39 = phi i32 [ %28, %30 ], [ %.pre35, %35 ], [ %28, %27 ]
  %40 = and i32 %39, 262144
  %.not31 = icmp eq i32 %40, 0
  br i1 %.not31, label %49, label %41

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %15, i64 916
  %43 = load volatile i32, ptr %42, align 4, !tbaa !22
  %44 = and i32 %43, 12
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %49

46:                                               ; preds = %41
  %47 = load volatile i32, ptr %15, align 4, !tbaa !21
  %48 = and i32 %47, -262145
  store volatile i32 %48, ptr %15, align 4, !tbaa !21
  %.pre36 = load i32, ptr %21, align 4, !tbaa !20
  br label %49

49:                                               ; preds = %41, %46, %38
  %50 = phi i32 [ %39, %41 ], [ %.pre36, %46 ], [ %39, %38 ]
  %51 = and i32 %50, 524288
  %.not32 = icmp eq i32 %51, 0
  br i1 %.not32, label %60, label %52

52:                                               ; preds = %49
  %53 = getelementptr inbounds i8, ptr %15, i64 916
  %54 = load volatile i32, ptr %53, align 4, !tbaa !22
  %55 = and i32 %54, 48
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %60

57:                                               ; preds = %52
  %58 = load volatile i32, ptr %15, align 4, !tbaa !21
  %59 = and i32 %58, -524289
  store volatile i32 %59, ptr %15, align 4, !tbaa !21
  %.pre37 = load i32, ptr %21, align 4, !tbaa !20
  br label %60

60:                                               ; preds = %52, %57, %49
  %61 = phi i32 [ %50, %52 ], [ %.pre37, %57 ], [ %50, %49 ]
  %62 = and i32 %61, 1048576
  %.not33 = icmp eq i32 %62, 0
  br i1 %.not33, label %71, label %63

63:                                               ; preds = %60
  %64 = getelementptr inbounds i8, ptr %15, i64 916
  %65 = load volatile i32, ptr %64, align 4, !tbaa !22
  %66 = and i32 %65, 192
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %71

68:                                               ; preds = %63
  %69 = load volatile i32, ptr %15, align 4, !tbaa !21
  %70 = and i32 %69, -1048577
  store volatile i32 %70, ptr %15, align 4, !tbaa !21
  %.pre38 = load i32, ptr %21, align 4, !tbaa !20
  br label %71

71:                                               ; preds = %63, %68, %60
  %72 = phi i32 [ %61, %63 ], [ %.pre38, %68 ], [ %61, %60 ]
  %73 = and i32 %72, 2097152
  %.not34 = icmp eq i32 %73, 0
  br i1 %.not34, label %82, label %74

74:                                               ; preds = %71
  %75 = getelementptr inbounds i8, ptr %15, i64 916
  %76 = load volatile i32, ptr %75, align 4, !tbaa !22
  %77 = and i32 %76, 768
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %82

79:                                               ; preds = %74
  %80 = load volatile i32, ptr %15, align 4, !tbaa !21
  %81 = and i32 %80, -2097153
  store volatile i32 %81, ptr %15, align 4, !tbaa !21
  br label %82

82:                                               ; preds = %74, %79, %71
  store volatile i32 1, ptr %8, align 8, !tbaa !12
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %3, %82
  %.0 = phi i32 [ 0, %82 ], [ 2, %3 ]
  ret i32 %.0
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!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 196}
!6 = !{!"", !7, i64 0, !10, i64 8, !8, i64 28, !11, i64 196, !11, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !11, i64 200}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !11, i64 920}
!15 = !{!"", !16, i64 0, !8, i64 128, !8, i64 768, !17, i64 896}
!16 = !{!"", !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, !8, i64 48}
!17 = !{!"", !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}
!18 = !{!19, !11, i64 12}
!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, !8, i64 108}
!20 = !{!11, !11, i64 0}
!21 = !{!15, !11, i64 0}
!22 = !{!15, !11, i64 916}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass