; 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 }
%struct.RTC_TimeTypeDef = type { i8, i8, i8, i8, 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_SetTime(ptr noundef %0, ptr noundef %1, i32 noundef %2) #1 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  br label %11

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

16:                                               ; preds = %11
  store i32 2, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %170

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

20:                                               ; preds = %17
  br label %21

21:                                               ; preds = %20
  br label %22

22:                                               ; preds = %21
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %23, i32 0, i32 3
  store volatile i32 2, ptr %24, align 8, !tbaa !14
  br label %25

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

34:                                               ; preds = %25
  br label %35

35:                                               ; preds = %34
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call i32 @RTC_EnterInitMode(ptr noundef %36)
  store i32 %37, ptr %9, align 4, !tbaa !9
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %150

40:                                               ; preds = %35
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %83

43:                                               ; preds = %40
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %44, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !15
  %47 = getelementptr inbounds %struct.RTC_TypeDef, ptr %46, i32 0, i32 2
  %48 = load volatile i32, ptr %47, align 4, !tbaa !18
  %49 = zext i32 %48 to i64
  %50 = and i64 %49, 64
  %51 = icmp ne i64 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %43
  br label %56

53:                                               ; preds = %43
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %54, i32 0, i32 3
  store i8 0, ptr %55, align 1, !tbaa !19
  br label %56

56:                                               ; preds = %53, %52
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %57, i32 0, i32 0
  %59 = load i8, ptr %58, align 4, !tbaa !21
  %60 = call zeroext i8 @RTC_ByteToBcd2(i8 noundef zeroext %59)
  %61 = zext i8 %60 to i32
  %62 = shl i32 %61, 16
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %63, i32 0, i32 1
  %65 = load i8, ptr %64, align 1, !tbaa !22
  %66 = call zeroext i8 @RTC_ByteToBcd2(i8 noundef zeroext %65)
  %67 = zext i8 %66 to i32
  %68 = shl i32 %67, 8
  %69 = or i32 %62, %68
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %70, i32 0, i32 2
  %72 = load i8, ptr %71, align 2, !tbaa !23
  %73 = call zeroext i8 @RTC_ByteToBcd2(i8 noundef zeroext %72)
  %74 = zext i8 %73 to i32
  %75 = shl i32 %74, 0
  %76 = or i32 %69, %75
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %77, i32 0, i32 3
  %79 = load i8, ptr %78, align 1, !tbaa !19
  %80 = zext i8 %79 to i32
  %81 = shl i32 %80, 22
  %82 = or i32 %76, %81
  store i32 %82, ptr %8, align 4, !tbaa !9
  br label %120

83:                                               ; preds = %40
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !15
  %87 = getelementptr inbounds %struct.RTC_TypeDef, ptr %86, i32 0, i32 2
  %88 = load volatile i32, ptr %87, align 4, !tbaa !18
  %89 = zext i32 %88 to i64
  %90 = and i64 %89, 64
  %91 = icmp ne i64 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %83
  br label %96

93:                                               ; preds = %83
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %94, i32 0, i32 3
  store i8 0, ptr %95, align 1, !tbaa !19
  br label %96

96:                                               ; preds = %93, %92
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %97, i32 0, i32 0
  %99 = load i8, ptr %98, align 4, !tbaa !21
  %100 = zext i8 %99 to i32
  %101 = shl i32 %100, 16
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %102, i32 0, i32 1
  %104 = load i8, ptr %103, align 1, !tbaa !22
  %105 = zext i8 %104 to i32
  %106 = shl i32 %105, 8
  %107 = or i32 %101, %106
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %108, i32 0, i32 2
  %110 = load i8, ptr %109, align 2, !tbaa !23
  %111 = zext i8 %110 to i32
  %112 = shl i32 %111, 0
  %113 = or i32 %107, %112
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %114, i32 0, i32 3
  %116 = load i8, ptr %115, align 1, !tbaa !19
  %117 = zext i8 %116 to i32
  %118 = shl i32 %117, 22
  %119 = or i32 %113, %118
  store i32 %119, ptr %8, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %96, %56
  %121 = load i32, ptr %8, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = and i64 %122, 8355711
  %124 = trunc i64 %123 to i32
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !15
  %128 = getelementptr inbounds %struct.RTC_TypeDef, ptr %127, i32 0, i32 0
  store volatile i32 %124, ptr %128, align 4, !tbaa !24
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !15
  %132 = getelementptr inbounds %struct.RTC_TypeDef, ptr %131, i32 0, i32 2
  %133 = load volatile i32, ptr %132, align 4, !tbaa !18
  %134 = and i32 %133, -262145
  store volatile i32 %134, ptr %132, align 4, !tbaa !18
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %136, align 4, !tbaa !25
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %138, i32 0, i32 7
  %140 = load i32, ptr %139, align 4, !tbaa !26
  %141 = or i32 %137, %140
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %142, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8, !tbaa !15
  %145 = getelementptr inbounds %struct.RTC_TypeDef, ptr %144, i32 0, i32 2
  %146 = load volatile i32, ptr %145, align 4, !tbaa !18
  %147 = or i32 %146, %141
  store volatile i32 %147, ptr %145, align 4, !tbaa !18
  %148 = load ptr, ptr %5, align 8, !tbaa !5
  %149 = call i32 @RTC_ExitInitMode(ptr noundef %148)
  store i32 %149, ptr %9, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %120, %35
  br label %151

151:                                              ; preds = %150
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %155 = getelementptr inbounds %struct.RTC_TypeDef, ptr %154, i32 0, i32 9
  store volatile i32 255, ptr %155, align 4, !tbaa !16
  br label %156

156:                                              ; preds = %151
  br label %157

157:                                              ; preds = %156
  %158 = load i32, ptr %9, align 4, !tbaa !9
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %160, label %163

160:                                              ; preds = %157
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %161, i32 0, i32 3
  store volatile i32 1, ptr %162, align 8, !tbaa !14
  br label %163

163:                                              ; preds = %160, %157
  br label %164

164:                                              ; preds = %163
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %165, i32 0, i32 2
  store i32 0, ptr %166, align 4, !tbaa !11
  br label %167

167:                                              ; preds = %164
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %169, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %170

170:                                              ; preds = %168, %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  %171 = load i32, ptr %4, align 4
  ret i32 %171
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @RTC_ByteToBcd2(i8 noundef zeroext) #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 = { 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 = !{!20, !7, i64 3}
!20 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!21 = !{!20, !7, i64 0}
!22 = !{!20, !7, i64 1}
!23 = !{!20, !7, i64 2}
!24 = !{!17, !10, i64 0}
!25 = !{!20, !10, i64 12}
!26 = !{!20, !10, i64 16}


; 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_SetTime(ptr noundef %0, ptr nocapture noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %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 %84, 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 = tail call i32 @RTC_EnterInitMode(ptr noundef nonnull %0)
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %15, label %.thread

.thread:                                          ; preds = %7
  %13 = load ptr, ptr %0, align 8, !tbaa !13
  %14 = getelementptr inbounds i8, ptr %13, i64 36
  store volatile i32 255, ptr %14, align 4, !tbaa !14
  br label %83

15:                                               ; preds = %7
  %16 = icmp eq i32 %2, 0
  %17 = load ptr, ptr %0, align 8, !tbaa !13
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = load volatile i32, ptr %18, align 4, !tbaa !16
  %20 = and i32 %19, 64
  %.not35 = icmp eq i32 %20, 0
  br i1 %16, label %21, label %45

21:                                               ; preds = %15
  br i1 %.not35, label %22, label %24

22:                                               ; preds = %21
  %23 = getelementptr inbounds i8, ptr %1, i64 3
  store i8 0, ptr %23, align 1, !tbaa !17
  br label %24

24:                                               ; preds = %21, %22
  %25 = load i8, ptr %1, align 4, !tbaa !19
  %26 = tail call zeroext i8 @RTC_ByteToBcd2(i8 noundef zeroext %25)
  %27 = zext i8 %26 to i32
  %28 = shl nuw nsw i32 %27, 16
  %29 = getelementptr inbounds i8, ptr %1, i64 1
  %30 = load i8, ptr %29, align 1, !tbaa !20
  %31 = tail call zeroext i8 @RTC_ByteToBcd2(i8 noundef zeroext %30)
  %32 = zext i8 %31 to i32
  %33 = shl nuw nsw i32 %32, 8
  %34 = or disjoint i32 %33, %28
  %35 = getelementptr inbounds i8, ptr %1, i64 2
  %36 = load i8, ptr %35, align 2, !tbaa !21
  %37 = tail call zeroext i8 @RTC_ByteToBcd2(i8 noundef zeroext %36)
  %38 = zext i8 %37 to i32
  %39 = or disjoint i32 %34, %38
  %40 = getelementptr inbounds i8, ptr %1, i64 3
  %41 = load i8, ptr %40, align 1, !tbaa !17
  %42 = zext i8 %41 to i32
  %43 = shl nuw nsw i32 %42, 22
  %44 = or i32 %43, %39
  %.pre38 = load ptr, ptr %0, align 8, !tbaa !13
  br label %65

45:                                               ; preds = %15
  %46 = getelementptr inbounds i8, ptr %1, i64 3
  br i1 %.not35, label %49, label %._crit_edge

._crit_edge:                                      ; preds = %45
  %.pre = load i8, ptr %46, align 1, !tbaa !17
  %47 = zext i8 %.pre to i32
  %48 = shl nuw nsw i32 %47, 22
  br label %50

49:                                               ; preds = %45
  store i8 0, ptr %46, align 1, !tbaa !17
  br label %50

50:                                               ; preds = %._crit_edge, %49
  %51 = phi i32 [ %48, %._crit_edge ], [ 0, %49 ]
  %52 = load i8, ptr %1, align 4, !tbaa !19
  %53 = zext i8 %52 to i32
  %54 = shl nuw nsw i32 %53, 16
  %55 = getelementptr inbounds i8, ptr %1, i64 1
  %56 = load i8, ptr %55, align 1, !tbaa !20
  %57 = zext i8 %56 to i32
  %58 = shl nuw nsw i32 %57, 8
  %59 = or disjoint i32 %58, %54
  %60 = getelementptr inbounds i8, ptr %1, i64 2
  %61 = load i8, ptr %60, align 2, !tbaa !21
  %62 = zext i8 %61 to i32
  %63 = or disjoint i32 %59, %62
  %64 = or i32 %63, %51
  br label %65

65:                                               ; preds = %24, %50
  %66 = phi ptr [ %.pre38, %24 ], [ %17, %50 ]
  %.032 = phi i32 [ %44, %24 ], [ %64, %50 ]
  %67 = and i32 %.032, 8355711
  store volatile i32 %67, ptr %66, align 4, !tbaa !22
  %68 = getelementptr inbounds i8, ptr %66, i64 8
  %69 = load volatile i32, ptr %68, align 4, !tbaa !16
  %70 = and i32 %69, -262145
  store volatile i32 %70, ptr %68, align 4, !tbaa !16
  %71 = getelementptr inbounds i8, ptr %1, i64 12
  %72 = load i32, ptr %71, align 4, !tbaa !23
  %73 = getelementptr inbounds i8, ptr %1, i64 16
  %74 = load i32, ptr %73, align 4, !tbaa !24
  %75 = or i32 %74, %72
  %76 = load volatile i32, ptr %68, align 4, !tbaa !16
  %77 = or i32 %75, %76
  store volatile i32 %77, ptr %68, align 4, !tbaa !16
  %78 = tail call i32 @RTC_ExitInitMode(ptr noundef nonnull %0)
  %79 = load ptr, ptr %0, align 8, !tbaa !13
  %80 = getelementptr inbounds i8, ptr %79, i64 36
  store volatile i32 255, ptr %80, align 4, !tbaa !14
  %81 = icmp eq i32 %78, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %65
  store volatile i32 1, ptr %8, align 8, !tbaa !12
  br label %83

83:                                               ; preds = %.thread, %65, %82
  %.037 = phi i32 [ %11, %.thread ], [ %78, %65 ], [ 0, %82 ]
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %3, %83
  %.033 = phi i32 [ %.037, %83 ], [ 2, %3 ]
  ret i32 %.033
}

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @RTC_ByteToBcd2(i8 noundef zeroext) 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" }

!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 = !{!18, !8, i64 3}
!18 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!19 = !{!18, !8, i64 0}
!20 = !{!18, !8, i64 1}
!21 = !{!18, !8, i64 2}
!22 = !{!15, !11, i64 0}
!23 = !{!18, !11, i64 12}
!24 = !{!18, !11, i64 16}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass