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

; 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.SPDIFRX_HandleTypeDef = type { ptr, %struct.SPDIFRX_InitTypeDef, ptr, ptr, i16, i16, i16, i16, ptr, ptr, i32, i32, i32 }
%struct.SPDIFRX_InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.SPDIFRX_TypeDef = type { 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 }
%struct.DMA_Stream_TypeDef = type { i32, i32, i32, i32, i32, i32 }
%struct.BDMA_Channel_TypeDef = type { i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_SPDIFRX_DMAStop(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  br label %4

4:                                                ; preds = %1
  %5 = load ptr, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %5, i32 0, i32 10
  %7 = load volatile i32, ptr %6, align 8, !tbaa !9
  %8 = icmp eq i32 %7, 1
  br i1 %8, label %9, label %10

9:                                                ; preds = %4
  store i32 2, ptr %2, align 4
  br label %309

10:                                               ; preds = %4
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %11, i32 0, i32 10
  store volatile i32 1, ptr %12, align 8, !tbaa !9
  br label %13

13:                                               ; preds = %10
  br label %14

14:                                               ; preds = %13
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %16, align 8, !tbaa !14
  %18 = getelementptr inbounds %struct.SPDIFRX_TypeDef, ptr %17, i32 0, i32 0
  %19 = load volatile i32, ptr %18, align 4, !tbaa !15
  %20 = and i32 %19, 65531
  store volatile i32 %20, ptr %18, align 4, !tbaa !15
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !14
  %24 = getelementptr inbounds %struct.SPDIFRX_TypeDef, ptr %23, i32 0, i32 0
  %25 = load volatile i32, ptr %24, align 4, !tbaa !15
  %26 = and i32 %25, 64511
  store volatile i32 %26, ptr %24, align 4, !tbaa !15
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %27, i32 0, i32 9
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  %30 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %29, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  %32 = icmp eq ptr %31, inttoptr (i64 1073872912 to ptr)
  br i1 %32, label %138, label %33

33:                                               ; preds = %14
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %34, i32 0, i32 9
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  %37 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !18
  %39 = icmp eq ptr %38, inttoptr (i64 1073872936 to ptr)
  br i1 %39, label %138, label %40

40:                                               ; preds = %33
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %41, i32 0, i32 9
  %43 = load ptr, ptr %42, align 8, !tbaa !17
  %44 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  %46 = icmp eq ptr %45, inttoptr (i64 1073872960 to ptr)
  br i1 %46, label %138, label %47

47:                                               ; preds = %40
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %48, i32 0, i32 9
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %50, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !18
  %53 = icmp eq ptr %52, inttoptr (i64 1073872984 to ptr)
  br i1 %53, label %138, label %54

54:                                               ; preds = %47
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %55, i32 0, i32 9
  %57 = load ptr, ptr %56, align 8, !tbaa !17
  %58 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !18
  %60 = icmp eq ptr %59, inttoptr (i64 1073873008 to ptr)
  br i1 %60, label %138, label %61

61:                                               ; preds = %54
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %62, i32 0, i32 9
  %64 = load ptr, ptr %63, align 8, !tbaa !17
  %65 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %64, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8, !tbaa !18
  %67 = icmp eq ptr %66, inttoptr (i64 1073873032 to ptr)
  br i1 %67, label %138, label %68

68:                                               ; preds = %61
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %69, i32 0, i32 9
  %71 = load ptr, ptr %70, align 8, !tbaa !17
  %72 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %71, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !18
  %74 = icmp eq ptr %73, inttoptr (i64 1073873056 to ptr)
  br i1 %74, label %138, label %75

75:                                               ; preds = %68
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %76, i32 0, i32 9
  %78 = load ptr, ptr %77, align 8, !tbaa !17
  %79 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !18
  %81 = icmp eq ptr %80, inttoptr (i64 1073873080 to ptr)
  br i1 %81, label %138, label %82

82:                                               ; preds = %75
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %83, i32 0, i32 9
  %85 = load ptr, ptr %84, align 8, !tbaa !17
  %86 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %85, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8, !tbaa !18
  %88 = icmp eq ptr %87, inttoptr (i64 1073873936 to ptr)
  br i1 %88, label %138, label %89

89:                                               ; preds = %82
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %90, i32 0, i32 9
  %92 = load ptr, ptr %91, align 8, !tbaa !17
  %93 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !18
  %95 = icmp eq ptr %94, inttoptr (i64 1073873960 to ptr)
  br i1 %95, label %138, label %96

96:                                               ; preds = %89
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %97, i32 0, i32 9
  %99 = load ptr, ptr %98, align 8, !tbaa !17
  %100 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %99, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8, !tbaa !18
  %102 = icmp eq ptr %101, inttoptr (i64 1073873984 to ptr)
  br i1 %102, label %138, label %103

103:                                              ; preds = %96
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %104, i32 0, i32 9
  %106 = load ptr, ptr %105, align 8, !tbaa !17
  %107 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %106, i32 0, i32 0
  %108 = load ptr, ptr %107, align 8, !tbaa !18
  %109 = icmp eq ptr %108, inttoptr (i64 1073874008 to ptr)
  br i1 %109, label %138, label %110

110:                                              ; preds = %103
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %111, i32 0, i32 9
  %113 = load ptr, ptr %112, align 8, !tbaa !17
  %114 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %113, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8, !tbaa !18
  %116 = icmp eq ptr %115, inttoptr (i64 1073874032 to ptr)
  br i1 %116, label %138, label %117

117:                                              ; preds = %110
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %118, i32 0, i32 9
  %120 = load ptr, ptr %119, align 8, !tbaa !17
  %121 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %120, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8, !tbaa !18
  %123 = icmp eq ptr %122, inttoptr (i64 1073874056 to ptr)
  br i1 %123, label %138, label %124

124:                                              ; preds = %117
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %125, i32 0, i32 9
  %127 = load ptr, ptr %126, align 8, !tbaa !17
  %128 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %127, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !18
  %130 = icmp eq ptr %129, inttoptr (i64 1073874080 to ptr)
  br i1 %130, label %138, label %131

131:                                              ; preds = %124
  %132 = load ptr, ptr %3, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %132, i32 0, i32 9
  %134 = load ptr, ptr %133, align 8, !tbaa !17
  %135 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !18
  %137 = icmp eq ptr %136, inttoptr (i64 1073874104 to ptr)
  br i1 %137, label %138, label %149

138:                                              ; preds = %131, %124, %117, %110, %103, %96, %89, %82, %75, %68, %61, %54, %47, %40, %33, %14
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %139, i32 0, i32 9
  %141 = load ptr, ptr %140, align 8, !tbaa !17
  %142 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %141, i32 0, i32 0
  %143 = load ptr, ptr %142, align 8, !tbaa !18
  %144 = getelementptr inbounds %struct.DMA_Stream_TypeDef, ptr %143, i32 0, i32 0
  %145 = load volatile i32, ptr %144, align 4, !tbaa !20
  %146 = zext i32 %145 to i64
  %147 = and i64 %146, -2
  %148 = trunc i64 %147 to i32
  store volatile i32 %148, ptr %144, align 4, !tbaa !20
  br label %160

149:                                              ; preds = %131
  %150 = load ptr, ptr %3, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %150, i32 0, i32 9
  %152 = load ptr, ptr %151, align 8, !tbaa !17
  %153 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !18
  %155 = getelementptr inbounds %struct.BDMA_Channel_TypeDef, ptr %154, i32 0, i32 0
  %156 = load volatile i32, ptr %155, align 4, !tbaa !22
  %157 = zext i32 %156 to i64
  %158 = and i64 %157, -2
  %159 = trunc i64 %158 to i32
  store volatile i32 %159, ptr %155, align 4, !tbaa !22
  br label %160

160:                                              ; preds = %149, %138
  %161 = phi i32 [ %148, %138 ], [ %159, %149 ]
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %162, i32 0, i32 8
  %164 = load ptr, ptr %163, align 8, !tbaa !24
  %165 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8, !tbaa !18
  %167 = icmp eq ptr %166, inttoptr (i64 1073872912 to ptr)
  br i1 %167, label %273, label %168

168:                                              ; preds = %160
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %169, i32 0, i32 8
  %171 = load ptr, ptr %170, align 8, !tbaa !24
  %172 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %171, i32 0, i32 0
  %173 = load ptr, ptr %172, align 8, !tbaa !18
  %174 = icmp eq ptr %173, inttoptr (i64 1073872936 to ptr)
  br i1 %174, label %273, label %175

175:                                              ; preds = %168
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %176, i32 0, i32 8
  %178 = load ptr, ptr %177, align 8, !tbaa !24
  %179 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %178, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !18
  %181 = icmp eq ptr %180, inttoptr (i64 1073872960 to ptr)
  br i1 %181, label %273, label %182

182:                                              ; preds = %175
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %183, i32 0, i32 8
  %185 = load ptr, ptr %184, align 8, !tbaa !24
  %186 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %185, i32 0, i32 0
  %187 = load ptr, ptr %186, align 8, !tbaa !18
  %188 = icmp eq ptr %187, inttoptr (i64 1073872984 to ptr)
  br i1 %188, label %273, label %189

189:                                              ; preds = %182
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %190, i32 0, i32 8
  %192 = load ptr, ptr %191, align 8, !tbaa !24
  %193 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %192, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8, !tbaa !18
  %195 = icmp eq ptr %194, inttoptr (i64 1073873008 to ptr)
  br i1 %195, label %273, label %196

196:                                              ; preds = %189
  %197 = load ptr, ptr %3, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %197, i32 0, i32 8
  %199 = load ptr, ptr %198, align 8, !tbaa !24
  %200 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %199, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8, !tbaa !18
  %202 = icmp eq ptr %201, inttoptr (i64 1073873032 to ptr)
  br i1 %202, label %273, label %203

203:                                              ; preds = %196
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %204, i32 0, i32 8
  %206 = load ptr, ptr %205, align 8, !tbaa !24
  %207 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %206, i32 0, i32 0
  %208 = load ptr, ptr %207, align 8, !tbaa !18
  %209 = icmp eq ptr %208, inttoptr (i64 1073873056 to ptr)
  br i1 %209, label %273, label %210

210:                                              ; preds = %203
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %211, i32 0, i32 8
  %213 = load ptr, ptr %212, align 8, !tbaa !24
  %214 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %213, i32 0, i32 0
  %215 = load ptr, ptr %214, align 8, !tbaa !18
  %216 = icmp eq ptr %215, inttoptr (i64 1073873080 to ptr)
  br i1 %216, label %273, label %217

217:                                              ; preds = %210
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %218, i32 0, i32 8
  %220 = load ptr, ptr %219, align 8, !tbaa !24
  %221 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %220, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8, !tbaa !18
  %223 = icmp eq ptr %222, inttoptr (i64 1073873936 to ptr)
  br i1 %223, label %273, label %224

224:                                              ; preds = %217
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %225, i32 0, i32 8
  %227 = load ptr, ptr %226, align 8, !tbaa !24
  %228 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %227, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8, !tbaa !18
  %230 = icmp eq ptr %229, inttoptr (i64 1073873960 to ptr)
  br i1 %230, label %273, label %231

231:                                              ; preds = %224
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %232, i32 0, i32 8
  %234 = load ptr, ptr %233, align 8, !tbaa !24
  %235 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %234, i32 0, i32 0
  %236 = load ptr, ptr %235, align 8, !tbaa !18
  %237 = icmp eq ptr %236, inttoptr (i64 1073873984 to ptr)
  br i1 %237, label %273, label %238

238:                                              ; preds = %231
  %239 = load ptr, ptr %3, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %239, i32 0, i32 8
  %241 = load ptr, ptr %240, align 8, !tbaa !24
  %242 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %241, i32 0, i32 0
  %243 = load ptr, ptr %242, align 8, !tbaa !18
  %244 = icmp eq ptr %243, inttoptr (i64 1073874008 to ptr)
  br i1 %244, label %273, label %245

245:                                              ; preds = %238
  %246 = load ptr, ptr %3, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %246, i32 0, i32 8
  %248 = load ptr, ptr %247, align 8, !tbaa !24
  %249 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %248, i32 0, i32 0
  %250 = load ptr, ptr %249, align 8, !tbaa !18
  %251 = icmp eq ptr %250, inttoptr (i64 1073874032 to ptr)
  br i1 %251, label %273, label %252

252:                                              ; preds = %245
  %253 = load ptr, ptr %3, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %253, i32 0, i32 8
  %255 = load ptr, ptr %254, align 8, !tbaa !24
  %256 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %255, i32 0, i32 0
  %257 = load ptr, ptr %256, align 8, !tbaa !18
  %258 = icmp eq ptr %257, inttoptr (i64 1073874056 to ptr)
  br i1 %258, label %273, label %259

259:                                              ; preds = %252
  %260 = load ptr, ptr %3, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %260, i32 0, i32 8
  %262 = load ptr, ptr %261, align 8, !tbaa !24
  %263 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %262, i32 0, i32 0
  %264 = load ptr, ptr %263, align 8, !tbaa !18
  %265 = icmp eq ptr %264, inttoptr (i64 1073874080 to ptr)
  br i1 %265, label %273, label %266

266:                                              ; preds = %259
  %267 = load ptr, ptr %3, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %267, i32 0, i32 8
  %269 = load ptr, ptr %268, align 8, !tbaa !24
  %270 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %269, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8, !tbaa !18
  %272 = icmp eq ptr %271, inttoptr (i64 1073874104 to ptr)
  br i1 %272, label %273, label %284

273:                                              ; preds = %266, %259, %252, %245, %238, %231, %224, %217, %210, %203, %196, %189, %182, %175, %168, %160
  %274 = load ptr, ptr %3, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %274, i32 0, i32 8
  %276 = load ptr, ptr %275, align 8, !tbaa !24
  %277 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %276, i32 0, i32 0
  %278 = load ptr, ptr %277, align 8, !tbaa !18
  %279 = getelementptr inbounds %struct.DMA_Stream_TypeDef, ptr %278, i32 0, i32 0
  %280 = load volatile i32, ptr %279, align 4, !tbaa !20
  %281 = zext i32 %280 to i64
  %282 = and i64 %281, -2
  %283 = trunc i64 %282 to i32
  store volatile i32 %283, ptr %279, align 4, !tbaa !20
  br label %295

284:                                              ; preds = %266
  %285 = load ptr, ptr %3, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %285, i32 0, i32 8
  %287 = load ptr, ptr %286, align 8, !tbaa !24
  %288 = getelementptr inbounds %struct.__DMA_HandleTypeDef, ptr %287, i32 0, i32 0
  %289 = load ptr, ptr %288, align 8, !tbaa !18
  %290 = getelementptr inbounds %struct.BDMA_Channel_TypeDef, ptr %289, i32 0, i32 0
  %291 = load volatile i32, ptr %290, align 4, !tbaa !22
  %292 = zext i32 %291 to i64
  %293 = and i64 %292, -2
  %294 = trunc i64 %293 to i32
  store volatile i32 %294, ptr %290, align 4, !tbaa !22
  br label %295

295:                                              ; preds = %284, %273
  %296 = phi i32 [ %283, %273 ], [ %294, %284 ]
  %297 = load ptr, ptr %3, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %297, i32 0, i32 0
  %299 = load ptr, ptr %298, align 8, !tbaa !14
  %300 = getelementptr inbounds %struct.SPDIFRX_TypeDef, ptr %299, i32 0, i32 0
  %301 = load volatile i32, ptr %300, align 4, !tbaa !15
  %302 = and i32 %301, -4
  store volatile i32 %302, ptr %300, align 4, !tbaa !15
  %303 = load ptr, ptr %3, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %303, i32 0, i32 11
  store volatile i32 1, ptr %304, align 4, !tbaa !25
  br label %305

305:                                              ; preds = %295
  %306 = load ptr, ptr %3, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.SPDIFRX_HandleTypeDef, ptr %306, i32 0, i32 10
  store volatile i32 0, ptr %307, align 8, !tbaa !9
  br label %308

308:                                              ; preds = %305
  store i32 0, ptr %2, align 4
  br label %309

309:                                              ; preds = %308, %9
  %310 = load i32, ptr %2, align 4
  ret i32 %310
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 96}
!10 = !{!"", !6, i64 0, !11, i64 8, !6, i64 56, !6, i64 64, !13, i64 72, !13, i64 74, !13, i64 76, !13, i64 78, !6, i64 80, !6, i64 88, !12, i64 96, !12, i64 100, !12, i64 104}
!11 = !{!"", !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 = !{!"int", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!10, !6, i64 0}
!15 = !{!16, !12, i64 0}
!16 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!17 = !{!10, !6, i64 88}
!18 = !{!19, !6, i64 0}
!19 = !{!"__DMA_HandleTypeDef", !6, i64 0, !11, i64 8, !12, i64 56, !12, i64 60, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !12, i64 124, !12, i64 128, !6, i64 136, !6, i64 144, !12, i64 152, !6, i64 160, !6, i64 168, !12, i64 176}
!20 = !{!21, !12, i64 0}
!21 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!22 = !{!23, !12, i64 0}
!23 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!24 = !{!10, !6, i64 80}
!25 = !{!10, !12, i64 100}


; 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: nofree norecurse nounwind uwtable
define dso_local range(i32 0, 3) i32 @HAL_SPDIFRX_DMAStop(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 96
  %3 = load volatile i32, ptr %2, align 8, !tbaa !5
  %4 = icmp eq i32 %3, 1
  br i1 %4, label %24, label %5

5:                                                ; preds = %1
  store volatile i32 1, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %0, align 8, !tbaa !13
  %7 = load volatile i32, ptr %6, align 4, !tbaa !14
  %8 = and i32 %7, 65531
  store volatile i32 %8, ptr %6, align 4, !tbaa !14
  %9 = load volatile i32, ptr %6, align 4, !tbaa !14
  %10 = and i32 %9, 64511
  store volatile i32 %10, ptr %6, align 4, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %0, i64 88
  %12 = load ptr, ptr %11, align 8, !tbaa !16
  %13 = load ptr, ptr %12, align 8, !tbaa !17
  %14 = load volatile i32, ptr %13, align 4, !tbaa !19
  %15 = and i32 %14, -2
  store volatile i32 %15, ptr %13, align 4, !tbaa !19
  %16 = getelementptr inbounds i8, ptr %0, i64 80
  %17 = load ptr, ptr %16, align 8, !tbaa !20
  %18 = load ptr, ptr %17, align 8, !tbaa !17
  %19 = load volatile i32, ptr %18, align 4, !tbaa !19
  %20 = and i32 %19, -2
  store volatile i32 %20, ptr %18, align 4, !tbaa !19
  %21 = load volatile i32, ptr %6, align 4, !tbaa !14
  %22 = and i32 %21, -4
  store volatile i32 %22, ptr %6, align 4, !tbaa !14
  %23 = getelementptr inbounds i8, ptr %0, i64 100
  store volatile i32 1, ptr %23, align 4, !tbaa !21
  store volatile i32 0, ptr %2, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %1, %5
  %.0 = phi i32 [ 0, %5 ], [ 2, %1 ]
  ret i32 %.0
}

attributes #0 = { nofree norecurse nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 96}
!6 = !{!"", !7, i64 0, !10, i64 8, !7, i64 56, !7, i64 64, !12, i64 72, !12, i64 74, !12, i64 76, !12, i64 78, !7, i64 80, !7, i64 88, !11, i64 96, !11, i64 100, !11, i64 104}
!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, i64 36, !11, i64 40, !11, i64 44}
!11 = !{!"int", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!6, !7, 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}
!16 = !{!6, !7, i64 88}
!17 = !{!18, !7, i64 0}
!18 = !{!"__DMA_HandleTypeDef", !7, i64 0, !10, 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}
!19 = !{!11, !11, i64 0}
!20 = !{!6, !7, i64 80}
!21 = !{!6, !11, i64 100}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass