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

; 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 %84

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 = trunc i64 %48 to i8
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %50, i32 0, i32 0
  %52 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %51, i32 0, i32 2
  store i8 %49, ptr %52, align 2, !tbaa !22
  %53 = load i32, ptr %9, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = and i64 %54, 4194304
  %56 = lshr i64 %55, 22
  %57 = trunc i64 %56 to i8
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %58, i32 0, i32 0
  %60 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %59, i32 0, i32 3
  store i8 %57, ptr %60, align 1, !tbaa !23
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %62, i32 0, i32 0
  %64 = getelementptr inbounds %struct.RTC_TimeTypeDef, ptr %63, i32 0, i32 4
  store i32 %61, ptr %64, align 4, !tbaa !24
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = and i64 %66, 1056964608
  %68 = lshr i64 %67, 24
  %69 = trunc i64 %68 to i8
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %70, i32 0, i32 4
  store i8 %69, ptr %71, align 4, !tbaa !25
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = and i64 %73, 1073741824
  %75 = trunc i64 %74 to i32
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %76, i32 0, i32 3
  store i32 %75, ptr %77, align 4, !tbaa !26
  %78 = load i32, ptr %9, align 4, !tbaa !9
  %79 = zext i32 %78 to i64
  %80 = and i64 %79, 2155905152
  %81 = trunc i64 %80 to i32
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.RTC_AlarmTypeDef, ptr %82, i32 0, i32 1
  store i32 %81, ptr %83, align 4, !tbaa !27
  br label %154

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

154:                                              ; preds = %84, %14
  %155 = load i32, ptr %8, align 4, !tbaa !9
  %156 = icmp eq i32 %155, 0
  br i1 %156, label %157, label %188

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

188:                                              ; preds = %157, %154
  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