; 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_AlarmTypeDef = type { %struct.RTC_TimeTypeDef, i32, i32, i32, i8, i32 }
%struct.RTC_TimeTypeDef = type { i8, i8, i8, i8, i32, i32, i32, i32 }
%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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @RTC_Bcd2ToByte(i8 noundef zeroext) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_RTC_GetAlarm(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #1 {
  %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
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #2
  %11 = load i32, ptr %7, align 4, !tbaa !9
  %12 = zext i32 %11 to i64
  %13 = icmp eq i64 %12, 256
  br i1 %13, label %14, label %85

14:                                               ; preds = %4
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %15, i32 0, i32 5
  store i32 256, ptr %16, align 4, !tbaa !11
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8, !tbaa !14
  %20 = getelementptr inbounds %struct.RTC_TypeDef, ptr %19, i32 0, i32 7
  %21 = load volatile i32, ptr %20, align 4, !tbaa !17
  store i32 %21, ptr %9, align 4, !tbaa !9
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.RTC_HandleTypeDef, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds %struct.RTC_TypeDef, ptr %24, i32 0, i32 17
  %26 = load volatile i32, ptr %25, align 4, !tbaa !19
  %27 = zext i32 %26 to i64
  %28 = and i64 %27, 32767
  %29 = trunc i64 %28 to i32
  store i32 %29, ptr %10, align 4, !tbaa !9
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = and i64 %31, 4128768
  %33 = lshr i64 %32, 16
  %34 = trunc i64 %33 to i8
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %36, i32 0, i32 0
  store i8 %34, ptr %37, align 4, !tbaa !20
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = and i64 %39, 32512
  %41 = lshr i64 %40, 8
  %42 = trunc i64 %41 to i8
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %43, i32 0, i32 0
  %45 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %44, i32 0, i32 1
  store i8 %42, ptr %45, align 1, !tbaa !21
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = and i64 %47, 127
  %49 = lshr i64 %48, 0
  %50 = trunc i64 %49 to i8
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %52, i32 0, i32 2
  store i8 %50, ptr %53, align 2, !tbaa !22
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = and i64 %55, 4194304
  %57 = lshr i64 %56, 22
  %58 = trunc i64 %57 to i8
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %59, i32 0, i32 0
  %61 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %60, i32 0, i32 3
  store i8 %58, ptr %61, align 1, !tbaa !23
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %64, i32 0, i32 4
  store i32 %62, ptr %65, align 4, !tbaa !24
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = and i64 %67, 1056964608
  %69 = lshr i64 %68, 24
  %70 = trunc i64 %69 to i8
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %71, i32 0, i32 4
  store i8 %70, ptr %72, align 4, !tbaa !25
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = and i64 %74, 1073741824
  %76 = trunc i64 %75 to i32
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %77, i32 0, i32 3
  store i32 %76, ptr %78, align 4, !tbaa !26
  %79 = load i32, ptr %9, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = and i64 %80, 2155905152
  %82 = trunc i64 %81 to i32
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %83, i32 0, i32 1
  store i32 %82, ptr %84, align 4, !tbaa !27
  br label %156

85:                                               ; preds = %4
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %86, i32 0, i32 5
  store i32 512, ptr %87, align 4, !tbaa !11
  %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 !14
  %91 = getelementptr inbounds %struct.RTC_TypeDef, ptr %90, i32 0, i32 8
  %92 = load volatile i32, ptr %91, align 4, !tbaa !28
  store i32 %92, ptr %9, align 4, !tbaa !9
  %93 = load ptr, ptr %5, 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 18
  %97 = load volatile i32, ptr %96, align 4, !tbaa !29
  %98 = zext i32 %97 to i64
  %99 = and i64 %98, 32767
  %100 = trunc i64 %99 to i32
  store i32 %100, ptr %10, align 4, !tbaa !9
  %101 = load i32, ptr %9, align 4, !tbaa !9
  %102 = zext i32 %101 to i64
  %103 = and i64 %102, 4128768
  %104 = lshr i64 %103, 16
  %105 = trunc i64 %104 to i8
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %106, i32 0, i32 0
  %108 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %107, i32 0, i32 0
  store i8 %105, ptr %108, align 4, !tbaa !20
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = and i64 %110, 32512
  %112 = lshr i64 %111, 8
  %113 = trunc i64 %112 to i8
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %114, i32 0, i32 0
  %116 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %115, i32 0, i32 1
  store i8 %113, ptr %116, align 1, !tbaa !21
  %117 = load i32, ptr %9, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = and i64 %118, 127
  %120 = lshr i64 %119, 0
  %121 = trunc i64 %120 to i8
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %123, i32 0, i32 2
  store i8 %121, ptr %124, align 2, !tbaa !22
  %125 = load i32, ptr %9, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = and i64 %126, 4194304
  %128 = lshr i64 %127, 22
  %129 = trunc i64 %128 to i8
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %130, i32 0, i32 0
  %132 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %131, i32 0, i32 3
  store i8 %129, ptr %132, align 1, !tbaa !23
  %133 = load i32, ptr %10, align 4, !tbaa !9
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %135, i32 0, i32 4
  store i32 %133, ptr %136, align 4, !tbaa !24
  %137 = load i32, ptr %9, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = and i64 %138, 1056964608
  %140 = lshr i64 %139, 24
  %141 = trunc i64 %140 to i8
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %142, i32 0, i32 4
  store i8 %141, ptr %143, align 4, !tbaa !25
  %144 = load i32, ptr %9, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = and i64 %145, 1073741824
  %147 = trunc i64 %146 to i32
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %148, i32 0, i32 3
  store i32 %147, ptr %149, align 4, !tbaa !26
  %150 = load i32, ptr %9, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = and i64 %151, 2155905152
  %153 = trunc i64 %152 to i32
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %154, i32 0, i32 1
  store i32 %153, ptr %155, align 4, !tbaa !27
  br label %156

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

159:                                              ; preds = %156
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %160, i32 0, i32 0
  %162 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %161, i32 0, i32 0
  %163 = load i8, ptr %162, align 4, !tbaa !20
  %164 = call zeroext i8 @RTC_Bcd2ToByte(i8 noundef zeroext %163)
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %165, i32 0, i32 0
  %167 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %166, i32 0, i32 0
  store i8 %164, ptr %167, align 4, !tbaa !20
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %168, i32 0, i32 0
  %170 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %169, i32 0, i32 1
  %171 = load i8, ptr %170, align 1, !tbaa !21
  %172 = call zeroext i8 @RTC_Bcd2ToByte(i8 noundef zeroext %171)
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %173, i32 0, i32 0
  %175 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %174, i32 0, i32 1
  store i8 %172, ptr %175, align 1, !tbaa !21
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %176, i32 0, i32 0
  %178 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %177, i32 0, i32 2
  %179 = load i8, ptr %178, align 2, !tbaa !22
  %180 = call zeroext i8 @RTC_Bcd2ToByte(i8 noundef zeroext %179)
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %181, i32 0, i32 0
  %183 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %182, i32 0, i32 2
  store i8 %180, ptr %183, align 2, !tbaa !22
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %184, i32 0, i32 4
  %186 = load i8, ptr %185, align 4, !tbaa !25
  %187 = call zeroext i8 @RTC_Bcd2ToByte(i8 noundef zeroext %186)
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %188, i32 0, i32 4
  store i8 %187, ptr %189, align 4, !tbaa !25
  br label %190

190:                                              ; preds = %159, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  ret i32 0
}

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 = !{!"", !13, i64 0, !10, i64 20, !10, i64 24, !10, i64 28, !7, i64 32, !10, i64 36}
!13 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!14 = !{!15, !6, i64 0}
!15 = !{!"", !6, i64 0, !16, i64 8, !10, i64 36, !10, i64 40}
!16 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!17 = !{!18, !10, i64 28}
!18 = !{!"", !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}
!19 = !{!18, !10, i64 68}
!20 = !{!12, !7, i64 0}
!21 = !{!12, !7, i64 1}
!22 = !{!12, !7, i64 2}
!23 = !{!12, !7, i64 3}
!24 = !{!12, !10, i64 4}
!25 = !{!12, !7, i64 32}
!26 = !{!12, !10, i64 28}
!27 = !{!12, !10, i64 20}
!28 = !{!18, !10, i64 32}
!29 = !{!18, !10, i64 72}


; 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 zeroext i8 @RTC_Bcd2ToByte(i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @HAL_RTC_GetAlarm(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = icmp eq i32 %2, 256
  %6 = getelementptr inbounds i8, ptr %1, i64 36
  %7 = getelementptr inbounds i8, ptr %1, i64 1
  %. = select i1 %5, i32 256, i32 512
  %.67 = select i1 %5, i64 28, i64 32
  %.68 = select i1 %5, i64 68, i64 72
  store i32 %., ptr %6, align 4, !tbaa !5
  %8 = load ptr, ptr %0, align 8, !tbaa !11
  %9 = getelementptr inbounds i8, ptr %8, i64 %.67
  %10 = load volatile i32, ptr %9, align 4, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %8, i64 %.68
  %12 = load volatile i32, ptr %11, align 4, !tbaa !15
  %13 = lshr i32 %10, 16
  %14 = trunc i32 %13 to i8
  %15 = and i8 %14, 63
  store i8 %15, ptr %1, align 4, !tbaa !16
  %16 = lshr i32 %10, 8
  %17 = trunc i32 %16 to i8
  %18 = and i8 %17, 127
  store i8 %18, ptr %7, align 1, !tbaa !17
  %.sink = and i32 %10, -2139062144
  %.sink47 = and i32 %10, 1073741824
  %.sink48.in.in = lshr i32 %10, 24
  %.sink48.in = trunc nuw i32 %.sink48.in.in to i8
  %.sink48 = and i8 %.sink48.in, 63
  %.sink49 = and i32 %12, 32767
  %.sink50.in.in = lshr i32 %10, 22
  %.sink50.in = trunc i32 %.sink50.in.in to i8
  %.sink50 = and i8 %.sink50.in, 1
  %.sink51.in = trunc i32 %10 to i8
  %.sink51 = and i8 %.sink51.in, 127
  %19 = getelementptr inbounds i8, ptr %1, i64 2
  store i8 %.sink51, ptr %19, align 2
  %20 = getelementptr inbounds i8, ptr %1, i64 3
  store i8 %.sink50, ptr %20, align 1
  %21 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %.sink49, ptr %21, align 4
  %22 = getelementptr inbounds i8, ptr %1, i64 32
  store i8 %.sink48, ptr %22, align 4
  %23 = getelementptr inbounds i8, ptr %1, i64 28
  store i32 %.sink47, ptr %23, align 4
  %24 = getelementptr inbounds i8, ptr %1, i64 20
  store i32 %.sink, ptr %24, align 4
  %25 = icmp eq i32 %3, 0
  br i1 %25, label %26, label %35

26:                                               ; preds = %4
  %27 = tail call zeroext i8 @RTC_Bcd2ToByte(i8 noundef zeroext %15)
  store i8 %27, ptr %1, align 4, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %1, i64 1
  %29 = load i8, ptr %28, align 1, !tbaa !17
  %30 = tail call zeroext i8 @RTC_Bcd2ToByte(i8 noundef zeroext %29)
  store i8 %30, ptr %28, align 1, !tbaa !17
  %31 = load i8, ptr %19, align 2, !tbaa !18
  %32 = tail call zeroext i8 @RTC_Bcd2ToByte(i8 noundef zeroext %31)
  store i8 %32, ptr %19, align 2, !tbaa !18
  %33 = load i8, ptr %22, align 4, !tbaa !19
  %34 = tail call zeroext i8 @RTC_Bcd2ToByte(i8 noundef zeroext %33)
  store i8 %34, ptr %22, align 4, !tbaa !19
  br label %35

35:                                               ; preds = %26, %4
  ret i32 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, !10, i64 36}
!6 = !{!"", !7, i64 0, !10, i64 20, !10, i64 24, !10, i64 28, !8, i64 32, !10, i64 36}
!7 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"", !13, i64 0, !14, i64 8, !10, i64 36, !10, i64 40}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24}
!15 = !{!10, !10, i64 0}
!16 = !{!6, !8, i64 0}
!17 = !{!6, !8, i64 1}
!18 = !{!6, !8, i64 2}
!19 = !{!6, !8, i64 32}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass