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

; 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.JPEG_HandleTypeDef = type { ptr, %struct.JPEG_ConfTypeDef, ptr, ptr, i32, i32, i32, i32, ptr, ptr, i8, ptr, ptr, ptr, ptr, i32, i32, i32, i32 }
%struct.JPEG_ConfTypeDef = type { i32, i32, i32, i32, i32 }
%struct.__MDMA_HandleTypeDef = type { ptr, %struct.MDMA_InitTypeDef, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32 }
%struct.MDMA_InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.JPEG_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], i32, i32, i32, i32, i32, i32, [2 x i32], [16 x i32], [16 x i32], [16 x i32], [16 x i32], [16 x i32], [32 x i32], [84 x i32], [103 x i32], i32, [88 x i32], [88 x i32], [8 x i32], [8 x 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

declare i32 @HAL_GetTick() #1

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

17:                                               ; preds = %1
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %18, i32 0, i32 9
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %21 = call i32 @HAL_MDMA_Abort(ptr noundef %20)
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %23, label %36

23:                                               ; preds = %17
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %24, i32 0, i32 9
  %26 = load ptr, ptr %25, align 8, !tbaa !14
  %27 = getelementptr inbounds %struct.__MDMA_HandleTypeDef, ptr %26, i32 0, i32 14
  %28 = load volatile i32, ptr %27, align 4, !tbaa !15
  %29 = icmp eq i32 %28, 64
  br i1 %29, label %30, label %35

30:                                               ; preds = %23
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %31, i32 0, i32 17
  %33 = load volatile i32, ptr %32, align 8, !tbaa !18
  %34 = or i32 %33, 4
  store volatile i32 %34, ptr %32, align 8, !tbaa !18
  br label %35

35:                                               ; preds = %30, %23
  br label %36

36:                                               ; preds = %35, %17
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %37, i32 0, i32 8
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  %40 = call i32 @HAL_MDMA_Abort(ptr noundef %39)
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %55

42:                                               ; preds = %36
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %43, i32 0, i32 8
  %45 = load ptr, ptr %44, align 8, !tbaa !19
  %46 = getelementptr inbounds %struct.__MDMA_HandleTypeDef, ptr %45, i32 0, i32 14
  %47 = load volatile i32, ptr %46, align 4, !tbaa !15
  %48 = icmp eq i32 %47, 64
  br i1 %48, label %49, label %54

49:                                               ; preds = %42
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %50, i32 0, i32 17
  %52 = load volatile i32, ptr %51, align 8, !tbaa !18
  %53 = or i32 %52, 4
  store volatile i32 %53, ptr %51, align 8, !tbaa !18
  br label %54

54:                                               ; preds = %49, %42
  br label %55

55:                                               ; preds = %54, %36
  br label %56

56:                                               ; preds = %55, %1
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !20
  %60 = getelementptr inbounds %struct.JPEG_TypeDef, ptr %59, i32 0, i32 0
  %61 = load volatile i32, ptr %60, align 4, !tbaa !21
  %62 = zext i32 %61 to i64
  %63 = and i64 %62, -2
  %64 = trunc i64 %63 to i32
  store volatile i32 %64, ptr %60, align 4, !tbaa !21
  %65 = call i32 @HAL_GetTick()
  store i32 %65, ptr %4, align 4, !tbaa !13
  br label %66

66:                                               ; preds = %87, %56
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %67, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !20
  %70 = getelementptr inbounds %struct.JPEG_TypeDef, ptr %69, i32 0, i32 10
  %71 = load volatile i32, ptr %70, align 4, !tbaa !23
  %72 = and i32 %71, 128
  %73 = zext i32 %72 to i64
  %74 = icmp ne i64 %73, 0
  br i1 %74, label %75, label %88

75:                                               ; preds = %66
  %76 = call i32 @HAL_GetTick()
  %77 = load i32, ptr %4, align 4, !tbaa !13
  %78 = sub i32 %76, %77
  %79 = icmp ugt i32 %78, 1000
  br i1 %79, label %80, label %87

80:                                               ; preds = %75
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %81, i32 0, i32 17
  %83 = load volatile i32, ptr %82, align 8, !tbaa !18
  %84 = or i32 %83, 8
  store volatile i32 %84, ptr %82, align 8, !tbaa !18
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %85, i32 0, i32 16
  store volatile i32 6, ptr %86, align 4, !tbaa !24
  br label %88

87:                                               ; preds = %75
  br label %66, !llvm.loop !25

88:                                               ; preds = %80, %66
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !20
  %92 = getelementptr inbounds %struct.JPEG_TypeDef, ptr %91, i32 0, i32 9
  %93 = load volatile i32, ptr %92, align 4, !tbaa !27
  %94 = and i32 %93, -127
  %95 = zext i32 %94 to i64
  %96 = or i64 %95, 0
  %97 = trunc i64 %96 to i32
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !20
  %101 = getelementptr inbounds %struct.JPEG_TypeDef, ptr %100, i32 0, i32 9
  store volatile i32 %97, ptr %101, align 4, !tbaa !27
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !20
  %105 = getelementptr inbounds %struct.JPEG_TypeDef, ptr %104, i32 0, i32 9
  %106 = load volatile i32, ptr %105, align 4, !tbaa !27
  %107 = zext i32 %106 to i64
  %108 = or i64 %107, 8192
  %109 = trunc i64 %108 to i32
  store volatile i32 %109, ptr %105, align 4, !tbaa !27
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !20
  %113 = getelementptr inbounds %struct.JPEG_TypeDef, ptr %112, i32 0, i32 9
  %114 = load volatile i32, ptr %113, align 4, !tbaa !27
  %115 = zext i32 %114 to i64
  %116 = or i64 %115, 16384
  %117 = trunc i64 %116 to i32
  store volatile i32 %117, ptr %113, align 4, !tbaa !27
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %118, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !20
  %121 = getelementptr inbounds %struct.JPEG_TypeDef, ptr %120, i32 0, i32 11
  %122 = load volatile i32, ptr %121, align 4, !tbaa !28
  %123 = or i32 %122, 96
  store volatile i32 %123, ptr %121, align 4, !tbaa !28
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %124, i32 0, i32 4
  store volatile i32 0, ptr %125, align 8, !tbaa !29
  %126 = load ptr, ptr %3, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %126, i32 0, i32 5
  store volatile i32 0, ptr %127, align 4, !tbaa !30
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %128, i32 0, i32 18
  %130 = load volatile i32, ptr %129, align 4, !tbaa !9
  %131 = and i32 %130, -12289
  store volatile i32 %131, ptr %129, align 4, !tbaa !9
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %132, i32 0, i32 17
  %134 = load volatile i32, ptr %133, align 8, !tbaa !18
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %144

136:                                              ; preds = %88
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %137, i32 0, i32 16
  store volatile i32 6, ptr %138, align 4, !tbaa !24
  br label %139

139:                                              ; preds = %136
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %140, i32 0, i32 15
  store i32 0, ptr %141, align 8, !tbaa !31
  br label %142

142:                                              ; preds = %139
  br label %143

143:                                              ; preds = %142
  store i32 1, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %152

144:                                              ; preds = %88
  %145 = load ptr, ptr %3, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %145, i32 0, i32 16
  store volatile i32 1, ptr %146, align 4, !tbaa !24
  br label %147

147:                                              ; preds = %144
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.JPEG_HandleTypeDef, ptr %148, i32 0, i32 15
  store i32 0, ptr %149, align 8, !tbaa !31
  br label %150

150:                                              ; preds = %147
  br label %151

151:                                              ; preds = %150
  store i32 0, ptr %2, align 4
  store i32 1, ptr %6, align 4
  br label %152

152:                                              ; preds = %151, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  %153 = load i32, ptr %2, align 4
  ret i32 %153
}

declare i32 @HAL_MDMA_Abort(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 #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, !12, i64 132}
!10 = !{!"", !6, i64 0, !11, i64 8, !6, i64 32, !6, i64 40, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !6, i64 64, !6, i64 72, !7, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132}
!11 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!10, !6, i64 72}
!15 = !{!16, !12, i64 148}
!16 = !{!"__MDMA_HandleTypeDef", !6, i64 0, !17, i64 8, !12, i64 64, !12, i64 68, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !12, i64 144, !12, i64 148}
!17 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52}
!18 = !{!10, !12, i64 128}
!19 = !{!10, !6, i64 64}
!20 = !{!10, !6, i64 0}
!21 = !{!22, !12, i64 0}
!22 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !7, i64 32, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !7, i64 72, !7, i64 80, !7, i64 144, !7, i64 208, !7, i64 272, !7, i64 336, !7, i64 400, !7, i64 528, !7, i64 864, !12, i64 1276, !7, i64 1280, !7, i64 1632, !7, i64 1984, !7, i64 2016}
!23 = !{!22, !12, i64 52}
!24 = !{!10, !12, i64 124}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!22, !12, i64 48}
!28 = !{!22, !12, i64 56}
!29 = !{!10, !12, i64 48}
!30 = !{!10, !12, i64 52}
!31 = !{!10, !12, i64 120}


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

declare i32 @HAL_GetTick() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @HAL_JPEG_Abort(ptr noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 132
  %3 = load volatile i32, ptr %2, align 4, !tbaa !5
  %4 = load volatile i32, ptr %2, align 4, !tbaa !5
  %5 = and i32 %4, -32784
  store volatile i32 %5, ptr %2, align 4, !tbaa !5
  %6 = and i32 %3, 12
  %7 = icmp eq i32 %6, 12
  br i1 %7, label %8, label %34

8:                                                ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 72
  %10 = load ptr, ptr %9, align 8, !tbaa !12
  %11 = tail call i32 @HAL_MDMA_Abort(ptr noundef %10) #2
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %21, label %12

12:                                               ; preds = %8
  %13 = load ptr, ptr %9, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %13, i64 148
  %15 = load volatile i32, ptr %14, align 4, !tbaa !13
  %16 = icmp eq i32 %15, 64
  br i1 %16, label %17, label %21

17:                                               ; preds = %12
  %18 = getelementptr inbounds i8, ptr %0, i64 128
  %19 = load volatile i32, ptr %18, align 8, !tbaa !16
  %20 = or i32 %19, 4
  store volatile i32 %20, ptr %18, align 8, !tbaa !16
  br label %21

21:                                               ; preds = %12, %17, %8
  %22 = getelementptr inbounds i8, ptr %0, i64 64
  %23 = load ptr, ptr %22, align 8, !tbaa !17
  %24 = tail call i32 @HAL_MDMA_Abort(ptr noundef %23) #2
  %.not27 = icmp eq i32 %24, 0
  br i1 %.not27, label %34, label %25

25:                                               ; preds = %21
  %26 = load ptr, ptr %22, align 8, !tbaa !17
  %27 = getelementptr inbounds i8, ptr %26, i64 148
  %28 = load volatile i32, ptr %27, align 4, !tbaa !13
  %29 = icmp eq i32 %28, 64
  br i1 %29, label %30, label %34

30:                                               ; preds = %25
  %31 = getelementptr inbounds i8, ptr %0, i64 128
  %32 = load volatile i32, ptr %31, align 8, !tbaa !16
  %33 = or i32 %32, 4
  store volatile i32 %33, ptr %31, align 8, !tbaa !16
  br label %34

34:                                               ; preds = %21, %30, %25, %1
  %35 = load ptr, ptr %0, align 8, !tbaa !18
  %36 = load volatile i32, ptr %35, align 4, !tbaa !19
  %37 = and i32 %36, -2
  store volatile i32 %37, ptr %35, align 4, !tbaa !19
  %38 = tail call i32 @HAL_GetTick() #2
  br label %39

39:                                               ; preds = %44, %34
  %40 = load ptr, ptr %0, align 8, !tbaa !18
  %41 = getelementptr inbounds i8, ptr %40, i64 52
  %42 = load volatile i32, ptr %41, align 4, !tbaa !21
  %43 = and i32 %42, 128
  %.not28 = icmp eq i32 %43, 0
  br i1 %.not28, label %.loopexit, label %44

44:                                               ; preds = %39
  %45 = tail call i32 @HAL_GetTick() #2
  %46 = sub i32 %45, %38
  %47 = icmp ugt i32 %46, 1000
  br i1 %47, label %48, label %39, !llvm.loop !22

48:                                               ; preds = %44
  %49 = getelementptr inbounds i8, ptr %0, i64 128
  %50 = load volatile i32, ptr %49, align 8, !tbaa !16
  %51 = or i32 %50, 8
  store volatile i32 %51, ptr %49, align 8, !tbaa !16
  %52 = getelementptr inbounds i8, ptr %0, i64 124
  store volatile i32 6, ptr %52, align 4, !tbaa !24
  %.pre = load ptr, ptr %0, align 8, !tbaa !18
  br label %.loopexit

.loopexit:                                        ; preds = %39, %48
  %53 = phi ptr [ %.pre, %48 ], [ %40, %39 ]
  %54 = getelementptr inbounds i8, ptr %53, i64 48
  %55 = load volatile i32, ptr %54, align 4, !tbaa !25
  %56 = and i32 %55, -127
  store volatile i32 %56, ptr %54, align 4, !tbaa !25
  %57 = load volatile i32, ptr %54, align 4, !tbaa !25
  %58 = or i32 %57, 8192
  store volatile i32 %58, ptr %54, align 4, !tbaa !25
  %59 = load volatile i32, ptr %54, align 4, !tbaa !25
  %60 = or i32 %59, 16384
  store volatile i32 %60, ptr %54, align 4, !tbaa !25
  %61 = getelementptr inbounds i8, ptr %53, i64 56
  %62 = load volatile i32, ptr %61, align 4, !tbaa !26
  %63 = or i32 %62, 96
  store volatile i32 %63, ptr %61, align 4, !tbaa !26
  %64 = getelementptr inbounds i8, ptr %0, i64 48
  store volatile i32 0, ptr %64, align 8, !tbaa !27
  %65 = getelementptr inbounds i8, ptr %0, i64 52
  store volatile i32 0, ptr %65, align 4, !tbaa !28
  %66 = load volatile i32, ptr %2, align 4, !tbaa !5
  %67 = and i32 %66, -12289
  store volatile i32 %67, ptr %2, align 4, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %0, i64 128
  %69 = load volatile i32, ptr %68, align 8, !tbaa !16
  %.not29 = icmp ne i32 %69, 0
  %70 = getelementptr inbounds i8, ptr %0, i64 124
  %. = select i1 %.not29, i32 6, i32 1
  %.31 = zext i1 %.not29 to i32
  store volatile i32 %., ptr %70, align 4, !tbaa !24
  %71 = getelementptr inbounds i8, ptr %0, i64 120
  store i32 0, ptr %71, align 8
  ret i32 %.31
}

declare i32 @HAL_MDMA_Abort(ptr noundef) local_unnamed_addr #0

attributes #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 = { 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 132}
!6 = !{!"", !7, i64 0, !10, i64 8, !7, i64 32, !7, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !7, i64 64, !7, i64 72, !8, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132}
!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 = !{!6, !7, i64 72}
!13 = !{!14, !11, i64 148}
!14 = !{!"__MDMA_HandleTypeDef", !7, i64 0, !15, i64 8, !11, i64 64, !11, i64 68, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !11, i64 144, !11, i64 148}
!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}
!16 = !{!6, !11, i64 128}
!17 = !{!6, !7, i64 64}
!18 = !{!6, !7, i64 0}
!19 = !{!20, !11, i64 0}
!20 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !8, i64 32, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !8, i64 72, !8, i64 80, !8, i64 144, !8, i64 208, !8, i64 272, !8, i64 336, !8, i64 400, !8, i64 528, !8, i64 864, !11, i64 1276, !8, i64 1280, !8, i64 1632, !8, i64 1984, !8, i64 2016}
!21 = !{!20, !11, i64 52}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!6, !11, i64 124}
!25 = !{!20, !11, i64 48}
!26 = !{!20, !11, i64 56}
!27 = !{!6, !11, i64 48}
!28 = !{!6, !11, i64 52}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass,TailCallElimPass