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

; 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.RCC_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, i32, i32, i32, i32, i32, i32, i32, [9 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x 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 }

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

10:                                               ; preds = %1
  store i32 1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %179

11:                                               ; preds = %1
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %12, i32 0, i32 4
  store volatile i32 2, ptr %13, align 8, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %14, i32 0, i32 5
  store ptr null, ptr %15, align 8, !tbaa !13
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %16, i32 0, i32 6
  store ptr null, ptr %17, align 8, !tbaa !14
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %18, i32 0, i32 7
  store ptr null, ptr %19, align 8, !tbaa !15
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %20, i32 0, i32 8
  store ptr null, ptr %21, align 8, !tbaa !16
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %22, i32 0, i32 9
  store ptr null, ptr %23, align 8, !tbaa !17
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %24, i32 0, i32 10
  store ptr null, ptr %25, align 8, !tbaa !18
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %26, i32 0, i32 1
  %28 = getelementptr inbounds %struct.HRTIM_InitTypeDef, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 4, !tbaa !19
  %30 = and i32 %29, 1
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %91

32:                                               ; preds = %11
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %33, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !20
  %36 = icmp eq ptr %35, inttoptr (i64 1073837056 to ptr)
  br i1 %36, label %37, label %50

37:                                               ; preds = %32
  br label %38

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  %39 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 52), align 4, !tbaa !21
  %40 = zext i32 %39 to i64
  %41 = or i64 %40, 536870912
  %42 = trunc i64 %41 to i32
  store volatile i32 %42, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 52), align 4, !tbaa !21
  %43 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 52), align 4, !tbaa !21
  %44 = zext i32 %43 to i64
  %45 = and i64 %44, 536870912
  %46 = trunc i64 %45 to i32
  store volatile i32 %46, ptr %7, align 4, !tbaa !23
  %47 = load volatile i32, ptr %7, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  br label %48

48:                                               ; preds = %38
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49, %32
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %51, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !20
  %54 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds %struct.HRTIM_Master_TypeDef, ptr %54, i32 0, i32 0
  %56 = load volatile i32, ptr %55, align 4, !tbaa !24
  store i32 %56, ptr %5, align 4, !tbaa !23
  %57 = load i32, ptr %5, align 4, !tbaa !23
  %58 = zext i32 %57 to i64
  %59 = and i64 %58, -49153
  %60 = trunc i64 %59 to i32
  store i32 %60, ptr %5, align 4, !tbaa !23
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %61, i32 0, i32 1
  %63 = getelementptr inbounds %struct.HRTIM_InitTypeDef, ptr %62, i32 0, i32 3
  %64 = load i32, ptr %63, align 4, !tbaa !28
  %65 = zext i32 %64 to i64
  %66 = and i64 %65, 49152
  %67 = load i32, ptr %5, align 4, !tbaa !23
  %68 = zext i32 %67 to i64
  %69 = or i64 %68, %66
  %70 = trunc i64 %69 to i32
  store i32 %70, ptr %5, align 4, !tbaa !23
  %71 = load i32, ptr %5, align 4, !tbaa !23
  %72 = zext i32 %71 to i64
  %73 = and i64 %72, -12289
  %74 = trunc i64 %73 to i32
  store i32 %74, ptr %5, align 4, !tbaa !23
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %75, i32 0, i32 1
  %77 = getelementptr inbounds %struct.HRTIM_InitTypeDef, ptr %76, i32 0, i32 4
  %78 = load i32, ptr %77, align 8, !tbaa !29
  %79 = zext i32 %78 to i64
  %80 = and i64 %79, 12288
  %81 = load i32, ptr %5, align 4, !tbaa !23
  %82 = zext i32 %81 to i64
  %83 = or i64 %82, %80
  %84 = trunc i64 %83 to i32
  store i32 %84, ptr %5, align 4, !tbaa !23
  %85 = load i32, ptr %5, align 4, !tbaa !23
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %86, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !20
  %89 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %struct.HRTIM_Master_TypeDef, ptr %89, i32 0, i32 0
  store volatile i32 %85, ptr %90, align 4, !tbaa !24
  br label %91

91:                                               ; preds = %50, %11
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  call void @HAL_HRTIM_MspInit(ptr noundef %92)
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %93, i32 0, i32 1
  %95 = getelementptr inbounds %struct.HRTIM_InitTypeDef, ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !19
  %97 = and i32 %96, 2
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %126

99:                                               ; preds = %91
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %100, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8, !tbaa !20
  %103 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %102, i32 0, i32 0
  %104 = getelementptr inbounds %struct.HRTIM_Master_TypeDef, ptr %103, i32 0, i32 0
  %105 = load volatile i32, ptr %104, align 4, !tbaa !24
  store i32 %105, ptr %5, align 4, !tbaa !23
  %106 = load i32, ptr %5, align 4, !tbaa !23
  %107 = zext i32 %106 to i64
  %108 = and i64 %107, -769
  %109 = trunc i64 %108 to i32
  store i32 %109, ptr %5, align 4, !tbaa !23
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %110, i32 0, i32 1
  %112 = getelementptr inbounds %struct.HRTIM_InitTypeDef, ptr %111, i32 0, i32 2
  %113 = load i32, ptr %112, align 8, !tbaa !30
  %114 = zext i32 %113 to i64
  %115 = and i64 %114, 768
  %116 = load i32, ptr %5, align 4, !tbaa !23
  %117 = zext i32 %116 to i64
  %118 = or i64 %117, %115
  %119 = trunc i64 %118 to i32
  store i32 %119, ptr %5, align 4, !tbaa !23
  %120 = load i32, ptr %5, align 4, !tbaa !23
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !20
  %124 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %struct.HRTIM_Master_TypeDef, ptr %124, i32 0, i32 0
  store volatile i32 %120, ptr %125, align 4, !tbaa !24
  br label %126

126:                                              ; preds = %99, %91
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %127, i32 0, i32 4
  store volatile i32 1, ptr %128, align 8, !tbaa !9
  br label %129

129:                                              ; preds = %126
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %130, i32 0, i32 3
  store i32 0, ptr %131, align 4, !tbaa !31
  br label %132

132:                                              ; preds = %129
  br label %133

133:                                              ; preds = %132
  store i8 0, ptr %4, align 1, !tbaa !32
  br label %134

134:                                              ; preds = %175, %133
  %135 = load i8, ptr %4, align 1, !tbaa !32
  %136 = zext i8 %135 to i32
  %137 = icmp ule i32 %136, 5
  br i1 %137, label %138, label %178

138:                                              ; preds = %134
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %139, i32 0, i32 2
  %141 = load i8, ptr %4, align 1, !tbaa !32
  %142 = zext i8 %141 to i64
  %143 = getelementptr inbounds [6 x %struct.HRTIM_TimerParamTypeDef], ptr %140, i64 0, i64 %142
  %144 = getelementptr inbounds %struct.HRTIM_TimerParamTypeDef, ptr %143, i32 0, i32 0
  store i32 0, ptr %144, align 4, !tbaa !33
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %145, i32 0, i32 2
  %147 = load i8, ptr %4, align 1, !tbaa !32
  %148 = zext i8 %147 to i64
  %149 = getelementptr inbounds [6 x %struct.HRTIM_TimerParamTypeDef], ptr %146, i64 0, i64 %148
  %150 = getelementptr inbounds %struct.HRTIM_TimerParamTypeDef, ptr %149, i32 0, i32 1
  store i32 0, ptr %150, align 4, !tbaa !35
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %151, i32 0, i32 2
  %153 = load i8, ptr %4, align 1, !tbaa !32
  %154 = zext i8 %153 to i64
  %155 = getelementptr inbounds [6 x %struct.HRTIM_TimerParamTypeDef], ptr %152, i64 0, i64 %154
  %156 = getelementptr inbounds %struct.HRTIM_TimerParamTypeDef, ptr %155, i32 0, i32 2
  store i32 0, ptr %156, align 4, !tbaa !36
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %157, i32 0, i32 2
  %159 = load i8, ptr %4, align 1, !tbaa !32
  %160 = zext i8 %159 to i64
  %161 = getelementptr inbounds [6 x %struct.HRTIM_TimerParamTypeDef], ptr %158, i64 0, i64 %160
  %162 = getelementptr inbounds %struct.HRTIM_TimerParamTypeDef, ptr %161, i32 0, i32 3
  store i32 0, ptr %162, align 4, !tbaa !37
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %163, i32 0, i32 2
  %165 = load i8, ptr %4, align 1, !tbaa !32
  %166 = zext i8 %165 to i64
  %167 = getelementptr inbounds [6 x %struct.HRTIM_TimerParamTypeDef], ptr %164, i64 0, i64 %166
  %168 = getelementptr inbounds %struct.HRTIM_TimerParamTypeDef, ptr %167, i32 0, i32 4
  store i32 0, ptr %168, align 4, !tbaa !38
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %169, i32 0, i32 2
  %171 = load i8, ptr %4, align 1, !tbaa !32
  %172 = zext i8 %171 to i64
  %173 = getelementptr inbounds [6 x %struct.HRTIM_TimerParamTypeDef], ptr %170, i64 0, i64 %172
  %174 = getelementptr inbounds %struct.HRTIM_TimerParamTypeDef, ptr %173, i32 0, i32 6
  store i32 0, ptr %174, align 4, !tbaa !39
  br label %175

175:                                              ; preds = %138
  %176 = load i8, ptr %4, align 1, !tbaa !32
  %177 = add i8 %176, 1
  store i8 %177, ptr %4, align 1, !tbaa !32
  br label %134, !llvm.loop !40

178:                                              ; preds = %134
  store i32 0, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %179

179:                                              ; preds = %178, %10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #2
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #2
  %180 = load i32, ptr %2, align 4
  ret i32 %180
}

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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, !12, i64 200}
!10 = !{!"", !6, i64 0, !11, i64 8, !7, i64 28, !12, i64 196, !12, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248}
!11 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!10, !6, i64 208}
!14 = !{!10, !6, i64 216}
!15 = !{!10, !6, i64 224}
!16 = !{!10, !6, i64 232}
!17 = !{!10, !6, i64 240}
!18 = !{!10, !6, i64 248}
!19 = !{!10, !12, i64 12}
!20 = !{!10, !6, i64 0}
!21 = !{!22, !12, i64 240}
!22 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !12, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !7, i64 172, !12, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !12, i64 240, !12, i64 244, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !7, i64 288}
!23 = !{!12, !12, i64 0}
!24 = !{!25, !12, i64 0}
!25 = !{!"", !26, i64 0, !7, i64 128, !7, i64 768, !27, i64 896}
!26 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !7, i64 48}
!27 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112}
!28 = !{!10, !12, i64 20}
!29 = !{!10, !12, i64 24}
!30 = !{!10, !12, i64 16}
!31 = !{!10, !12, i64 196}
!32 = !{!7, !7, i64 0}
!33 = !{!34, !12, i64 0}
!34 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24}
!35 = !{!34, !12, i64 4}
!36 = !{!34, !12, i64 8}
!37 = !{!34, !12, i64 12}
!38 = !{!34, !12, i64 16}
!39 = !{!34, !12, i64 24}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}


; 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, 2) i32 @HAL_HRTIM_Init(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  %3 = icmp eq ptr %0, null
  br i1 %3, label %.loopexit, label %4

4:                                                ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 200
  store volatile i32 2, ptr %5, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 208
  %7 = getelementptr inbounds i8, ptr %0, i64 12
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %6, i8 0, i64 48, i1 false)
  %8 = load i32, ptr %7, align 4, !tbaa !12
  %9 = and i32 %8, 1
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %29, label %10

10:                                               ; preds = %4
  %11 = load ptr, ptr %0, align 8, !tbaa !13
  %12 = icmp eq ptr %11, inttoptr (i64 1073837056 to ptr)
  br i1 %12, label %13, label %18

13:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2)
  %14 = load volatile i32, ptr inttoptr (i64 1476543728 to ptr), align 16, !tbaa !14
  %15 = or i32 %14, 536870912
  store volatile i32 %15, ptr inttoptr (i64 1476543728 to ptr), align 16, !tbaa !14
  %16 = load volatile i32, ptr inttoptr (i64 1476543728 to ptr), align 16, !tbaa !14
  %17 = and i32 %16, 536870912
  store volatile i32 %17, ptr %2, align 4, !tbaa !16
  %.0..0..0..0. = load volatile i32, ptr %2, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2)
  br label %18

18:                                               ; preds = %13, %10
  %19 = load volatile i32, ptr %11, align 4, !tbaa !17
  %20 = and i32 %19, -61441
  %21 = getelementptr inbounds i8, ptr %0, i64 20
  %22 = load i32, ptr %21, align 4, !tbaa !21
  %23 = and i32 %22, 49152
  %24 = or disjoint i32 %23, %20
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = load i32, ptr %25, align 8, !tbaa !22
  %27 = and i32 %26, 12288
  %28 = or disjoint i32 %24, %27
  store volatile i32 %28, ptr %11, align 4, !tbaa !17
  br label %29

29:                                               ; preds = %18, %4
  tail call void @HAL_HRTIM_MspInit(ptr noundef nonnull %0)
  %30 = load i32, ptr %7, align 4, !tbaa !12
  %31 = and i32 %30, 2
  %.not46 = icmp eq i32 %31, 0
  br i1 %.not46, label %.loopexit.loopexit, label %32

32:                                               ; preds = %29
  %33 = load ptr, ptr %0, align 8, !tbaa !13
  %34 = load volatile i32, ptr %33, align 4, !tbaa !17
  %35 = and i32 %34, -769
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  %37 = load i32, ptr %36, align 8, !tbaa !23
  %38 = and i32 %37, 768
  %39 = or disjoint i32 %38, %35
  store volatile i32 %39, ptr %33, align 4, !tbaa !17
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %32, %29
  store volatile i32 1, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %0, i64 196
  store i32 0, ptr %40, align 4, !tbaa !24
  %41 = getelementptr inbounds i8, ptr %0, i64 28
  %42 = getelementptr inbounds i8, ptr %0, i64 52
  %43 = getelementptr inbounds i8, ptr %0, i64 80
  %44 = getelementptr inbounds i8, ptr %0, i64 108
  %45 = getelementptr inbounds i8, ptr %0, i64 136
  %46 = getelementptr inbounds i8, ptr %0, i64 164
  %47 = getelementptr inbounds i8, ptr %0, i64 192
  store i32 0, ptr %47, align 4, !tbaa !25
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %41, i8 0, i64 20, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %42, i8 0, i64 24, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %43, i8 0, i64 24, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %44, i8 0, i64 24, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %45, i8 0, i64 24, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(24) %46, i8 0, i64 24, i1 false)
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %1
  %.044 = phi i32 [ 1, %1 ], [ 0, %.loopexit.loopexit ]
  ret i32 %.044
}

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

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

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

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

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 200}
!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 12}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !11, i64 240}
!15 = !{!"", !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, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !8, i64 172, !11, i64 208, !11, i64 212, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !8, i64 288}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !11, i64 0}
!18 = !{!"", !19, i64 0, !8, i64 128, !8, i64 768, !20, i64 896}
!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, !8, i64 48}
!20 = !{!"", !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}
!21 = !{!6, !11, i64 20}
!22 = !{!6, !11, i64 24}
!23 = !{!6, !11, i64 16}
!24 = !{!6, !11, i64 196}
!25 = !{!26, !11, i64 24}
!26 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass