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

; 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.__UART_HandleTypeDef = type { ptr, %struct.UART_InitTypeDef, %struct.UART_AdvFeatureInitTypeDef, ptr, i16, i16, ptr, i16, i16, i16, i32, i16, i16, ptr, ptr, ptr, ptr, i32, i32, i32, i32 }
%struct.UART_InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.UART_AdvFeatureInitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.USART_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, 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: 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_UART_Abort_IT(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  store i32 1, ptr %3, align 4, !tbaa !9
  %4 = load ptr, ptr %2, align 8, !tbaa !5
  %5 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %4, i32 0, i32 0
  %6 = load ptr, ptr %5, align 8, !tbaa !11
  %7 = getelementptr inbounds %struct.USART_TypeDef, ptr %6, i32 0, i32 0
  %8 = load volatile i32, ptr %7, align 4, !tbaa !16
  %9 = zext i32 %8 to i64
  %10 = and i64 %9, -481
  %11 = trunc i64 %10 to i32
  store volatile i32 %11, ptr %7, align 4, !tbaa !16
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %12, i32 0, i32 0
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  %15 = getelementptr inbounds %struct.USART_TypeDef, ptr %14, i32 0, i32 2
  %16 = load volatile i32, ptr %15, align 4, !tbaa !18
  %17 = zext i32 %16 to i64
  %18 = and i64 %17, -276824066
  %19 = trunc i64 %18 to i32
  store volatile i32 %19, ptr %15, align 4, !tbaa !18
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %20, i32 0, i32 15
  %22 = load ptr, ptr %21, align 8, !tbaa !19
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %44

24:                                               ; preds = %1
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = getelementptr inbounds %struct.USART_TypeDef, ptr %27, i32 0, i32 2
  %29 = load volatile i32, ptr %28, align 4, !tbaa !18
  %30 = zext i32 %29 to i64
  %31 = and i64 %30, 128
  %32 = icmp eq i64 %31, 128
  br i1 %32, label %33, label %38

33:                                               ; preds = %24
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %34, i32 0, i32 15
  %36 = load ptr, ptr %35, align 8, !tbaa !19
  %37 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %36, i32 0, i32 10
  store ptr @UART_DMATxAbortCallback, ptr %37, align 8, !tbaa !20
  br label %43

38:                                               ; preds = %24
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %39, i32 0, i32 15
  %41 = load ptr, ptr %40, align 8, !tbaa !19
  %42 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %41, i32 0, i32 10
  store ptr null, ptr %42, align 8, !tbaa !20
  br label %43

43:                                               ; preds = %38, %33
  br label %44

44:                                               ; preds = %43, %1
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %45, i32 0, i32 16
  %47 = load ptr, ptr %46, align 8, !tbaa !22
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %69

49:                                               ; preds = %44
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds %struct.USART_TypeDef, ptr %52, i32 0, i32 2
  %54 = load volatile i32, ptr %53, align 4, !tbaa !18
  %55 = zext i32 %54 to i64
  %56 = and i64 %55, 64
  %57 = icmp eq i64 %56, 64
  br i1 %57, label %58, label %63

58:                                               ; preds = %49
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %59, i32 0, i32 16
  %61 = load ptr, ptr %60, align 8, !tbaa !22
  %62 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %61, i32 0, i32 10
  store ptr @UART_DMARxAbortCallback, ptr %62, align 8, !tbaa !20
  br label %68

63:                                               ; preds = %49
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %64, i32 0, i32 16
  %66 = load ptr, ptr %65, align 8, !tbaa !22
  %67 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %66, i32 0, i32 10
  store ptr null, ptr %67, align 8, !tbaa !20
  br label %68

68:                                               ; preds = %63, %58
  br label %69

69:                                               ; preds = %68, %44
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %70, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8, !tbaa !11
  %73 = getelementptr inbounds %struct.USART_TypeDef, ptr %72, i32 0, i32 2
  %74 = load volatile i32, ptr %73, align 4, !tbaa !18
  %75 = zext i32 %74 to i64
  %76 = and i64 %75, 128
  %77 = icmp eq i64 %76, 128
  br i1 %77, label %78, label %105

78:                                               ; preds = %69
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds %struct.USART_TypeDef, ptr %81, i32 0, i32 2
  %83 = load volatile i32, ptr %82, align 4, !tbaa !18
  %84 = zext i32 %83 to i64
  %85 = and i64 %84, -129
  %86 = trunc i64 %85 to i32
  store volatile i32 %86, ptr %82, align 4, !tbaa !18
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %87, i32 0, i32 15
  %89 = load ptr, ptr %88, align 8, !tbaa !19
  %90 = icmp ne ptr %89, null
  br i1 %90, label %91, label %104

91:                                               ; preds = %78
  %92 = load ptr, ptr %2, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %92, i32 0, i32 15
  %94 = load ptr, ptr %93, align 8, !tbaa !19
  %95 = call i32 @HAL_DMA_Abort_IT(ptr noundef %94)
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %102

97:                                               ; preds = %91
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %98, i32 0, i32 15
  %100 = load ptr, ptr %99, align 8, !tbaa !19
  %101 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %100, i32 0, i32 10
  store ptr null, ptr %101, align 8, !tbaa !20
  br label %103

102:                                              ; preds = %91
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %102, %97
  br label %104

104:                                              ; preds = %103, %78
  br label %105

105:                                              ; preds = %104, %69
  %106 = load ptr, ptr %2, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct.USART_TypeDef, ptr %108, i32 0, i32 2
  %110 = load volatile i32, ptr %109, align 4, !tbaa !18
  %111 = zext i32 %110 to i64
  %112 = and i64 %111, 64
  %113 = icmp eq i64 %112, 64
  br i1 %113, label %114, label %141

114:                                              ; preds = %105
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  %118 = getelementptr inbounds %struct.USART_TypeDef, ptr %117, i32 0, i32 2
  %119 = load volatile i32, ptr %118, align 4, !tbaa !18
  %120 = zext i32 %119 to i64
  %121 = and i64 %120, -65
  %122 = trunc i64 %121 to i32
  store volatile i32 %122, ptr %118, align 4, !tbaa !18
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %123, i32 0, i32 16
  %125 = load ptr, ptr %124, align 8, !tbaa !22
  %126 = icmp ne ptr %125, null
  br i1 %126, label %127, label %140

127:                                              ; preds = %114
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %128, i32 0, i32 16
  %130 = load ptr, ptr %129, align 8, !tbaa !22
  %131 = call i32 @HAL_DMA_Abort_IT(ptr noundef %130)
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %138

133:                                              ; preds = %127
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %134, i32 0, i32 16
  %136 = load ptr, ptr %135, align 8, !tbaa !22
  %137 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %136, i32 0, i32 10
  store ptr null, ptr %137, align 8, !tbaa !20
  store i32 1, ptr %3, align 4, !tbaa !9
  br label %139

138:                                              ; preds = %127
  store i32 0, ptr %3, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %138, %133
  br label %140

140:                                              ; preds = %139, %114
  br label %141

141:                                              ; preds = %140, %105
  %142 = load i32, ptr %3, align 4, !tbaa !9
  %143 = icmp eq i32 %142, 1
  br i1 %143, label %144, label %183

144:                                              ; preds = %141
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %145, i32 0, i32 5
  store volatile i16 0, ptr %146, align 2, !tbaa !23
  %147 = load ptr, ptr %2, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %147, i32 0, i32 8
  store volatile i16 0, ptr %148, align 2, !tbaa !24
  %149 = load ptr, ptr %2, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %149, i32 0, i32 13
  store ptr null, ptr %150, align 8, !tbaa !25
  %151 = load ptr, ptr %2, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %151, i32 0, i32 14
  store ptr null, ptr %152, align 8, !tbaa !26
  %153 = load ptr, ptr %2, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %153, i32 0, i32 20
  store volatile i32 0, ptr %154, align 4, !tbaa !27
  %155 = load ptr, ptr %2, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %155, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8, !tbaa !11
  %158 = getelementptr inbounds %struct.USART_TypeDef, ptr %157, i32 0, i32 8
  store volatile i32 15, ptr %158, align 4, !tbaa !28
  %159 = load ptr, ptr %2, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %159, i32 0, i32 10
  %161 = load i32, ptr %160, align 8, !tbaa !29
  %162 = zext i32 %161 to i64
  %163 = icmp eq i64 %162, 536870912
  br i1 %163, label %164, label %171

164:                                              ; preds = %144
  %165 = load ptr, ptr %2, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %165, i32 0, i32 0
  %167 = load ptr, ptr %166, align 8, !tbaa !11
  %168 = getelementptr inbounds %struct.USART_TypeDef, ptr %167, i32 0, i32 6
  %169 = load volatile i32, ptr %168, align 4, !tbaa !30
  %170 = or i32 %169, 16
  store volatile i32 %170, ptr %168, align 4, !tbaa !30
  br label %171

171:                                              ; preds = %164, %144
  %172 = load ptr, ptr %2, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8, !tbaa !11
  %175 = getelementptr inbounds %struct.USART_TypeDef, ptr %174, i32 0, i32 6
  %176 = load volatile i32, ptr %175, align 4, !tbaa !30
  %177 = or i32 %176, 8
  store volatile i32 %177, ptr %175, align 4, !tbaa !30
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %178, i32 0, i32 18
  store volatile i32 32, ptr %179, align 4, !tbaa !31
  %180 = load ptr, ptr %2, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.__UART_HandleTypeDef, ptr %180, i32 0, i32 19
  store volatile i32 32, ptr %181, align 8, !tbaa !32
  %182 = load ptr, ptr %2, align 8, !tbaa !5
  call void @HAL_UART_AbortCpltCallback(ptr noundef %182)
  br label %183

183:                                              ; preds = %171, %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  ret i32 0
}

; Function Attrs: nounwind uwtable
declare hidden void @UART_DMATxAbortCallback(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare hidden void @UART_DMARxAbortCallback(ptr noundef) #1

declare i32 @HAL_DMA_Abort_IT(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_UART_AbortCpltCallback(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 = { "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, !6, i64 0}
!12 = !{!"__UART_HandleTypeDef", !6, i64 0, !13, i64 8, !14, i64 44, !6, i64 88, !15, i64 96, !15, i64 98, !6, i64 104, !15, i64 112, !15, i64 114, !15, i64 116, !10, i64 120, !15, i64 124, !15, i64 126, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172}
!13 = !{!"", !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}
!14 = !{!"", !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}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !10, i64 0}
!17 = !{!"", !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}
!18 = !{!17, !10, i64 8}
!19 = !{!12, !6, i64 144}
!20 = !{!21, !6, i64 112}
!21 = !{!"__DMA_HandleTypeDef", !6, i64 0, !17, 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}
!22 = !{!12, !6, i64 152}
!23 = !{!12, !15, i64 98}
!24 = !{!12, !15, i64 114}
!25 = !{!12, !6, i64 128}
!26 = !{!12, !6, i64 136}
!27 = !{!12, !10, i64 172}
!28 = !{!17, !10, i64 32}
!29 = !{!12, !10, i64 120}
!30 = !{!17, !10, i64 24}
!31 = !{!12, !10, i64 164}
!32 = !{!12, !10, i64 168}


; 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 noundef i32 @HAL_UART_Abort_IT(ptr noundef %0) local_unnamed_addr #0 {
  %2 = load ptr, ptr %0, align 8, !tbaa !5
  %3 = load volatile i32, ptr %2, align 4, !tbaa !14
  %4 = and i32 %3, -481
  store volatile i32 %4, ptr %2, align 4, !tbaa !14
  %5 = getelementptr inbounds i8, ptr %2, i64 8
  %6 = load volatile i32, ptr %5, align 4, !tbaa !16
  %7 = and i32 %6, -276824066
  store volatile i32 %7, ptr %5, align 4, !tbaa !16
  %8 = getelementptr inbounds i8, ptr %0, i64 144
  %9 = load ptr, ptr %8, align 8, !tbaa !17
  %.not = icmp eq ptr %9, null
  br i1 %.not, label %13, label %.sink.split

.sink.split:                                      ; preds = %1
  %10 = load volatile i32, ptr %5, align 4, !tbaa !16
  %11 = and i32 %10, 128
  %.not34 = icmp eq i32 %11, 0
  %12 = getelementptr inbounds i8, ptr %9, i64 112
  %.UART_DMATxAbortCallback = select i1 %.not34, ptr null, ptr @UART_DMATxAbortCallback
  store ptr %.UART_DMATxAbortCallback, ptr %12, align 8, !tbaa !18
  br label %13

13:                                               ; preds = %.sink.split, %1
  %14 = getelementptr inbounds i8, ptr %0, i64 152
  %15 = load ptr, ptr %14, align 8, !tbaa !20
  %.not35 = icmp eq ptr %15, null
  br i1 %.not35, label %19, label %.sink.split46

.sink.split46:                                    ; preds = %13
  %16 = load volatile i32, ptr %5, align 4, !tbaa !16
  %17 = and i32 %16, 64
  %.not36 = icmp eq i32 %17, 0
  %18 = getelementptr inbounds i8, ptr %15, i64 112
  %.UART_DMARxAbortCallback = select i1 %.not36, ptr null, ptr @UART_DMARxAbortCallback
  store ptr %.UART_DMARxAbortCallback, ptr %18, align 8, !tbaa !18
  br label %19

19:                                               ; preds = %.sink.split46, %13
  %20 = load volatile i32, ptr %5, align 4, !tbaa !16
  %21 = and i32 %20, 128
  %.not37 = icmp eq i32 %21, 0
  br i1 %.not37, label %30, label %22

22:                                               ; preds = %19
  %23 = load volatile i32, ptr %5, align 4, !tbaa !16
  %24 = and i32 %23, -129
  store volatile i32 %24, ptr %5, align 4, !tbaa !16
  br i1 %.not, label %30, label %25

25:                                               ; preds = %22
  %26 = tail call i32 @HAL_DMA_Abort_IT(ptr noundef nonnull %9) #3
  %.not39 = icmp eq i32 %26, 0
  br i1 %.not39, label %30, label %27

27:                                               ; preds = %25
  %28 = load ptr, ptr %8, align 8, !tbaa !17
  %29 = getelementptr inbounds i8, ptr %28, i64 112
  store ptr null, ptr %29, align 8, !tbaa !18
  br label %30

30:                                               ; preds = %25, %22, %27, %19
  %31 = phi i1 [ true, %27 ], [ true, %22 ], [ true, %19 ], [ false, %25 ]
  %32 = load ptr, ptr %0, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 8
  %34 = load volatile i32, ptr %33, align 4, !tbaa !16
  %35 = and i32 %34, 64
  %.not40 = icmp eq i32 %35, 0
  br i1 %.not40, label %44, label %36

36:                                               ; preds = %30
  %37 = load volatile i32, ptr %33, align 4, !tbaa !16
  %38 = and i32 %37, -65
  store volatile i32 %38, ptr %33, align 4, !tbaa !16
  %39 = load ptr, ptr %14, align 8, !tbaa !20
  %.not41 = icmp eq ptr %39, null
  br i1 %.not41, label %44, label %40

40:                                               ; preds = %36
  %41 = tail call i32 @HAL_DMA_Abort_IT(ptr noundef nonnull %39) #3
  %.not42 = icmp eq i32 %41, 0
  br i1 %.not42, label %.thread44, label %.thread

.thread:                                          ; preds = %40
  %42 = load ptr, ptr %14, align 8, !tbaa !20
  %43 = getelementptr inbounds i8, ptr %42, i64 112
  store ptr null, ptr %43, align 8, !tbaa !18
  br label %45

44:                                               ; preds = %36, %30
  br i1 %31, label %45, label %.thread44

45:                                               ; preds = %.thread, %44
  %46 = getelementptr inbounds i8, ptr %0, i64 98
  store volatile i16 0, ptr %46, align 2, !tbaa !21
  %47 = getelementptr inbounds i8, ptr %0, i64 114
  store volatile i16 0, ptr %47, align 2, !tbaa !22
  %48 = getelementptr inbounds i8, ptr %0, i64 128
  %49 = getelementptr inbounds i8, ptr %0, i64 172
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %48, i8 0, i64 16, i1 false)
  store volatile i32 0, ptr %49, align 4, !tbaa !23
  %50 = load ptr, ptr %0, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 32
  store volatile i32 15, ptr %51, align 4, !tbaa !24
  %52 = getelementptr inbounds i8, ptr %0, i64 120
  %53 = load i32, ptr %52, align 8, !tbaa !25
  %54 = icmp eq i32 %53, 536870912
  br i1 %54, label %55, label %59

55:                                               ; preds = %45
  %56 = getelementptr inbounds i8, ptr %50, i64 24
  %57 = load volatile i32, ptr %56, align 4, !tbaa !26
  %58 = or i32 %57, 16
  store volatile i32 %58, ptr %56, align 4, !tbaa !26
  br label %59

59:                                               ; preds = %55, %45
  %60 = getelementptr inbounds i8, ptr %50, i64 24
  %61 = load volatile i32, ptr %60, align 4, !tbaa !26
  %62 = or i32 %61, 8
  store volatile i32 %62, ptr %60, align 4, !tbaa !26
  %63 = getelementptr inbounds i8, ptr %0, i64 164
  store volatile i32 32, ptr %63, align 4, !tbaa !27
  %64 = getelementptr inbounds i8, ptr %0, i64 168
  store volatile i32 32, ptr %64, align 8, !tbaa !28
  tail call void @HAL_UART_AbortCpltCallback(ptr noundef nonnull %0)
  br label %.thread44

.thread44:                                        ; preds = %40, %59, %44
  ret i32 0
}

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

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

declare i32 @HAL_DMA_Abort_IT(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_UART_AbortCpltCallback(ptr noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { "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, !7, i64 0}
!6 = !{!"__UART_HandleTypeDef", !7, i64 0, !10, i64 8, !12, i64 44, !7, i64 88, !13, i64 96, !13, i64 98, !7, i64 104, !13, i64 112, !13, i64 114, !13, i64 116, !11, i64 120, !13, i64 124, !13, i64 126, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172}
!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, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!11 = !{!"int", !8, i64 0}
!12 = !{!"", !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}
!13 = !{!"short", !8, i64 0}
!14 = !{!15, !11, i64 0}
!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}
!16 = !{!15, !11, i64 8}
!17 = !{!6, !7, i64 144}
!18 = !{!19, !7, i64 112}
!19 = !{!"__DMA_HandleTypeDef", !7, i64 0, !15, i64 8, !11, i64 56, !11, i64 60, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !11, i64 120, !11, i64 124, !11, i64 128, !7, i64 136, !7, i64 144, !11, i64 152, !7, i64 160, !7, i64 168, !11, i64 176}
!20 = !{!6, !7, i64 152}
!21 = !{!6, !13, i64 98}
!22 = !{!6, !13, i64 114}
!23 = !{!6, !11, i64 172}
!24 = !{!15, !11, i64 32}
!25 = !{!6, !11, i64 120}
!26 = !{!15, !11, i64 24}
!27 = !{!6, !11, i64 164}
!28 = !{!6, !11, i64 168}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass