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

; 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.HRTIM_OutputCfgTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.HRTIM_HandleTypeDef = type { ptr, %struct.HRTIM_InitTypeDef, [6 x %struct.HRTIM_TimerParamTypeDef], i32, i32, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.HRTIM_InitTypeDef = type { i32, i32, i32, i32, i32 }
%struct.HRTIM_TimerParamTypeDef = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.HRTIM_SimpleOCChannelCfgTypeDef = type { i32, i32, i32, i32 }
%struct.HRTIM_TypeDef = type { %struct.HRTIM_Master_TypeDef, [5 x %struct.HRTIM_Timerx_TypeDef], [32 x i32], %struct.HRTIM_Common_TypeDef }
%struct.HRTIM_Master_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [20 x i32] }
%struct.HRTIM_Timerx_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, [5 x i32] }
%struct.HRTIM_Common_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 }

; 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
define dso_local i32 @HAL_HRTIM_SimpleOCChannelConfig(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #1 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.HRTIM_OutputCfgTypeDef, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #3
  call void @llvm.memset.p0.i64(ptr align 4 %11, i8 0, i64 32, i1 false)
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %13, i32 0, i32 4
  %15 = load volatile i32, ptr %14, align 8, !tbaa !11
  %16 = icmp eq i32 %15, 2
  br i1 %16, label %17, label %18

17:                                               ; preds = %4
  store i32 2, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %131

18:                                               ; preds = %4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %19, i32 0, i32 4
  store volatile i32 2, ptr %20, align 8, !tbaa !11
  %21 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %21, label %46 [
    i32 1, label %22
    i32 4, label %22
    i32 16, label %22
    i32 64, label %22
    i32 256, label %22
    i32 2, label %34
    i32 8, label %34
    i32 32, label %34
    i32 128, label %34
    i32 512, label %34
  ]

22:                                               ; preds = %18, %18, %18, %18, %18
  store i32 1, ptr %10, align 4, !tbaa !9
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.HRTIM_SimpleOCChannelCfgTypeDef, ptr %23, i32 0, i32 1
  %25 = load i32, ptr %24, align 4, !tbaa !14
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %26, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !16
  %29 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [5 x %struct.HRTIM_Timerx_TypeDef], ptr %29, i64 0, i64 %31
  %33 = getelementptr inbounds %struct.HRTIM_Timerx_TypeDef, ptr %32, i32 0, i32 7
  store volatile i32 %25, ptr %33, align 4, !tbaa !17
  br label %54

34:                                               ; preds = %18, %18, %18, %18, %18
  store i32 2, ptr %10, align 4, !tbaa !9
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.HRTIM_SimpleOCChannelCfgTypeDef, ptr %35, i32 0, i32 1
  %37 = load i32, ptr %36, align 4, !tbaa !14
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !16
  %41 = getelementptr inbounds %struct.HRTIM_TypeDef, ptr %40, i32 0, i32 1
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds [5 x %struct.HRTIM_Timerx_TypeDef], ptr %41, i64 0, i64 %43
  %45 = getelementptr inbounds %struct.HRTIM_Timerx_TypeDef, ptr %44, i32 0, i32 9
  store volatile i32 %37, ptr %45, align 4, !tbaa !19
  br label %54

46:                                               ; preds = %18
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %47, i32 0, i32 4
  store volatile i32 7, ptr %48, align 8, !tbaa !11
  br label %49

49:                                               ; preds = %46
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %50, i32 0, i32 3
  store i32 0, ptr %51, align 4, !tbaa !20
  br label %52

52:                                               ; preds = %49
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53, %34, %22
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %55, i32 0, i32 4
  %57 = load volatile i32, ptr %56, align 8, !tbaa !11
  %58 = icmp eq i32 %57, 7
  br i1 %58, label %59, label %60

59:                                               ; preds = %54
  store i32 1, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %131

60:                                               ; preds = %54
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.HRTIM_SimpleOCChannelCfgTypeDef, ptr %61, i32 0, i32 2
  %63 = load i32, ptr %62, align 4, !tbaa !21
  %64 = zext i32 %63 to i64
  %65 = and i64 %64, 2
  %66 = trunc i64 %65 to i32
  %67 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 0
  store i32 %66, ptr %67, align 4, !tbaa !22
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.HRTIM_SimpleOCChannelCfgTypeDef, ptr %68, i32 0, i32 3
  %70 = load i32, ptr %69, align 4, !tbaa !24
  %71 = zext i32 %70 to i64
  %72 = and i64 %71, 8
  %73 = trunc i64 %72 to i32
  %74 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 4
  store i32 %73, ptr %74, align 4, !tbaa !25
  %75 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 5
  store i32 0, ptr %75, align 4, !tbaa !26
  %76 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 3
  store i32 0, ptr %76, align 4, !tbaa !27
  %77 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 6
  store i32 0, ptr %77, align 4, !tbaa !28
  %78 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 7
  store i32 0, ptr %78, align 4, !tbaa !29
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.HRTIM_SimpleOCChannelCfgTypeDef, ptr %79, i32 0, i32 0
  %81 = load i32, ptr %80, align 4, !tbaa !30
  switch i32 %81, label %111 [
    i32 1, label %82
    i32 3, label %93
    i32 2, label %102
  ]

82:                                               ; preds = %60
  %83 = load i32, ptr %10, align 4, !tbaa !9
  %84 = icmp eq i32 %83, 1
  br i1 %84, label %85, label %87

85:                                               ; preds = %82
  %86 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 1
  store i32 8, ptr %86, align 4, !tbaa !31
  br label %89

87:                                               ; preds = %82
  %88 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 1
  store i32 16, ptr %88, align 4, !tbaa !31
  br label %89

89:                                               ; preds = %87, %85
  %90 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 1
  %91 = load i32, ptr %90, align 4, !tbaa !31
  %92 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 2
  store i32 %91, ptr %92, align 4, !tbaa !32
  br label %119

93:                                               ; preds = %60
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %98

96:                                               ; preds = %93
  %97 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 1
  store i32 8, ptr %97, align 4, !tbaa !31
  br label %100

98:                                               ; preds = %93
  %99 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 1
  store i32 16, ptr %99, align 4, !tbaa !31
  br label %100

100:                                              ; preds = %98, %96
  %101 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 2
  store i32 0, ptr %101, align 4, !tbaa !32
  br label %119

102:                                              ; preds = %60
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = icmp eq i32 %103, 1
  br i1 %104, label %105, label %107

105:                                              ; preds = %102
  %106 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 2
  store i32 8, ptr %106, align 4, !tbaa !32
  br label %109

107:                                              ; preds = %102
  %108 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 2
  store i32 16, ptr %108, align 4, !tbaa !32
  br label %109

109:                                              ; preds = %107, %105
  %110 = getelementptr inbounds %struct.HRTIM_OutputCfgTypeDef, ptr %11, i32 0, i32 1
  store i32 0, ptr %110, align 4, !tbaa !31
  br label %119

111:                                              ; preds = %60
  %112 = load ptr, ptr %6, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %112, i32 0, i32 4
  store volatile i32 7, ptr %113, align 8, !tbaa !11
  br label %114

114:                                              ; preds = %111
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %115, i32 0, i32 3
  store i32 0, ptr %116, align 4, !tbaa !20
  br label %117

117:                                              ; preds = %114
  br label %118

118:                                              ; preds = %117
  br label %119

119:                                              ; preds = %118, %109, %100, %89
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %120, i32 0, i32 4
  %122 = load volatile i32, ptr %121, align 8, !tbaa !11
  %123 = icmp eq i32 %122, 7
  br i1 %123, label %124, label %125

124:                                              ; preds = %119
  store i32 1, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %131

125:                                              ; preds = %119
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = load i32, ptr %7, align 4, !tbaa !9
  %128 = load i32, ptr %8, align 4, !tbaa !9
  call void @HRTIM_OutputConfig(ptr noundef %126, i32 noundef %127, i32 noundef %128, ptr noundef %11)
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.HRTIM_HandleTypeDef, ptr %129, i32 0, i32 4
  store volatile i32 1, ptr %130, align 8, !tbaa !11
  store i32 0, ptr %5, align 4
  store i32 1, ptr %12, align 4
  br label %131

131:                                              ; preds = %125, %124, %59, %17
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %132 = load i32, ptr %5, align 4
  ret i32 %132
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare hidden void @HRTIM_OutputConfig(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 200}
!12 = !{!"", !6, i64 0, !13, i64 8, !7, i64 28, !10, i64 196, !10, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!14 = !{!15, !10, i64 4}
!15 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!16 = !{!12, !6, i64 0}
!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, !7, i64 108}
!19 = !{!18, !10, i64 36}
!20 = !{!12, !10, i64 196}
!21 = !{!15, !10, i64 8}
!22 = !{!23, !10, i64 0}
!23 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!24 = !{!15, !10, i64 12}
!25 = !{!23, !10, i64 16}
!26 = !{!23, !10, i64 20}
!27 = !{!23, !10, i64 12}
!28 = !{!23, !10, i64 24}
!29 = !{!23, !10, i64 28}
!30 = !{!15, !10, i64 0}
!31 = !{!23, !10, i64 4}
!32 = !{!23, !10, i64 8}


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

%struct.HRTIM_OutputCfgTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.HRTIM_Timerx_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, [5 x i32] }

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

; Function Attrs: mustprogress 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 range(i32 0, 3) i32 @HAL_HRTIM_SimpleOCChannelConfig(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #1 {
  %5 = alloca %struct.HRTIM_OutputCfgTypeDef, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #2
  %6 = getelementptr inbounds i8, ptr %5, i64 4
  store i64 0, ptr %6, align 4
  %7 = getelementptr inbounds i8, ptr %0, i64 200
  %8 = load volatile i32, ptr %7, align 8, !tbaa !5
  %9 = icmp eq i32 %8, 2
  br i1 %9, label %58, label %10

10:                                               ; preds = %4
  store volatile i32 2, ptr %7, align 8, !tbaa !5
  switch i32 %2, label %25 [
    i32 1, label %11
    i32 4, label %11
    i32 16, label %11
    i32 64, label %11
    i32 256, label %11
    i32 2, label %18
    i32 8, label %18
    i32 32, label %18
    i32 128, label %18
    i32 512, label %18
  ]

11:                                               ; preds = %10, %10, %10, %10, %10
  %12 = getelementptr inbounds i8, ptr %3, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !12
  %14 = load ptr, ptr %0, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %14, i64 128
  %16 = zext i32 %1 to i64
  %17 = getelementptr inbounds [5 x %struct.HRTIM_Timerx_TypeDef], ptr %15, i64 0, i64 %16, i32 7
  store volatile i32 %13, ptr %17, align 4, !tbaa !15
  br label %27

18:                                               ; preds = %10, %10, %10, %10, %10
  %19 = getelementptr inbounds i8, ptr %3, i64 4
  %20 = load i32, ptr %19, align 4, !tbaa !12
  %21 = load ptr, ptr %0, align 8, !tbaa !14
  %22 = getelementptr inbounds i8, ptr %21, i64 128
  %23 = zext i32 %1 to i64
  %24 = getelementptr inbounds [5 x %struct.HRTIM_Timerx_TypeDef], ptr %22, i64 0, i64 %23, i32 9
  store volatile i32 %20, ptr %24, align 4, !tbaa !17
  br label %27

25:                                               ; preds = %10
  store volatile i32 7, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %0, i64 196
  store i32 0, ptr %26, align 4, !tbaa !18
  br label %27

27:                                               ; preds = %25, %18, %11
  %spec.select28 = phi i32 [ 16, %25 ], [ 16, %18 ], [ 8, %11 ]
  %28 = load volatile i32, ptr %7, align 8, !tbaa !5
  %29 = icmp eq i32 %28, 7
  br i1 %29, label %58, label %30

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %3, i64 8
  %32 = load i32, ptr %31, align 4, !tbaa !19
  %33 = and i32 %32, 2
  store i32 %33, ptr %5, align 4, !tbaa !20
  %34 = getelementptr inbounds i8, ptr %3, i64 12
  %35 = load i32, ptr %34, align 4, !tbaa !22
  %36 = and i32 %35, 8
  %37 = getelementptr inbounds i8, ptr %5, i64 16
  store i32 %36, ptr %37, align 4, !tbaa !23
  %38 = getelementptr inbounds i8, ptr %5, i64 20
  store i32 0, ptr %38, align 4, !tbaa !24
  %39 = getelementptr inbounds i8, ptr %5, i64 12
  store i32 0, ptr %39, align 4, !tbaa !25
  %40 = getelementptr inbounds i8, ptr %5, i64 24
  store i32 0, ptr %40, align 4, !tbaa !26
  %41 = getelementptr inbounds i8, ptr %5, i64 28
  store i32 0, ptr %41, align 4, !tbaa !27
  %42 = load i32, ptr %3, align 4, !tbaa !28
  switch i32 %42, label %52 [
    i32 1, label %43
    i32 3, label %46
    i32 2, label %49
  ]

43:                                               ; preds = %30
  %44 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 %spec.select28, ptr %44, align 4
  %45 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %spec.select28, ptr %45, align 4, !tbaa !29
  br label %54

46:                                               ; preds = %30
  %47 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 %spec.select28, ptr %47, align 4
  %48 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 0, ptr %48, align 4, !tbaa !29
  br label %54

49:                                               ; preds = %30
  %50 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %spec.select28, ptr %50, align 4
  %51 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 0, ptr %51, align 4, !tbaa !30
  br label %54

52:                                               ; preds = %30
  store volatile i32 7, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %0, i64 196
  store i32 0, ptr %53, align 4, !tbaa !18
  br label %54

54:                                               ; preds = %52, %49, %46, %43
  %55 = load volatile i32, ptr %7, align 8, !tbaa !5
  %56 = icmp eq i32 %55, 7
  br i1 %56, label %58, label %57

57:                                               ; preds = %54
  call void @HRTIM_OutputConfig(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, ptr noundef nonnull %5)
  store volatile i32 1, ptr %7, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %54, %27, %4, %57
  %.025 = phi i32 [ 0, %57 ], [ 2, %4 ], [ 1, %27 ], [ 1, %54 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #2
  ret i32 %.025
}

; Function Attrs: nounwind uwtable
declare hidden void @HRTIM_OutputConfig(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress 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, !11, i64 200}
!6 = !{!"", !7, i64 0, !10, i64 8, !8, i64 28, !11, i64 196, !11, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248}
!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 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 4}
!13 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !11, i64 28}
!16 = !{!"", !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, !8, i64 108}
!17 = !{!16, !11, i64 36}
!18 = !{!6, !11, i64 196}
!19 = !{!13, !11, i64 8}
!20 = !{!21, !11, i64 0}
!21 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!22 = !{!13, !11, i64 12}
!23 = !{!21, !11, i64 16}
!24 = !{!21, !11, i64 20}
!25 = !{!21, !11, i64 12}
!26 = !{!21, !11, i64 24}
!27 = !{!21, !11, i64 28}
!28 = !{!13, !11, i64 0}
!29 = !{!21, !11, i64 8}
!30 = !{!21, !11, i64 4}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass