; 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.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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @HAL_GetTick() #1

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_RTCEx_SetWakeUpTimer_IT(ptr noundef %0, i32 noundef %1, i32 noundef %2) #2 {
  %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) #3
  br label %10

10:                                               ; preds = %3
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %11, i32 0, i32 2
  %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 %192

16:                                               ; preds = %10
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %17, i32 0, i32 2
  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.RTC_HandleTypeDef, ptr %22, i32 0, i32 3
  store volatile i32 2, ptr %23, align 8, !tbaa !14
  br label %24

24:                                               ; preds = %21
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !15
  %28 = getelementptr inbounds %struct.RTC_TypeDef, ptr %27, i32 0, i32 9
  store volatile i32 202, ptr %28, align 4, !tbaa !16
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !15
  %32 = getelementptr inbounds %struct.RTC_TypeDef, ptr %31, i32 0, i32 9
  store volatile i32 83, ptr %32, align 4, !tbaa !16
  br label %33

33:                                               ; preds = %24
  br label %34

34:                                               ; preds = %33
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %35, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  %38 = getelementptr inbounds %struct.RTC_TypeDef, ptr %37, i32 0, i32 2
  %39 = load volatile i32, ptr %38, align 4, !tbaa !18
  %40 = zext i32 %39 to i64
  %41 = and i64 %40, 1024
  %42 = icmp ne i64 %41, 0
  br i1 %42, label %43, label %79

43:                                               ; preds = %34
  %44 = call i32 @HAL_GetTick()
  store i32 %44, ptr %8, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %77, %43
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !15
  %49 = getelementptr inbounds %struct.RTC_TypeDef, ptr %48, i32 0, i32 3
  %50 = load volatile i32, ptr %49, align 4, !tbaa !19
  %51 = zext i32 %50 to i64
  %52 = and i64 %51, 4
  %53 = icmp ne i64 %52, 0
  %54 = zext i1 %53 to i64
  %55 = select i1 %53, i32 1, i32 0
  %56 = icmp eq i32 %55, 1
  br i1 %56, label %57, label %78

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

62:                                               ; preds = %57
  br label %63

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

68:                                               ; preds = %63
  br label %69

69:                                               ; preds = %68
  %70 = load ptr, ptr %5, 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 !14
  br label %72

72:                                               ; preds = %69
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %73, i32 0, i32 2
  store i32 0, ptr %74, align 4, !tbaa !11
  br label %75

75:                                               ; preds = %72
  br label %76

76:                                               ; preds = %75
  store i32 3, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %192

77:                                               ; preds = %57
  br label %45, !llvm.loop !20

78:                                               ; preds = %45
  br label %79

79:                                               ; preds = %78, %34
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %80, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !15
  %83 = getelementptr inbounds %struct.RTC_TypeDef, ptr %82, i32 0, i32 2
  %84 = load volatile i32, ptr %83, align 4, !tbaa !18
  %85 = zext i32 %84 to i64
  %86 = and i64 %85, -1025
  %87 = trunc i64 %86 to i32
  store volatile i32 %87, ptr %83, align 4, !tbaa !18
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !15
  %91 = getelementptr inbounds %struct.RTC_TypeDef, ptr %90, i32 0, i32 3
  %92 = load volatile i32, ptr %91, align 4, !tbaa !19
  %93 = zext i32 %92 to i64
  %94 = and i64 %93, 128
  %95 = or i64 -1153, %94
  %96 = trunc i64 %95 to i32
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %97, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !15
  %100 = getelementptr inbounds %struct.RTC_TypeDef, ptr %99, i32 0, i32 3
  store volatile i32 %96, ptr %100, align 4, !tbaa !19
  %101 = call i32 @HAL_GetTick()
  store i32 %101, ptr %8, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %134, %79
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %103, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8, !tbaa !15
  %106 = getelementptr inbounds %struct.RTC_TypeDef, ptr %105, i32 0, i32 3
  %107 = load volatile i32, ptr %106, align 4, !tbaa !19
  %108 = zext i32 %107 to i64
  %109 = and i64 %108, 4
  %110 = icmp ne i64 %109, 0
  %111 = zext i1 %110 to i64
  %112 = select i1 %110, i32 1, i32 0
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %135

114:                                              ; preds = %102
  %115 = call i32 @HAL_GetTick()
  %116 = load i32, ptr %8, align 4, !tbaa !9
  %117 = sub i32 %115, %116
  %118 = icmp ugt i32 %117, 1000
  br i1 %118, label %119, label %134

119:                                              ; preds = %114
  br label %120

120:                                              ; preds = %119
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %121, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8, !tbaa !15
  %124 = getelementptr inbounds %struct.RTC_TypeDef, ptr %123, i32 0, i32 9
  store volatile i32 255, ptr %124, align 4, !tbaa !16
  br label %125

125:                                              ; preds = %120
  br label %126

126:                                              ; preds = %125
  %127 = load ptr, ptr %5, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %127, i32 0, i32 3
  store volatile i32 3, ptr %128, align 8, !tbaa !14
  br label %129

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

132:                                              ; preds = %129
  br label %133

133:                                              ; preds = %132
  store i32 3, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %192

134:                                              ; preds = %114
  br label %102, !llvm.loop !22

135:                                              ; preds = %102
  %136 = load i32, ptr %6, align 4, !tbaa !9
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %137, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !15
  %140 = getelementptr inbounds %struct.RTC_TypeDef, ptr %139, i32 0, i32 5
  store volatile i32 %136, ptr %140, align 4, !tbaa !23
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %141, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8, !tbaa !15
  %144 = getelementptr inbounds %struct.RTC_TypeDef, ptr %143, i32 0, i32 2
  %145 = load volatile i32, ptr %144, align 4, !tbaa !18
  %146 = and i32 %145, -8
  store volatile i32 %146, ptr %144, align 4, !tbaa !18
  %147 = load i32, ptr %7, align 4, !tbaa !9
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %148, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8, !tbaa !15
  %151 = getelementptr inbounds %struct.RTC_TypeDef, ptr %150, i32 0, i32 2
  %152 = load volatile i32, ptr %151, align 4, !tbaa !18
  %153 = or i32 %152, %147
  store volatile i32 %153, ptr %151, align 4, !tbaa !18
  %154 = load volatile i32, ptr inttoptr (i64 1476395136 to ptr), align 4, !tbaa !24
  %155 = zext i32 %154 to i64
  %156 = or i64 %155, 524288
  %157 = trunc i64 %156 to i32
  store volatile i32 %157, ptr inttoptr (i64 1476395136 to ptr), align 4, !tbaa !24
  %158 = load volatile i32, ptr inttoptr (i64 1476395008 to ptr), align 4, !tbaa !26
  %159 = zext i32 %158 to i64
  %160 = or i64 %159, 524288
  %161 = trunc i64 %160 to i32
  store volatile i32 %161, ptr inttoptr (i64 1476395008 to ptr), align 4, !tbaa !26
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %162, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8, !tbaa !15
  %165 = getelementptr inbounds %struct.RTC_TypeDef, ptr %164, i32 0, i32 2
  %166 = load volatile i32, ptr %165, align 4, !tbaa !18
  %167 = zext i32 %166 to i64
  %168 = or i64 %167, 16384
  %169 = trunc i64 %168 to i32
  store volatile i32 %169, ptr %165, align 4, !tbaa !18
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %170, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8, !tbaa !15
  %173 = getelementptr inbounds %struct.RTC_TypeDef, ptr %172, i32 0, i32 2
  %174 = load volatile i32, ptr %173, align 4, !tbaa !18
  %175 = zext i32 %174 to i64
  %176 = or i64 %175, 1024
  %177 = trunc i64 %176 to i32
  store volatile i32 %177, ptr %173, align 4, !tbaa !18
  br label %178

178:                                              ; preds = %135
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %179, i32 0, i32 0
  %181 = load ptr, ptr %180, align 8, !tbaa !15
  %182 = getelementptr inbounds %struct.RTC_TypeDef, ptr %181, i32 0, i32 9
  store volatile i32 255, ptr %182, align 4, !tbaa !16
  br label %183

183:                                              ; preds = %178
  br label %184

184:                                              ; preds = %183
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %185, i32 0, i32 3
  store volatile i32 1, ptr %186, align 8, !tbaa !14
  br label %187

187:                                              ; preds = %184
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %188, i32 0, i32 2
  store i32 0, ptr %189, align 4, !tbaa !11
  br label %190

190:                                              ; preds = %187
  br label %191

191:                                              ; preds = %190
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %192

192:                                              ; preds = %191, %133, %76, %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %193 = load i32, ptr %4, align 4
  ret i32 %193
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 36}
!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, !10, i64 40}
!15 = !{!12, !6, i64 0}
!16 = !{!17, !10, i64 36}
!17 = !{!"", !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}
!18 = !{!17, !10, i64 8}
!19 = !{!17, !10, i64 12}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!17, !10, i64 20}
!24 = !{!25, !10, i64 0}
!25 = !{!"", !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}
!26 = !{!27, !10, i64 0}
!27 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !7, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !7, i64 88, !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}


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

declare i32 @HAL_GetTick() local_unnamed_addr #0

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

7:                                                ; preds = %3
  store i32 1, ptr %4, align 4, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  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 36
  store volatile i32 202, ptr %10, align 4, !tbaa !14
  store volatile i32 83, ptr %10, align 4, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %9, i64 8
  %12 = load volatile i32, ptr %11, align 4, !tbaa !16
  %13 = and i32 %12, 1024
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %.loopexit, label %14

14:                                               ; preds = %7
  %15 = tail call i32 @HAL_GetTick() #2
  br label %16

16:                                               ; preds = %21, %14
  %17 = load ptr, ptr %0, align 8, !tbaa !13
  %18 = getelementptr inbounds i8, ptr %17, i64 12
  %19 = load volatile i32, ptr %18, align 4, !tbaa !17
  %20 = and i32 %19, 4
  %.not29 = icmp eq i32 %20, 0
  br i1 %.not29, label %.loopexit, label %21

21:                                               ; preds = %16
  %22 = tail call i32 @HAL_GetTick() #2
  %23 = sub i32 %22, %15
  %24 = icmp ugt i32 %23, 1000
  br i1 %24, label %25, label %16, !llvm.loop !18

25:                                               ; preds = %21
  %26 = load ptr, ptr %0, align 8, !tbaa !13
  br label %.sink.split

.loopexit:                                        ; preds = %16, %7
  %27 = phi ptr [ %9, %7 ], [ %17, %16 ]
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  %29 = load volatile i32, ptr %28, align 4, !tbaa !16
  %30 = and i32 %29, -1025
  store volatile i32 %30, ptr %28, align 4, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %27, i64 12
  %32 = load volatile i32, ptr %31, align 4, !tbaa !17
  %33 = and i32 %32, 128
  %34 = or disjoint i32 %33, -1153
  store volatile i32 %34, ptr %31, align 4, !tbaa !17
  %35 = tail call i32 @HAL_GetTick() #2
  br label %36

36:                                               ; preds = %42, %.loopexit
  %37 = load ptr, ptr %0, align 8, !tbaa !13
  %38 = getelementptr inbounds i8, ptr %37, i64 12
  %39 = load volatile i32, ptr %38, align 4, !tbaa !17
  %40 = and i32 %39, 4
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %48

42:                                               ; preds = %36
  %43 = tail call i32 @HAL_GetTick() #2
  %44 = sub i32 %43, %35
  %45 = icmp ugt i32 %44, 1000
  br i1 %45, label %46, label %36, !llvm.loop !20

46:                                               ; preds = %42
  %47 = load ptr, ptr %0, align 8, !tbaa !13
  br label %.sink.split

48:                                               ; preds = %36
  %49 = getelementptr inbounds i8, ptr %37, i64 20
  store volatile i32 %1, ptr %49, align 4, !tbaa !21
  %50 = getelementptr inbounds i8, ptr %37, i64 8
  %51 = load volatile i32, ptr %50, align 4, !tbaa !16
  %52 = and i32 %51, -8
  store volatile i32 %52, ptr %50, align 4, !tbaa !16
  %53 = load volatile i32, ptr %50, align 4, !tbaa !16
  %54 = or i32 %53, %2
  store volatile i32 %54, ptr %50, align 4, !tbaa !16
  %55 = load volatile i32, ptr inttoptr (i64 1476395136 to ptr), align 128, !tbaa !22
  %56 = or i32 %55, 524288
  store volatile i32 %56, ptr inttoptr (i64 1476395136 to ptr), align 128, !tbaa !22
  %57 = load volatile i32, ptr inttoptr (i64 1476395008 to ptr), align 134217728, !tbaa !24
  %58 = or i32 %57, 524288
  store volatile i32 %58, ptr inttoptr (i64 1476395008 to ptr), align 134217728, !tbaa !24
  %59 = load volatile i32, ptr %50, align 4, !tbaa !16
  %60 = or i32 %59, 16384
  store volatile i32 %60, ptr %50, align 4, !tbaa !16
  %61 = load volatile i32, ptr %50, align 4, !tbaa !16
  %62 = or i32 %61, 1024
  store volatile i32 %62, ptr %50, align 4, !tbaa !16
  br label %.sink.split

.sink.split:                                      ; preds = %25, %46, %48
  %.lcssa.sink = phi ptr [ %37, %48 ], [ %47, %46 ], [ %26, %25 ]
  %.sink = phi i32 [ 1, %48 ], [ 3, %46 ], [ 3, %25 ]
  %.0.ph = phi i32 [ 0, %48 ], [ 3, %46 ], [ 3, %25 ]
  %63 = getelementptr inbounds i8, ptr %.lcssa.sink, i64 36
  store volatile i32 255, ptr %63, align 4, !tbaa !14
  store volatile i32 %.sink, ptr %8, align 8, !tbaa !12
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %.sink.split, %3
  %.0 = phi i32 [ 2, %3 ], [ %.0.ph, %.sink.split ]
  ret i32 %.0
}

attributes #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 = { 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, !11, i64 36}
!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, !11, i64 40}
!13 = !{!6, !7, i64 0}
!14 = !{!15, !11, i64 36}
!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, !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}
!16 = !{!15, !11, i64 8}
!17 = !{!15, !11, i64 12}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!15, !11, i64 20}
!22 = !{!23, !11, i64 0}
!23 = !{!"", !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}
!24 = !{!25, !11, i64 0}
!25 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !8, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !8, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !8, i64 88, !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}


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