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

; 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.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] }

@SystemCoreClock = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_RCC_DeInit() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  %4 = call i32 @HAL_GetTick()
  store i32 %4, ptr %2, align 4, !tbaa !5
  %5 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  %6 = zext i32 %5 to i64
  %7 = or i64 %6, 1
  %8 = trunc i64 %7 to i32
  store volatile i32 %8, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  br label %9

9:                                                ; preds = %20, %0
  %10 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  %11 = zext i32 %10 to i64
  %12 = and i64 %11, 4
  %13 = icmp eq i64 %12, 0
  br i1 %13, label %14, label %21

14:                                               ; preds = %9
  %15 = call i32 @HAL_GetTick()
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = sub i32 %15, %16
  %18 = icmp ugt i32 %17, 2
  br i1 %18, label %19, label %20

19:                                               ; preds = %14
  store i32 3, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %124

20:                                               ; preds = %14
  br label %9, !llvm.loop !11

21:                                               ; preds = %9
  %22 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 1), align 4, !tbaa !13
  %23 = zext i32 %22 to i64
  %24 = or i64 %23, 1073741824
  %25 = trunc i64 %24 to i32
  store volatile i32 %25, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 1), align 4, !tbaa !13
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 4), align 4, !tbaa !14
  store i32 64000000, ptr @SystemCoreClock, align 4, !tbaa !5
  %26 = call i32 @HAL_InitTick(i32 noundef 14)
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %21
  store i32 1, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %124

29:                                               ; preds = %21
  %30 = call i32 @HAL_GetTick()
  store i32 %30, ptr %2, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %42, %29
  %32 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 4), align 4, !tbaa !14
  %33 = zext i32 %32 to i64
  %34 = and i64 %33, 56
  %35 = icmp ne i64 %34, 0
  br i1 %35, label %36, label %43

36:                                               ; preds = %31
  %37 = call i32 @HAL_GetTick()
  %38 = load i32, ptr %2, align 4, !tbaa !5
  %39 = sub i32 %37, %38
  %40 = icmp ugt i32 %39, 5000
  br i1 %40, label %41, label %42

41:                                               ; preds = %36
  store i32 3, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %124

42:                                               ; preds = %36
  br label %31, !llvm.loop !15

43:                                               ; preds = %31
  %44 = call i32 @HAL_GetTick()
  store i32 %44, ptr %2, align 4, !tbaa !5
  %45 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = and i64 %46, -594619
  %48 = trunc i64 %47 to i32
  store volatile i32 %48, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  br label %49

49:                                               ; preds = %60, %43
  %50 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = and i64 %51, 131072
  %53 = icmp ne i64 %52, 0
  br i1 %53, label %54, label %61

54:                                               ; preds = %49
  %55 = call i32 @HAL_GetTick()
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = sub i32 %55, %56
  %58 = icmp ugt i32 %57, 5000
  br i1 %58, label %59, label %60

59:                                               ; preds = %54
  store i32 3, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %124

60:                                               ; preds = %54
  br label %49, !llvm.loop !16

61:                                               ; preds = %49
  %62 = call i32 @HAL_GetTick()
  store i32 %62, ptr %2, align 4, !tbaa !5
  %63 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  %64 = zext i32 %63 to i64
  %65 = and i64 %64, -16777217
  %66 = trunc i64 %65 to i32
  store volatile i32 %66, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  br label %67

67:                                               ; preds = %78, %61
  %68 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = and i64 %69, 33554432
  %71 = icmp ne i64 %70, 0
  br i1 %71, label %72, label %79

72:                                               ; preds = %67
  %73 = call i32 @HAL_GetTick()
  %74 = load i32, ptr %2, align 4, !tbaa !5
  %75 = sub i32 %73, %74
  %76 = icmp ugt i32 %75, 2
  br i1 %76, label %77, label %78

77:                                               ; preds = %72
  store i32 3, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %124

78:                                               ; preds = %72
  br label %67, !llvm.loop !17

79:                                               ; preds = %67
  %80 = call i32 @HAL_GetTick()
  store i32 %80, ptr %2, align 4, !tbaa !5
  %81 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = and i64 %82, -67108865
  %84 = trunc i64 %83 to i32
  store volatile i32 %84, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  br label %85

85:                                               ; preds = %96, %79
  %86 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = and i64 %87, 134217728
  %89 = icmp ne i64 %88, 0
  br i1 %89, label %90, label %97

90:                                               ; preds = %85
  %91 = call i32 @HAL_GetTick()
  %92 = load i32, ptr %2, align 4, !tbaa !5
  %93 = sub i32 %91, %92
  %94 = icmp ugt i32 %93, 2
  br i1 %94, label %95, label %96

95:                                               ; preds = %90
  store i32 3, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %124

96:                                               ; preds = %90
  br label %85, !llvm.loop !18

97:                                               ; preds = %85
  %98 = call i32 @HAL_GetTick()
  store i32 %98, ptr %2, align 4, !tbaa !5
  %99 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = and i64 %100, -268435457
  %102 = trunc i64 %101 to i32
  store volatile i32 %102, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  br label %103

103:                                              ; preds = %114, %97
  %104 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = and i64 %105, 536870912
  %107 = icmp ne i64 %106, 0
  br i1 %107, label %108, label %115

108:                                              ; preds = %103
  %109 = call i32 @HAL_GetTick()
  %110 = load i32, ptr %2, align 4, !tbaa !5
  %111 = sub i32 %109, %110
  %112 = icmp ugt i32 %111, 2
  br i1 %112, label %113, label %114

113:                                              ; preds = %108
  store i32 3, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %124

114:                                              ; preds = %108
  br label %103, !llvm.loop !19

115:                                              ; preds = %103
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 6), align 4, !tbaa !20
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 7), align 4, !tbaa !21
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 8), align 4, !tbaa !22
  store volatile i32 33686016, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 10), align 4, !tbaa !23
  store volatile i32 33488896, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 11), align 4, !tbaa !24
  store volatile i32 16843392, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 12), align 4, !tbaa !25
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 13), align 4, !tbaa !26
  store volatile i32 16843392, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 14), align 4, !tbaa !27
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 15), align 4, !tbaa !28
  store volatile i32 16843392, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 16), align 4, !tbaa !29
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 17), align 4, !tbaa !30
  %116 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  %117 = zext i32 %116 to i64
  %118 = and i64 %117, -262145
  %119 = trunc i64 %118 to i32
  store volatile i32 %119, ptr inttoptr (i64 1476543488 to ptr), align 4, !tbaa !9
  store volatile i32 0, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 24), align 4, !tbaa !31
  store volatile i32 -1, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 26), align 4, !tbaa !32
  %120 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 44), align 4, !tbaa !33
  %121 = zext i32 %120 to i64
  %122 = or i64 %121, 65536
  %123 = trunc i64 %122 to i32
  store volatile i32 %123, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 44), align 4, !tbaa !33
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  br label %124

124:                                              ; preds = %115, %113, %95, %77, %59, %41, %28, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  %125 = load i32, ptr %1, align 4
  ret i32 %125
}

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

declare i32 @HAL_GetTick() #2

declare i32 @HAL_InitTick(i32 noundef) #2

; 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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 116, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !6, i64 148, !6, i64 152, !6, i64 156, !6, i64 160, !6, i64 164, !6, i64 168, !7, i64 172, !6, i64 208, !6, i64 212, !6, i64 216, !6, i64 220, !6, i64 224, !6, i64 228, !6, i64 232, !6, i64 236, !6, i64 240, !6, i64 244, !6, i64 248, !6, i64 252, !6, i64 256, !6, i64 260, !6, i64 264, !6, i64 268, !6, i64 272, !6, i64 276, !6, i64 280, !6, i64 284, !7, i64 288}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!10, !6, i64 4}
!14 = !{!10, !6, i64 16}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = !{!10, !6, i64 24}
!21 = !{!10, !6, i64 28}
!22 = !{!10, !6, i64 32}
!23 = !{!10, !6, i64 40}
!24 = !{!10, !6, i64 44}
!25 = !{!10, !6, i64 48}
!26 = !{!10, !6, i64 52}
!27 = !{!10, !6, i64 56}
!28 = !{!10, !6, i64 60}
!29 = !{!10, !6, i64 64}
!30 = !{!10, !6, i64 68}
!31 = !{!10, !6, i64 96}
!32 = !{!10, !6, i64 104}
!33 = !{!10, !6, i64 208}


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

@SystemCoreClock = external local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 4) i32 @HAL_RCC_DeInit() local_unnamed_addr #0 {
  %1 = tail call i32 @HAL_GetTick() #2
  %2 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  %3 = or i32 %2, 1
  store volatile i32 %3, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  br label %4

4:                                                ; preds = %8, %0
  %5 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  %6 = and i32 %5, 4
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %8, label %12

8:                                                ; preds = %4
  %9 = tail call i32 @HAL_GetTick() #2
  %10 = sub i32 %9, %1
  %11 = icmp ugt i32 %10, 2
  br i1 %11, label %.loopexit, label %4, !llvm.loop !10

12:                                               ; preds = %4
  %13 = load volatile i32, ptr inttoptr (i64 1476543492 to ptr), align 4, !tbaa !12
  %14 = or i32 %13, 1073741824
  store volatile i32 %14, ptr inttoptr (i64 1476543492 to ptr), align 4, !tbaa !12
  store volatile i32 0, ptr inttoptr (i64 1476543504 to ptr), align 16, !tbaa !13
  store i32 64000000, ptr @SystemCoreClock, align 4, !tbaa !14
  %15 = tail call i32 @HAL_InitTick(i32 noundef 14) #2
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %16, label %.loopexit

16:                                               ; preds = %12
  %17 = tail call i32 @HAL_GetTick() #2
  br label %18

18:                                               ; preds = %22, %16
  %19 = load volatile i32, ptr inttoptr (i64 1476543504 to ptr), align 16, !tbaa !13
  %20 = and i32 %19, 56
  %.not7 = icmp eq i32 %20, 0
  %21 = tail call i32 @HAL_GetTick() #2
  br i1 %.not7, label %25, label %22

22:                                               ; preds = %18
  %23 = sub i32 %21, %17
  %24 = icmp ugt i32 %23, 5000
  br i1 %24, label %.loopexit, label %18, !llvm.loop !15

25:                                               ; preds = %18
  %26 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  %27 = and i32 %26, -594619
  store volatile i32 %27, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  br label %28

28:                                               ; preds = %32, %25
  %29 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  %30 = and i32 %29, 131072
  %.not8 = icmp eq i32 %30, 0
  %31 = tail call i32 @HAL_GetTick() #2
  br i1 %.not8, label %35, label %32

32:                                               ; preds = %28
  %33 = sub i32 %31, %21
  %34 = icmp ugt i32 %33, 5000
  br i1 %34, label %.loopexit, label %28, !llvm.loop !16

35:                                               ; preds = %28
  %36 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  %37 = and i32 %36, -16777217
  store volatile i32 %37, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  br label %38

38:                                               ; preds = %42, %35
  %39 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  %40 = and i32 %39, 33554432
  %.not9 = icmp eq i32 %40, 0
  %41 = tail call i32 @HAL_GetTick() #2
  br i1 %.not9, label %45, label %42

42:                                               ; preds = %38
  %43 = sub i32 %41, %31
  %44 = icmp ugt i32 %43, 2
  br i1 %44, label %.loopexit, label %38, !llvm.loop !17

45:                                               ; preds = %38
  %46 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  %47 = and i32 %46, -67108865
  store volatile i32 %47, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  br label %48

48:                                               ; preds = %52, %45
  %49 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  %50 = and i32 %49, 134217728
  %.not10 = icmp eq i32 %50, 0
  %51 = tail call i32 @HAL_GetTick() #2
  br i1 %.not10, label %55, label %52

52:                                               ; preds = %48
  %53 = sub i32 %51, %41
  %54 = icmp ugt i32 %53, 2
  br i1 %54, label %.loopexit, label %48, !llvm.loop !18

55:                                               ; preds = %48
  %56 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  %57 = and i32 %56, -268435457
  store volatile i32 %57, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  br label %58

58:                                               ; preds = %61, %55
  %59 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  %60 = and i32 %59, 536870912
  %.not11 = icmp eq i32 %60, 0
  br i1 %.not11, label %65, label %61

61:                                               ; preds = %58
  %62 = tail call i32 @HAL_GetTick() #2
  %63 = sub i32 %62, %51
  %64 = icmp ugt i32 %63, 2
  br i1 %64, label %.loopexit, label %58, !llvm.loop !19

65:                                               ; preds = %58
  store volatile i32 0, ptr inttoptr (i64 1476543512 to ptr), align 8, !tbaa !20
  store volatile i32 0, ptr inttoptr (i64 1476543516 to ptr), align 4, !tbaa !21
  store volatile i32 0, ptr inttoptr (i64 1476543520 to ptr), align 32, !tbaa !22
  store volatile i32 33686016, ptr inttoptr (i64 1476543528 to ptr), align 8, !tbaa !23
  store volatile i32 33488896, ptr inttoptr (i64 1476543532 to ptr), align 4, !tbaa !24
  store volatile i32 16843392, ptr inttoptr (i64 1476543536 to ptr), align 16, !tbaa !25
  store volatile i32 0, ptr inttoptr (i64 1476543540 to ptr), align 4, !tbaa !26
  store volatile i32 16843392, ptr inttoptr (i64 1476543544 to ptr), align 8, !tbaa !27
  store volatile i32 0, ptr inttoptr (i64 1476543548 to ptr), align 4, !tbaa !28
  store volatile i32 16843392, ptr inttoptr (i64 1476543552 to ptr), align 64, !tbaa !29
  store volatile i32 0, ptr inttoptr (i64 1476543556 to ptr), align 4, !tbaa !30
  %66 = load volatile i32, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  %67 = and i32 %66, -262145
  store volatile i32 %67, ptr inttoptr (i64 1476543488 to ptr), align 1024, !tbaa !5
  store volatile i32 0, ptr inttoptr (i64 1476543584 to ptr), align 32, !tbaa !31
  store volatile i32 -1, ptr inttoptr (i64 1476543592 to ptr), align 8, !tbaa !32
  %68 = load volatile i32, ptr inttoptr (i64 1476543696 to ptr), align 16, !tbaa !33
  %69 = or i32 %68, 65536
  store volatile i32 %69, ptr inttoptr (i64 1476543696 to ptr), align 16, !tbaa !33
  br label %.loopexit

.loopexit:                                        ; preds = %8, %22, %32, %42, %52, %61, %12, %65
  %.0 = phi i32 [ 0, %65 ], [ 1, %12 ], [ 3, %61 ], [ 3, %52 ], [ 3, %42 ], [ 3, %32 ], [ 3, %22 ], [ 3, %8 ]
  ret i32 %.0
}

declare i32 @HAL_GetTick() local_unnamed_addr #1

declare i32 @HAL_InitTick(i32 noundef) local_unnamed_addr #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 = { "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, !7, i64 0}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !8, i64 172, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !8, i64 288}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!6, !7, i64 4}
!13 = !{!6, !7, i64 16}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}
!19 = distinct !{!19, !11}
!20 = !{!6, !7, i64 24}
!21 = !{!6, !7, i64 28}
!22 = !{!6, !7, i64 32}
!23 = !{!6, !7, i64 40}
!24 = !{!6, !7, i64 44}
!25 = !{!6, !7, i64 48}
!26 = !{!6, !7, i64 52}
!27 = !{!6, !7, i64 56}
!28 = !{!6, !7, i64 60}
!29 = !{!6, !7, i64 64}
!30 = !{!6, !7, i64 68}
!31 = !{!6, !7, i64 96}
!32 = !{!6, !7, i64 104}
!33 = !{!6, !7, i64 208}


; Effective O3 passes: GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass