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

; 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.HASH_HandleTypeDef = type { %struct.HASH_InitTypeDef, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32 }
%struct.HASH_InitTypeDef = type { i32, i32, ptr }
%struct.HASH_TypeDef = type { i32, i32, i32, [5 x i32], i32, i32, [52 x i32], [54 x i32] }
%struct.__DMA_HandleTypeDef = type { ptr, %struct.DMA_InitTypeDef, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i32, ptr, ptr, i32 }
%struct.DMA_InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local i32 @HASH_Start_DMA(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %15, i32 0, i32 13
  %17 = load volatile i32, ptr %16, align 4, !tbaa !11
  store i32 %17, ptr %13, align 4, !tbaa !9
  %18 = load i32, ptr %13, align 4, !tbaa !9
  %19 = icmp eq i32 %18, 1
  br i1 %19, label %23, label %20

20:                                               ; preds = %4
  %21 = load i32, ptr %13, align 4, !tbaa !9
  %22 = icmp eq i32 %21, 8
  br i1 %22, label %23, label %161

23:                                               ; preds = %20, %4
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = icmp eq ptr %24, null
  br i1 %25, label %39, label %26

26:                                               ; preds = %23
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %39, label %29

29:                                               ; preds = %26
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %30, i32 0, i32 10
  %32 = load i32, ptr %31, align 4, !tbaa !14
  %33 = icmp ne i32 %32, 1
  br i1 %33, label %34, label %42

34:                                               ; preds = %29
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %35, i32 0, i32 10
  %37 = load i32, ptr %36, align 4, !tbaa !14
  %38 = icmp eq i32 %37, 2
  br i1 %38, label %42, label %39

39:                                               ; preds = %34, %26, %23
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %40, i32 0, i32 13
  store volatile i32 1, ptr %41, align 4, !tbaa !11
  store i32 1, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %162

42:                                               ; preds = %34, %29
  br label %43

43:                                               ; preds = %42
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %44, i32 0, i32 12
  %46 = load i32, ptr %45, align 8, !tbaa !15
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %48, label %49

48:                                               ; preds = %43
  store i32 2, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %162

49:                                               ; preds = %43
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %50, i32 0, i32 12
  store i32 1, ptr %51, align 8, !tbaa !15
  br label %52

52:                                               ; preds = %49
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %55, i32 0, i32 13
  %57 = load volatile i32, ptr %56, align 4, !tbaa !11
  %58 = icmp eq i32 %57, 1
  br i1 %58, label %59, label %96

59:                                               ; preds = %54
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %60, i32 0, i32 13
  store volatile i32 2, ptr %61, align 4, !tbaa !11
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %62, i32 0, i32 10
  %64 = load i32, ptr %63, align 4, !tbaa !14
  %65 = icmp eq i32 %64, 1
  br i1 %65, label %66, label %77

66:                                               ; preds = %59
  %67 = load volatile i32, ptr inttoptr (i64 1208095744 to ptr), align 4, !tbaa !16
  %68 = zext i32 %67 to i64
  %69 = and i64 %68, -327877
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = or i64 %71, 4
  %73 = or i64 %69, %72
  %74 = trunc i64 %73 to i32
  store volatile i32 %74, ptr inttoptr (i64 1208095744 to ptr), align 4, !tbaa !16
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %75, i32 0, i32 10
  store i32 2, ptr %76, align 4, !tbaa !14
  br label %77

77:                                               ; preds = %66, %59
  %78 = load volatile i32, ptr getelementptr inbounds (%struct.HASH_TypeDef, ptr inttoptr (i64 1208095744 to ptr), i32 0, i32 2), align 4, !tbaa !18
  %79 = zext i32 %78 to i64
  %80 = and i64 %79, -32
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = urem i32 %81, 4
  %83 = mul i32 8, %82
  %84 = zext i32 %83 to i64
  %85 = or i64 %80, %84
  %86 = trunc i64 %85 to i32
  store volatile i32 %86, ptr getelementptr inbounds (%struct.HASH_TypeDef, ptr inttoptr (i64 1208095744 to ptr), i32 0, i32 2), align 4, !tbaa !18
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = ptrtoint ptr %87 to i32
  store i32 %88, ptr %10, align 4, !tbaa !9
  %89 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %89, ptr %11, align 4, !tbaa !9
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %91, i32 0, i32 1
  store ptr %90, ptr %92, align 8, !tbaa !19
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %94, i32 0, i32 6
  store volatile i32 %93, ptr %95, align 4, !tbaa !20
  br label %106

96:                                               ; preds = %54
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %97, i32 0, i32 13
  store volatile i32 2, ptr %98, align 4, !tbaa !11
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %99, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !19
  %102 = ptrtoint ptr %101 to i32
  store i32 %102, ptr %10, align 4, !tbaa !9
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %103, i32 0, i32 6
  %105 = load volatile i32, ptr %104, align 4, !tbaa !20
  store i32 %105, ptr %11, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %96, %77
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %107, i32 0, i32 11
  %109 = load ptr, ptr %108, align 8, !tbaa !21
  %110 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %109, i32 0, i32 5
  store ptr @HASH_DMAXferCplt, ptr %110, align 8, !tbaa !22
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %111, i32 0, i32 11
  %113 = load ptr, ptr %112, align 8, !tbaa !21
  %114 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %113, i32 0, i32 9
  store ptr @HASH_DMAError, ptr %114, align 8, !tbaa !25
  %115 = load volatile i32, ptr inttoptr (i64 1208095744 to ptr), align 4, !tbaa !16
  %116 = zext i32 %115 to i64
  %117 = and i64 %116, 3840
  %118 = lshr i64 %117, 8
  %119 = trunc i64 %118 to i32
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %120, i32 0, i32 16
  store volatile i32 %119, ptr %121, align 8, !tbaa !26
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %122, i32 0, i32 11
  %124 = load ptr, ptr %123, align 8, !tbaa !21
  %125 = load i32, ptr %10, align 4, !tbaa !9
  %126 = load i32, ptr %11, align 4, !tbaa !9
  %127 = urem i32 %126, 4
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %136

129:                                              ; preds = %106
  %130 = load i32, ptr %11, align 4, !tbaa !9
  %131 = load i32, ptr %11, align 4, !tbaa !9
  %132 = urem i32 %131, 4
  %133 = sub i32 4, %132
  %134 = add i32 %130, %133
  %135 = udiv i32 %134, 4
  br label %139

136:                                              ; preds = %106
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = udiv i32 %137, 4
  br label %139

139:                                              ; preds = %136, %129
  %140 = phi i32 [ %135, %129 ], [ %138, %136 ]
  %141 = call i32 @HAL_DMA_Start_IT(ptr noundef %124, i32 noundef %125, i32 noundef ptrtoint (ptr getelementptr inbounds (%struct.HASH_TypeDef, ptr inttoptr (i64 1208095744 to ptr), i32 0, i32 1) to i32), i32 noundef %140)
  store i32 %141, ptr %12, align 4, !tbaa !9
  %142 = load volatile i32, ptr inttoptr (i64 1208095744 to ptr), align 4, !tbaa !16
  %143 = zext i32 %142 to i64
  %144 = or i64 %143, 8
  %145 = trunc i64 %144 to i32
  store volatile i32 %145, ptr inttoptr (i64 1208095744 to ptr), align 4, !tbaa !16
  br label %146

146:                                              ; preds = %139
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %147, i32 0, i32 12
  store i32 0, ptr %148, align 8, !tbaa !15
  br label %149

149:                                              ; preds = %146
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %12, align 4, !tbaa !9
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %156

153:                                              ; preds = %150
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %154, i32 0, i32 13
  store volatile i32 7, ptr %155, align 4, !tbaa !11
  br label %159

156:                                              ; preds = %150
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.HASH_HandleTypeDef, ptr %157, i32 0, i32 13
  store volatile i32 1, ptr %158, align 4, !tbaa !11
  br label %159

159:                                              ; preds = %156, %153
  %160 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %160, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %162

161:                                              ; preds = %20
  store i32 2, ptr %5, align 4
  store i32 1, ptr %14, align 4
  br label %162

162:                                              ; preds = %161, %159, %48, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %163 = load i32, ptr %5, align 4
  ret i32 %163
}

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

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

; Function Attrs: nounwind uwtable
declare hidden void @HASH_DMAXferCplt(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @HASH_DMAError(ptr noundef) #0

declare i32 @HAL_DMA_Start_IT(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

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" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 84}
!12 = !{!"", !13, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !6, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100}
!13 = !{!"", !10, i64 0, !10, i64 4, !6, i64 8}
!14 = !{!12, !10, i64 68}
!15 = !{!12, !10, i64 80}
!16 = !{!17, !10, i64 0}
!17 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !10, i64 32, !10, i64 36, !7, i64 40, !7, i64 248}
!18 = !{!17, !10, i64 8}
!19 = !{!12, !6, i64 16}
!20 = !{!12, !10, i64 52}
!21 = !{!12, !6, i64 72}
!22 = !{!23, !6, i64 72}
!23 = !{!"__DMA_HandleTypeDef", !6, i64 0, !24, i64 8, !10, i64 56, !10, i64 60, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !10, i64 120, !10, i64 124, !10, i64 128, !6, i64 136, !6, i64 144, !10, i64 152, !6, i64 160, !6, i64 168, !10, i64 176}
!24 = !{!"", !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}
!25 = !{!23, !6, i64 104}
!26 = !{!12, !10, i64 96}


; 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
define dso_local i32 @HASH_Start_DMA(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %0, i64 84
  %6 = load volatile i32, ptr %5, align 4, !tbaa !5
  switch i32 %6, label %55 [
    i32 8, label %7
    i32 1, label %7
  ]

7:                                                ; preds = %4, %4
  %8 = icmp eq ptr %1, null
  %9 = icmp eq i32 %2, 0
  %or.cond3 = or i1 %8, %9
  br i1 %or.cond3, label %.sink.split, label %10

10:                                               ; preds = %7
  %11 = getelementptr inbounds i8, ptr %0, i64 68
  %12 = load i32, ptr %11, align 4, !tbaa !12
  %.off = add i32 %12, -1
  %switch = icmp ult i32 %.off, 2
  br i1 %switch, label %13, label %.sink.split

13:                                               ; preds = %10
  %14 = getelementptr inbounds i8, ptr %0, i64 80
  %15 = load i32, ptr %14, align 8, !tbaa !13
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %55, label %17

17:                                               ; preds = %13
  store i32 1, ptr %14, align 8, !tbaa !13
  %18 = load volatile i32, ptr %5, align 4, !tbaa !5
  %19 = icmp eq i32 %18, 1
  store volatile i32 2, ptr %5, align 4, !tbaa !5
  br i1 %19, label %20, label %35

20:                                               ; preds = %17
  %21 = icmp eq i32 %12, 1
  br i1 %21, label %22, label %27

22:                                               ; preds = %20
  %23 = load volatile i32, ptr inttoptr (i64 1208095744 to ptr), align 1024, !tbaa !14
  %24 = and i32 %23, -327877
  %25 = or i32 %24, %3
  %26 = or i32 %25, 4
  store volatile i32 %26, ptr inttoptr (i64 1208095744 to ptr), align 1024, !tbaa !14
  store i32 2, ptr %11, align 4, !tbaa !12
  br label %27

27:                                               ; preds = %22, %20
  %28 = load volatile i32, ptr inttoptr (i64 1208095752 to ptr), align 8, !tbaa !16
  %29 = and i32 %28, -32
  %30 = shl i32 %2, 3
  %31 = and i32 %30, 24
  %32 = or disjoint i32 %29, %31
  store volatile i32 %32, ptr inttoptr (i64 1208095752 to ptr), align 8, !tbaa !16
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %1, ptr %33, align 8, !tbaa !17
  %34 = getelementptr inbounds i8, ptr %0, i64 52
  store volatile i32 %2, ptr %34, align 4, !tbaa !18
  br label %40

35:                                               ; preds = %17
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  %37 = load ptr, ptr %36, align 8, !tbaa !17
  %38 = getelementptr inbounds i8, ptr %0, i64 52
  %39 = load volatile i32, ptr %38, align 4, !tbaa !18
  br label %40

40:                                               ; preds = %35, %27
  %.043 = phi i32 [ %2, %27 ], [ %39, %35 ]
  %.042.in.in = phi ptr [ %1, %27 ], [ %37, %35 ]
  %.042.in = ptrtoint ptr %.042.in.in to i64
  %.042 = trunc i64 %.042.in to i32
  %41 = getelementptr inbounds i8, ptr %0, i64 72
  %42 = load ptr, ptr %41, align 8, !tbaa !19
  %43 = getelementptr inbounds i8, ptr %42, i64 72
  store ptr @HASH_DMAXferCplt, ptr %43, align 8, !tbaa !20
  %44 = getelementptr inbounds i8, ptr %42, i64 104
  store ptr @HASH_DMAError, ptr %44, align 8, !tbaa !23
  %45 = load volatile i32, ptr inttoptr (i64 1208095744 to ptr), align 1024, !tbaa !14
  %46 = lshr i32 %45, 8
  %47 = and i32 %46, 15
  %48 = getelementptr inbounds i8, ptr %0, i64 96
  store volatile i32 %47, ptr %48, align 8, !tbaa !24
  %49 = and i32 %.043, 3
  %.not48 = icmp eq i32 %49, 0
  %50 = add i32 %.043, 4
  %.in = select i1 %.not48, i32 %.043, i32 %50
  %51 = lshr i32 %.in, 2
  %52 = tail call i32 @HAL_DMA_Start_IT(ptr noundef %42, i32 noundef %.042, i32 noundef 1208095748, i32 noundef %51) #2
  %53 = load volatile i32, ptr inttoptr (i64 1208095744 to ptr), align 1024, !tbaa !14
  %54 = or i32 %53, 8
  store volatile i32 %54, ptr inttoptr (i64 1208095744 to ptr), align 1024, !tbaa !14
  store i32 0, ptr %14, align 8, !tbaa !13
  %.not49 = icmp eq i32 %52, 0
  %. = select i1 %.not49, i32 1, i32 7
  br label %.sink.split

.sink.split:                                      ; preds = %40, %7, %10
  %.sink = phi i32 [ 1, %10 ], [ 1, %7 ], [ %., %40 ]
  %.0.ph = phi i32 [ 1, %10 ], [ 1, %7 ], [ %52, %40 ]
  store volatile i32 %.sink, ptr %5, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %.sink.split, %4, %13
  %.0 = phi i32 [ 2, %13 ], [ 2, %4 ], [ %.0.ph, %.sink.split ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden void @HASH_DMAXferCplt(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @HASH_DMAError(ptr noundef) #0

declare i32 @HAL_DMA_Start_IT(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

!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, !8, i64 84}
!6 = !{!"", !7, i64 0, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !8, i64 48, !8, i64 52, !8, i64 56, !8, i64 60, !8, i64 64, !8, i64 68, !11, i64 72, !8, i64 80, !8, i64 84, !8, i64 88, !8, i64 92, !8, i64 96, !8, i64 100}
!7 = !{!"", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!6, !8, i64 68}
!13 = !{!6, !8, i64 80}
!14 = !{!15, !8, i64 0}
!15 = !{!"", !8, i64 0, !8, i64 4, !8, i64 8, !9, i64 12, !8, i64 32, !8, i64 36, !9, i64 40, !9, i64 248}
!16 = !{!15, !8, i64 8}
!17 = !{!6, !11, i64 16}
!18 = !{!6, !8, i64 52}
!19 = !{!6, !11, i64 72}
!20 = !{!21, !11, i64 72}
!21 = !{!"__DMA_HandleTypeDef", !11, i64 0, !22, i64 8, !8, i64 56, !8, i64 60, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !8, i64 120, !8, i64 124, !8, i64 128, !11, i64 136, !11, i64 144, !8, i64 152, !11, i64 160, !11, i64 168, !8, i64 176}
!22 = !{!"", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !8, i64 32, !8, i64 36, !8, i64 40, !8, i64 44}
!23 = !{!21, !11, i64 104}
!24 = !{!6, !8, i64 96}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass