; LLVM IR from ctlst-tech/catpilot :: bsp/mcu/core/stm32/h753/hal/src (stm32h7xx_hal_rtc)

; 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.RTC_HandleTypeDef = type { ptr, %struct.RTC_InitTypeDef, i32, i32 }
%struct.RTC_InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.RTC_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, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @RTC_EnterInitMode(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @RTC_ExitInitMode(ptr noundef) #1

; 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
define dso_local i32 @HAL_RTC_DeInit(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 1, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  %6 = icmp ne ptr %5, null
  br i1 %6, label %7, label %146

7:                                                ; preds = %1
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %8, i32 0, i32 3
  store volatile i32 2, ptr %9, align 8, !tbaa !11
  br label %10

10:                                               ; preds = %7
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %11, i32 0, i32 0
  %13 = load ptr, ptr %12, align 8, !tbaa !14
  %14 = getelementptr inbounds %struct.RTC_TypeDef, ptr %13, i32 0, i32 9
  store volatile i32 202, ptr %14, align 4, !tbaa !15
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !14
  %18 = getelementptr inbounds %struct.RTC_TypeDef, ptr %17, i32 0, i32 9
  store volatile i32 83, ptr %18, align 4, !tbaa !15
  br label %19

19:                                               ; preds = %10
  br label %20

20:                                               ; preds = %19
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = call i32 @RTC_EnterInitMode(ptr noundef %21)
  store i32 %22, ptr %3, align 4, !tbaa !9
  %23 = load i32, ptr %3, align 4, !tbaa !9
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %126

25:                                               ; preds = %20
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !14
  %29 = getelementptr inbounds %struct.RTC_TypeDef, ptr %28, i32 0, i32 0
  store volatile i32 0, ptr %29, align 4, !tbaa !17
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %30, i32 0, i32 0
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = getelementptr inbounds %struct.RTC_TypeDef, ptr %32, i32 0, i32 1
  store volatile i32 8449, ptr %33, align 4, !tbaa !18
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !14
  %37 = getelementptr inbounds %struct.RTC_TypeDef, ptr %36, i32 0, i32 2
  %38 = load volatile i32, ptr %37, align 4, !tbaa !19
  %39 = zext i32 %38 to i64
  %40 = and i64 %39, 7
  %41 = trunc i64 %40 to i32
  store volatile i32 %41, ptr %37, align 4, !tbaa !19
  %42 = call i32 @HAL_GetTick()
  store i32 %42, ptr %4, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %72, %25
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !14
  %47 = getelementptr inbounds %struct.RTC_TypeDef, ptr %46, i32 0, i32 3
  %48 = load volatile i32, ptr %47, align 4, !tbaa !20
  %49 = zext i32 %48 to i64
  %50 = and i64 %49, 4
  %51 = icmp eq i64 %50, 0
  br i1 %51, label %52, label %55

52:                                               ; preds = %43
  %53 = load i32, ptr %3, align 4, !tbaa !9
  %54 = icmp ne i32 %53, 3
  br label %55

55:                                               ; preds = %52, %43
  %56 = phi i1 [ false, %43 ], [ %54, %52 ]
  br i1 %56, label %57, label %73

57:                                               ; preds = %55
  %58 = call i32 @HAL_GetTick()
  %59 = load i32, ptr %4, align 4, !tbaa !9
  %60 = sub i32 %58, %59
  %61 = icmp ugt i32 %60, 1000
  br i1 %61, label %62, label %72

62:                                               ; preds = %57
  br label %63

63:                                               ; preds = %62
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !14
  %67 = getelementptr inbounds %struct.RTC_TypeDef, ptr %66, i32 0, i32 9
  store volatile i32 255, ptr %67, align 4, !tbaa !15
  br label %68

68:                                               ; preds = %63
  br label %69

69:                                               ; preds = %68
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %70, i32 0, i32 3
  store volatile i32 3, ptr %71, align 8, !tbaa !11
  store i32 3, ptr %3, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %69, %57
  br label %43, !llvm.loop !21

73:                                               ; preds = %55
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = call i32 @RTC_ExitInitMode(ptr noundef %74)
  store i32 %75, ptr %3, align 4, !tbaa !9
  %76 = load i32, ptr %3, align 4, !tbaa !9
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %125

78:                                               ; preds = %73
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !14
  %82 = getelementptr inbounds %struct.RTC_TypeDef, ptr %81, i32 0, i32 2
  %83 = load volatile i32, ptr %82, align 4, !tbaa !19
  %84 = and i32 %83, 0
  store volatile i32 %84, ptr %82, align 4, !tbaa !19
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !14
  %88 = getelementptr inbounds %struct.RTC_TypeDef, ptr %87, i32 0, i32 5
  store volatile i32 65535, ptr %88, align 4, !tbaa !23
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !14
  %92 = getelementptr inbounds %struct.RTC_TypeDef, ptr %91, i32 0, i32 4
  store volatile i32 8323327, ptr %92, align 4, !tbaa !24
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !14
  %96 = getelementptr inbounds %struct.RTC_TypeDef, ptr %95, i32 0, i32 7
  store volatile i32 0, ptr %96, align 4, !tbaa !25
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %97, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !14
  %100 = getelementptr inbounds %struct.RTC_TypeDef, ptr %99, i32 0, i32 8
  store volatile i32 0, ptr %100, align 4, !tbaa !26
  %101 = load ptr, ptr %2, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !14
  %104 = getelementptr inbounds %struct.RTC_TypeDef, ptr %103, i32 0, i32 11
  store volatile i32 0, ptr %104, align 4, !tbaa !27
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %105, i32 0, i32 0
  %107 = load ptr, ptr %106, align 8, !tbaa !14
  %108 = getelementptr inbounds %struct.RTC_TypeDef, ptr %107, i32 0, i32 15
  store volatile i32 0, ptr %108, align 4, !tbaa !28
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !14
  %112 = getelementptr inbounds %struct.RTC_TypeDef, ptr %111, i32 0, i32 17
  store volatile i32 0, ptr %112, align 4, !tbaa !29
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %113, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8, !tbaa !14
  %116 = getelementptr inbounds %struct.RTC_TypeDef, ptr %115, i32 0, i32 18
  store volatile i32 0, ptr %116, align 4, !tbaa !30
  %117 = load ptr, ptr %2, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %117, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !14
  %120 = getelementptr inbounds %struct.RTC_TypeDef, ptr %119, i32 0, i32 16
  store volatile i32 0, ptr %120, align 4, !tbaa !31
  %121 = load ptr, ptr %2, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !14
  %124 = getelementptr inbounds %struct.RTC_TypeDef, ptr %123, i32 0, i32 19
  store volatile i32 0, ptr %124, align 4, !tbaa !32
  br label %125

125:                                              ; preds = %78, %73
  br label %126

126:                                              ; preds = %125, %20
  %127 = load i32, ptr %3, align 4, !tbaa !9
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %145

129:                                              ; preds = %126
  br label %130

130:                                              ; preds = %129
  %131 = load ptr, ptr %2, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %131, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8, !tbaa !14
  %134 = getelementptr inbounds %struct.RTC_TypeDef, ptr %133, i32 0, i32 9
  store volatile i32 255, ptr %134, align 4, !tbaa !15
  br label %135

135:                                              ; preds = %130
  br label %136

136:                                              ; preds = %135
  %137 = load ptr, ptr %2, align 8, !tbaa !5
  call void @HAL_RTC_MspDeInit(ptr noundef %137)
  %138 = load ptr, ptr %2, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %138, i32 0, i32 3
  store volatile i32 0, ptr %139, align 8, !tbaa !11
  br label %140

140:                                              ; preds = %136
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %141, i32 0, i32 2
  store i32 0, ptr %142, align 4, !tbaa !33
  br label %143

143:                                              ; preds = %140
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144, %126
  br label %146

146:                                              ; preds = %145, %1
  %147 = load i32, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret i32 %147
}

declare i32 @HAL_GetTick() #2

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_RTC_MspDeInit(ptr noundef) #1

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 = { "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 = { 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 40}
!12 = !{!"", !6, i64 0, !13, i64 8, !10, i64 36, !10, i64 40}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!14 = !{!12, !6, i64 0}
!15 = !{!16, !10, i64 36}
!16 = !{!"", !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, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204}
!17 = !{!16, !10, i64 0}
!18 = !{!16, !10, i64 4}
!19 = !{!16, !10, i64 8}
!20 = !{!16, !10, i64 12}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!16, !10, i64 20}
!24 = !{!16, !10, i64 16}
!25 = !{!16, !10, i64 28}
!26 = !{!16, !10, i64 32}
!27 = !{!16, !10, i64 44}
!28 = !{!16, !10, i64 60}
!29 = !{!16, !10, i64 68}
!30 = !{!16, !10, i64 72}
!31 = !{!16, !10, i64 64}
!32 = !{!16, !10, i64 76}
!33 = !{!12, !10, i64 36}


; 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
declare dso_local i32 @RTC_EnterInitMode(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_RTC_DeInit(ptr noundef %0) local_unnamed_addr #0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.thread, label %2

2:                                                ; preds = %1
  %3 = getelementptr inbounds i8, ptr %0, i64 40
  store volatile i32 2, ptr %3, align 8, !tbaa !5
  %4 = load ptr, ptr %0, align 8, !tbaa !12
  %5 = getelementptr inbounds i8, ptr %4, i64 36
  store volatile i32 202, ptr %5, align 4, !tbaa !13
  store volatile i32 83, ptr %5, align 4, !tbaa !13
  %6 = tail call i32 @RTC_EnterInitMode(ptr noundef nonnull %0)
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %8, label %.thread

8:                                                ; preds = %2
  %9 = load ptr, ptr %0, align 8, !tbaa !12
  store volatile i32 0, ptr %9, align 4, !tbaa !15
  %10 = getelementptr inbounds i8, ptr %9, i64 4
  store volatile i32 8449, ptr %10, align 4, !tbaa !16
  %11 = getelementptr inbounds i8, ptr %9, i64 8
  %12 = load volatile i32, ptr %11, align 4, !tbaa !17
  %13 = and i32 %12, 7
  store volatile i32 %13, ptr %11, align 4, !tbaa !17
  %14 = tail call i32 @HAL_GetTick() #2
  %15 = load ptr, ptr %0, align 8, !tbaa !12
  %16 = getelementptr inbounds i8, ptr %15, i64 12
  %17 = load volatile i32, ptr %16, align 4, !tbaa !18
  %18 = and i32 %17, 4
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %8, %26
  %20 = tail call i32 @HAL_GetTick() #2
  %21 = sub i32 %20, %14
  %22 = icmp ugt i32 %21, 1000
  %.pre = load ptr, ptr %0, align 8, !tbaa !12
  br i1 %22, label %.thread39, label %26

.thread39:                                        ; preds = %.lr.ph
  %23 = getelementptr inbounds i8, ptr %.pre, i64 36
  store volatile i32 255, ptr %23, align 4, !tbaa !13
  store volatile i32 3, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %.pre, i64 12
  %25 = load volatile i32, ptr %24, align 4, !tbaa !18
  br label %._crit_edge

26:                                               ; preds = %.lr.ph
  %27 = getelementptr inbounds i8, ptr %.pre, i64 12
  %28 = load volatile i32, ptr %27, align 4, !tbaa !18
  %29 = and i32 %28, 4
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %26, %.thread39, %8
  %31 = tail call i32 @RTC_ExitInitMode(ptr noundef nonnull %0)
  %32 = icmp eq i32 %31, 0
  br i1 %32, label %33, label %.thread

33:                                               ; preds = %._crit_edge
  %34 = load ptr, ptr %0, align 8, !tbaa !12
  %35 = getelementptr inbounds i8, ptr %34, i64 8
  %36 = load volatile i32, ptr %35, align 4, !tbaa !17
  store volatile i32 0, ptr %35, align 4, !tbaa !17
  %37 = getelementptr inbounds i8, ptr %34, i64 20
  store volatile i32 65535, ptr %37, align 4, !tbaa !21
  %38 = getelementptr inbounds i8, ptr %34, i64 16
  store volatile i32 8323327, ptr %38, align 4, !tbaa !22
  %39 = getelementptr inbounds i8, ptr %34, i64 28
  store volatile i32 0, ptr %39, align 4, !tbaa !23
  %40 = getelementptr inbounds i8, ptr %34, i64 32
  store volatile i32 0, ptr %40, align 4, !tbaa !24
  %41 = getelementptr inbounds i8, ptr %34, i64 44
  store volatile i32 0, ptr %41, align 4, !tbaa !25
  %42 = getelementptr inbounds i8, ptr %34, i64 60
  store volatile i32 0, ptr %42, align 4, !tbaa !26
  %43 = getelementptr inbounds i8, ptr %34, i64 68
  store volatile i32 0, ptr %43, align 4, !tbaa !27
  %44 = getelementptr inbounds i8, ptr %34, i64 72
  store volatile i32 0, ptr %44, align 4, !tbaa !28
  %45 = getelementptr inbounds i8, ptr %34, i64 64
  store volatile i32 0, ptr %45, align 4, !tbaa !29
  %46 = getelementptr inbounds i8, ptr %34, i64 76
  store volatile i32 0, ptr %46, align 4, !tbaa !30
  %47 = getelementptr inbounds i8, ptr %34, i64 36
  store volatile i32 255, ptr %47, align 4, !tbaa !13
  tail call void @HAL_RTC_MspDeInit(ptr noundef nonnull %0)
  store volatile i32 0, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 0, ptr %48, align 4, !tbaa !31
  br label %.thread

.thread:                                          ; preds = %2, %._crit_edge, %33, %1
  %.3 = phi i32 [ 0, %33 ], [ 1, %1 ], [ %6, %2 ], [ %31, %._crit_edge ]
  ret i32 %.3
}

declare i32 @HAL_GetTick() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_RTC_MspDeInit(ptr noundef) local_unnamed_addr #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 = { "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, !11, i64 40}
!6 = !{!"", !7, i64 0, !10, i64 8, !11, i64 36, !11, i64 40}
!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, i64 20, !11, i64 24}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!14, !11, i64 36}
!14 = !{!"", !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, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 204}
!15 = !{!14, !11, i64 0}
!16 = !{!14, !11, i64 4}
!17 = !{!14, !11, i64 8}
!18 = !{!14, !11, i64 12}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!14, !11, i64 20}
!22 = !{!14, !11, i64 16}
!23 = !{!14, !11, i64 28}
!24 = !{!14, !11, i64 32}
!25 = !{!14, !11, i64 44}
!26 = !{!14, !11, i64 60}
!27 = !{!14, !11, i64 68}
!28 = !{!14, !11, i64 72}
!29 = !{!14, !11, i64 64}
!30 = !{!14, !11, i64 76}
!31 = !{!6, !11, i64 36}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass