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

; 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.DFSDM_Filter_HandleTypeDef = type { ptr, %struct.DFSDM_Filter_InitTypeDef, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.DFSDM_Filter_InitTypeDef = type { %struct.DFSDM_Filter_RegularParamTypeDef, %struct.DFSDM_Filter_InjectedParamTypeDef, %struct.DFSDM_Filter_FilterParamTypeDef }
%struct.DFSDM_Filter_RegularParamTypeDef = type { i32, i32, i32 }
%struct.DFSDM_Filter_InjectedParamTypeDef = type { i32, i32, i32, i32, i32 }
%struct.DFSDM_Filter_FilterParamTypeDef = type { i32, i32, i32 }
%struct.DFSDM_Filter_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_DFSDM_FilterInit(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = icmp eq ptr %4, null
  br i1 %5, label %6, label %7

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

7:                                                ; preds = %1
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %8, i32 0, i32 0
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = icmp eq ptr %10, inttoptr (i64 1073836288 to ptr)
  br i1 %11, label %12, label %27

12:                                               ; preds = %7
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %13, i32 0, i32 1
  %15 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %14, i32 0, i32 0
  %16 = getelementptr inbounds %struct.DFSDM_Filter_RegularParamTypeDef, ptr %15, i32 0, i32 0
  %17 = load i32, ptr %16, align 8, !tbaa !15
  %18 = icmp eq i32 %17, 1
  br i1 %18, label %26, label %19

19:                                               ; preds = %12
  %20 = load ptr, ptr %3, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %20, i32 0, i32 1
  %22 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %21, i32 0, i32 1
  %23 = getelementptr inbounds %struct.DFSDM_Filter_InjectedParamTypeDef, ptr %22, i32 0, i32 0
  %24 = load i32, ptr %23, align 4, !tbaa !16
  %25 = icmp eq i32 %24, 1
  br i1 %25, label %26, label %27

26:                                               ; preds = %19, %12
  store i32 1, ptr %2, align 4
  br label %244

27:                                               ; preds = %19, %7
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %28, i32 0, i32 4
  store i32 0, ptr %29, align 8, !tbaa !17
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %30, i32 0, i32 9
  store i32 1, ptr %31, align 4, !tbaa !18
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %32, i32 0, i32 10
  store i32 1, ptr %33, align 8, !tbaa !19
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %34, i32 0, i32 12
  store i32 0, ptr %35, align 8, !tbaa !20
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  call void @HAL_DFSDM_FilterMspInit(ptr noundef %36)
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %39, i32 0, i32 0
  %41 = load volatile i32, ptr %40, align 4, !tbaa !21
  %42 = zext i32 %41 to i64
  %43 = and i64 %42, -524289
  %44 = trunc i64 %43 to i32
  store volatile i32 %44, ptr %40, align 4, !tbaa !21
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %45, i32 0, i32 1
  %47 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds %struct.DFSDM_Filter_RegularParamTypeDef, ptr %47, i32 0, i32 1
  %49 = load i32, ptr %48, align 4, !tbaa !23
  %50 = icmp eq i32 %49, 1
  br i1 %50, label %51, label %60

51:                                               ; preds = %27
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %54, i32 0, i32 0
  %56 = load volatile i32, ptr %55, align 4, !tbaa !21
  %57 = zext i32 %56 to i64
  %58 = or i64 %57, 536870912
  %59 = trunc i64 %58 to i32
  store volatile i32 %59, ptr %55, align 4, !tbaa !21
  br label %69

60:                                               ; preds = %27
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %63, i32 0, i32 0
  %65 = load volatile i32, ptr %64, align 4, !tbaa !21
  %66 = zext i32 %65 to i64
  %67 = and i64 %66, -536870913
  %68 = trunc i64 %67 to i32
  store volatile i32 %68, ptr %64, align 4, !tbaa !21
  br label %69

69:                                               ; preds = %60, %51
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %70, i32 0, i32 1
  %72 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds %struct.DFSDM_Filter_RegularParamTypeDef, ptr %72, i32 0, i32 2
  %74 = load i32, ptr %73, align 8, !tbaa !24
  %75 = icmp eq i32 %74, 1
  br i1 %75, label %76, label %85

76:                                               ; preds = %69
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %77, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %79, i32 0, i32 0
  %81 = load volatile i32, ptr %80, align 4, !tbaa !21
  %82 = zext i32 %81 to i64
  %83 = or i64 %82, 2097152
  %84 = trunc i64 %83 to i32
  store volatile i32 %84, ptr %80, align 4, !tbaa !21
  br label %94

85:                                               ; preds = %69
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %86, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %88, i32 0, i32 0
  %90 = load volatile i32, ptr %89, align 4, !tbaa !21
  %91 = zext i32 %90 to i64
  %92 = and i64 %91, -2097153
  %93 = trunc i64 %92 to i32
  store volatile i32 %93, ptr %89, align 4, !tbaa !21
  br label %94

94:                                               ; preds = %85, %76
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %95, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  %98 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %97, i32 0, i32 0
  %99 = load volatile i32, ptr %98, align 4, !tbaa !21
  %100 = zext i32 %99 to i64
  %101 = and i64 %100, -32521
  %102 = trunc i64 %101 to i32
  store volatile i32 %102, ptr %98, align 4, !tbaa !21
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %103, i32 0, i32 1
  %105 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %104, i32 0, i32 1
  %106 = getelementptr inbounds %struct.DFSDM_Filter_InjectedParamTypeDef, ptr %105, i32 0, i32 0
  %107 = load i32, ptr %106, align 4, !tbaa !16
  %108 = icmp eq i32 %107, 2
  br i1 %108, label %109, label %121

109:                                              ; preds = %94
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %110, i32 0, i32 1
  %112 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %111, i32 0, i32 1
  %113 = getelementptr inbounds %struct.DFSDM_Filter_InjectedParamTypeDef, ptr %112, i32 0, i32 3
  %114 = load i32, ptr %113, align 4, !tbaa !25
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %117, i32 0, i32 0
  %119 = load volatile i32, ptr %118, align 4, !tbaa !21
  %120 = or i32 %119, %114
  store volatile i32 %120, ptr %118, align 4, !tbaa !21
  br label %121

121:                                              ; preds = %109, %94
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %122, i32 0, i32 1
  %124 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %123, i32 0, i32 1
  %125 = getelementptr inbounds %struct.DFSDM_Filter_InjectedParamTypeDef, ptr %124, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !26
  %127 = icmp eq i32 %126, 1
  br i1 %127, label %128, label %137

128:                                              ; preds = %121
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %131, i32 0, i32 0
  %133 = load volatile i32, ptr %132, align 4, !tbaa !21
  %134 = zext i32 %133 to i64
  %135 = or i64 %134, 16
  %136 = trunc i64 %135 to i32
  store volatile i32 %136, ptr %132, align 4, !tbaa !21
  br label %146

137:                                              ; preds = %121
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %140, i32 0, i32 0
  %142 = load volatile i32, ptr %141, align 4, !tbaa !21
  %143 = zext i32 %142 to i64
  %144 = and i64 %143, -17
  %145 = trunc i64 %144 to i32
  store volatile i32 %145, ptr %141, align 4, !tbaa !21
  br label %146

146:                                              ; preds = %137, %128
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %147, i32 0, i32 1
  %149 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %148, i32 0, i32 1
  %150 = getelementptr inbounds %struct.DFSDM_Filter_InjectedParamTypeDef, ptr %149, i32 0, i32 2
  %151 = load i32, ptr %150, align 4, !tbaa !27
  %152 = icmp eq i32 %151, 1
  br i1 %152, label %153, label %162

153:                                              ; preds = %146
  %154 = load ptr, ptr %3, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %154, i32 0, i32 0
  %156 = load ptr, ptr %155, align 8, !tbaa !9
  %157 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %156, i32 0, i32 0
  %158 = load volatile i32, ptr %157, align 4, !tbaa !21
  %159 = zext i32 %158 to i64
  %160 = or i64 %159, 32
  %161 = trunc i64 %160 to i32
  store volatile i32 %161, ptr %157, align 4, !tbaa !21
  br label %171

162:                                              ; preds = %146
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %163, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8, !tbaa !9
  %166 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %165, i32 0, i32 0
  %167 = load volatile i32, ptr %166, align 4, !tbaa !21
  %168 = zext i32 %167 to i64
  %169 = and i64 %168, -33
  %170 = trunc i64 %169 to i32
  store volatile i32 %170, ptr %166, align 4, !tbaa !21
  br label %171

171:                                              ; preds = %162, %153
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8, !tbaa !9
  %175 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %174, i32 0, i32 5
  %176 = load volatile i32, ptr %175, align 4, !tbaa !28
  %177 = zext i32 %176 to i64
  %178 = and i64 %177, -3825139968
  %179 = trunc i64 %178 to i32
  store volatile i32 %179, ptr %175, align 4, !tbaa !28
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %180, i32 0, i32 1
  %182 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %181, i32 0, i32 2
  %183 = getelementptr inbounds %struct.DFSDM_Filter_FilterParamTypeDef, ptr %182, i32 0, i32 0
  %184 = load i32, ptr %183, align 8, !tbaa !29
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %185, i32 0, i32 1
  %187 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %186, i32 0, i32 2
  %188 = getelementptr inbounds %struct.DFSDM_Filter_FilterParamTypeDef, ptr %187, i32 0, i32 1
  %189 = load i32, ptr %188, align 4, !tbaa !30
  %190 = sub i32 %189, 1
  %191 = shl i32 %190, 16
  %192 = or i32 %184, %191
  %193 = load ptr, ptr %3, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %193, i32 0, i32 1
  %195 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %194, i32 0, i32 2
  %196 = getelementptr inbounds %struct.DFSDM_Filter_FilterParamTypeDef, ptr %195, i32 0, i32 2
  %197 = load i32, ptr %196, align 8, !tbaa !31
  %198 = sub i32 %197, 1
  %199 = or i32 %192, %198
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %200, i32 0, i32 0
  %202 = load ptr, ptr %201, align 8, !tbaa !9
  %203 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %202, i32 0, i32 5
  %204 = load volatile i32, ptr %203, align 4, !tbaa !28
  %205 = or i32 %204, %199
  store volatile i32 %205, ptr %203, align 4, !tbaa !28
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %206, i32 0, i32 1
  %208 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %207, i32 0, i32 0
  %209 = getelementptr inbounds %struct.DFSDM_Filter_RegularParamTypeDef, ptr %208, i32 0, i32 0
  %210 = load i32, ptr %209, align 8, !tbaa !15
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %211, i32 0, i32 5
  store i32 %210, ptr %212, align 4, !tbaa !32
  %213 = load ptr, ptr %3, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %213, i32 0, i32 1
  %215 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %214, i32 0, i32 1
  %216 = getelementptr inbounds %struct.DFSDM_Filter_InjectedParamTypeDef, ptr %215, i32 0, i32 0
  %217 = load i32, ptr %216, align 4, !tbaa !16
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %218, i32 0, i32 6
  store i32 %217, ptr %219, align 8, !tbaa !33
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %220, i32 0, i32 1
  %222 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %221, i32 0, i32 1
  %223 = getelementptr inbounds %struct.DFSDM_Filter_InjectedParamTypeDef, ptr %222, i32 0, i32 4
  %224 = load i32, ptr %223, align 4, !tbaa !34
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %225, i32 0, i32 7
  store i32 %224, ptr %226, align 4, !tbaa !35
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %227, i32 0, i32 1
  %229 = getelementptr inbounds %struct.DFSDM_Filter_InitTypeDef, ptr %228, i32 0, i32 1
  %230 = getelementptr inbounds %struct.DFSDM_Filter_InjectedParamTypeDef, ptr %229, i32 0, i32 1
  %231 = load i32, ptr %230, align 4, !tbaa !26
  %232 = load ptr, ptr %3, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %232, i32 0, i32 8
  store i32 %231, ptr %233, align 8, !tbaa !36
  %234 = load ptr, ptr %3, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %234, i32 0, i32 0
  %236 = load ptr, ptr %235, align 8, !tbaa !9
  %237 = getelementptr inbounds %struct.DFSDM_Filter_TypeDef, ptr %236, i32 0, i32 0
  %238 = load volatile i32, ptr %237, align 4, !tbaa !21
  %239 = zext i32 %238 to i64
  %240 = or i64 %239, 1
  %241 = trunc i64 %240 to i32
  store volatile i32 %241, ptr %237, align 4, !tbaa !21
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.DFSDM_Filter_HandleTypeDef, ptr %242, i32 0, i32 11
  store i32 1, ptr %243, align 4, !tbaa !37
  store i32 0, ptr %2, align 4
  br label %244

244:                                              ; preds = %171, %26, %6
  %245 = load i32, ptr %2, align 4
  ret i32 %245
}

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

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, !6, i64 0}
!10 = !{!"", !6, i64 0, !11, i64 8, !6, i64 56, !6, i64 64, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104}
!11 = !{!"", !12, i64 0, !14, i64 12, !12, i64 32}
!12 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16}
!15 = !{!10, !13, i64 8}
!16 = !{!10, !13, i64 20}
!17 = !{!10, !13, i64 72}
!18 = !{!10, !13, i64 92}
!19 = !{!10, !13, i64 96}
!20 = !{!10, !13, i64 104}
!21 = !{!22, !13, i64 0}
!22 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !13, i64 56}
!23 = !{!10, !13, i64 12}
!24 = !{!10, !13, i64 16}
!25 = !{!10, !13, i64 32}
!26 = !{!10, !13, i64 24}
!27 = !{!10, !13, i64 28}
!28 = !{!22, !13, i64 20}
!29 = !{!10, !13, i64 40}
!30 = !{!10, !13, i64 44}
!31 = !{!10, !13, i64 48}
!32 = !{!10, !13, i64 76}
!33 = !{!10, !13, i64 80}
!34 = !{!10, !13, i64 36}
!35 = !{!10, !13, i64 84}
!36 = !{!10, !13, i64 88}
!37 = !{!10, !13, 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: nounwind uwtable
define dso_local range(i32 0, 2) i32 @HAL_DFSDM_FilterInit(ptr noundef %0) local_unnamed_addr #0 {
  %2 = icmp eq ptr %0, null
  br i1 %2, label %80, label %3

3:                                                ; preds = %1
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = icmp eq ptr %4, inttoptr (i64 1073836288 to ptr)
  br i1 %5, label %6, label %14

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i32, ptr %7, align 8, !tbaa !14
  %9 = icmp eq i32 %8, 1
  br i1 %9, label %80, label %10

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %0, i64 20
  %12 = load i32, ptr %11, align 4, !tbaa !15
  %13 = icmp eq i32 %12, 1
  br i1 %13, label %80, label %14

14:                                               ; preds = %10, %3
  %15 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 0, ptr %15, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 1, ptr %16, align 4, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %0, i64 96
  store i32 1, ptr %17, align 8, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 0, ptr %18, align 8, !tbaa !19
  tail call void @HAL_DFSDM_FilterMspInit(ptr noundef nonnull %0)
  %19 = load ptr, ptr %0, align 8, !tbaa !5
  %20 = load volatile i32, ptr %19, align 4, !tbaa !20
  %21 = and i32 %20, -524289
  store volatile i32 %21, ptr %19, align 4, !tbaa !20
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = getelementptr inbounds i8, ptr %0, i64 12
  %24 = load i32, ptr %23, align 4, !tbaa !22
  %25 = icmp eq i32 %24, 1
  %26 = load volatile i32, ptr %19, align 4, !tbaa !20
  %27 = and i32 %26, -536870913
  %masksel = select i1 %25, i32 536870912, i32 0
  %.sink = or disjoint i32 %27, %masksel
  store volatile i32 %.sink, ptr %19, align 4, !tbaa !20
  %28 = getelementptr inbounds i8, ptr %0, i64 16
  %29 = load i32, ptr %28, align 8, !tbaa !23
  %30 = icmp eq i32 %29, 1
  %31 = load volatile i32, ptr %19, align 4, !tbaa !20
  %32 = and i32 %31, -2097153
  %masksel45 = select i1 %30, i32 2097152, i32 0
  %.sink42 = or disjoint i32 %32, %masksel45
  store volatile i32 %.sink42, ptr %19, align 4, !tbaa !20
  %33 = load volatile i32, ptr %19, align 4, !tbaa !20
  %34 = and i32 %33, -32521
  store volatile i32 %34, ptr %19, align 4, !tbaa !20
  %35 = getelementptr inbounds i8, ptr %0, i64 20
  %36 = load i32, ptr %35, align 4, !tbaa !15
  %37 = icmp eq i32 %36, 2
  br i1 %37, label %38, label %43

38:                                               ; preds = %14
  %39 = getelementptr inbounds i8, ptr %0, i64 32
  %40 = load i32, ptr %39, align 4, !tbaa !24
  %41 = load volatile i32, ptr %19, align 4, !tbaa !20
  %42 = or i32 %41, %40
  store volatile i32 %42, ptr %19, align 4, !tbaa !20
  br label %43

43:                                               ; preds = %38, %14
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  %45 = load i32, ptr %44, align 4, !tbaa !25
  %46 = icmp eq i32 %45, 1
  %47 = load volatile i32, ptr %19, align 4, !tbaa !20
  %48 = and i32 %47, -17
  %masksel46 = select i1 %46, i32 16, i32 0
  %.sink43 = or disjoint i32 %48, %masksel46
  store volatile i32 %.sink43, ptr %19, align 4, !tbaa !20
  %49 = getelementptr inbounds i8, ptr %0, i64 28
  %50 = load i32, ptr %49, align 4, !tbaa !26
  %51 = icmp eq i32 %50, 1
  %52 = load volatile i32, ptr %19, align 4, !tbaa !20
  %53 = and i32 %52, -33
  %masksel47 = select i1 %51, i32 32, i32 0
  %.sink44 = or disjoint i32 %53, %masksel47
  store volatile i32 %.sink44, ptr %19, align 4, !tbaa !20
  %54 = getelementptr inbounds i8, ptr %19, i64 20
  %55 = load volatile i32, ptr %54, align 4, !tbaa !27
  %56 = and i32 %55, 469827328
  store volatile i32 %56, ptr %54, align 4, !tbaa !27
  %57 = getelementptr inbounds i8, ptr %0, i64 40
  %58 = load i32, ptr %57, align 8, !tbaa !28
  %59 = getelementptr inbounds i8, ptr %0, i64 44
  %60 = load i32, ptr %59, align 4, !tbaa !29
  %61 = shl i32 %60, 16
  %62 = add i32 %61, -65536
  %63 = or i32 %62, %58
  %64 = getelementptr inbounds i8, ptr %0, i64 48
  %65 = load i32, ptr %64, align 8, !tbaa !30
  %66 = add i32 %65, -1
  %67 = or i32 %63, %66
  %68 = load volatile i32, ptr %54, align 4, !tbaa !27
  %69 = or i32 %67, %68
  store volatile i32 %69, ptr %54, align 4, !tbaa !27
  %70 = load i32, ptr %22, align 8, !tbaa !14
  %71 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 %70, ptr %71, align 4, !tbaa !31
  %72 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 %36, ptr %72, align 8, !tbaa !32
  %73 = getelementptr inbounds i8, ptr %0, i64 36
  %74 = load i32, ptr %73, align 4, !tbaa !33
  %75 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 %74, ptr %75, align 4, !tbaa !34
  %76 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 %45, ptr %76, align 8, !tbaa !35
  %77 = load volatile i32, ptr %19, align 4, !tbaa !20
  %78 = or i32 %77, 1
  store volatile i32 %78, ptr %19, align 4, !tbaa !20
  %79 = getelementptr inbounds i8, ptr %0, i64 100
  store i32 1, ptr %79, align 4, !tbaa !36
  br label %80

80:                                               ; preds = %6, %10, %1, %43
  %.0 = phi i32 [ 0, %43 ], [ 1, %1 ], [ 1, %10 ], [ 1, %6 ]
  ret i32 %.0
}

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

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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !7, i64 56, !7, i64 64, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !13, i64 12, !11, i64 32}
!11 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!14 = !{!6, !12, i64 8}
!15 = !{!6, !12, i64 20}
!16 = !{!6, !12, i64 72}
!17 = !{!6, !12, i64 92}
!18 = !{!6, !12, i64 96}
!19 = !{!6, !12, i64 104}
!20 = !{!21, !12, i64 0}
!21 = !{!"", !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, !12, i64 56}
!22 = !{!6, !12, i64 12}
!23 = !{!6, !12, i64 16}
!24 = !{!6, !12, i64 32}
!25 = !{!6, !12, i64 24}
!26 = !{!6, !12, i64 28}
!27 = !{!21, !12, i64 20}
!28 = !{!6, !12, i64 40}
!29 = !{!6, !12, i64 44}
!30 = !{!6, !12, i64 48}
!31 = !{!6, !12, i64 76}
!32 = !{!6, !12, i64 80}
!33 = !{!6, !12, i64 36}
!34 = !{!6, !12, i64 84}
!35 = !{!6, !12, i64 88}
!36 = !{!6, !12, i64 100}


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