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

; 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_Channel_HandleTypeDef = type { ptr, %struct.DFSDM_Channel_InitTypeDef, i32 }
%struct.DFSDM_Channel_InitTypeDef = type { %struct.DFSDM_Channel_OutputClockTypeDef, %struct.DFSDM_Channel_InputTypeDef, %struct.DFSDM_Channel_SerialInterfaceTypeDef, %struct.DFSDM_Channel_AwdTypeDef, i32, i32 }
%struct.DFSDM_Channel_OutputClockTypeDef = type { i32, i32, i32 }
%struct.DFSDM_Channel_InputTypeDef = type { i32, i32, i32 }
%struct.DFSDM_Channel_SerialInterfaceTypeDef = type { i32, i32 }
%struct.DFSDM_Channel_AwdTypeDef = type { i32, i32 }
%struct.DFSDM_Channel_TypeDef = type { i32, i32, i32, i32, i32 }

@a_dfsdm1ChannelHandle = external hidden global [8 x ptr], align 16
@v_dfsdm1ChannelCounter = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_DFSDM_ChannelInit(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 %186

7:                                                ; preds = %1
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %8, i32 0, i32 0
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = call i32 @DFSDM_GetChannelFromInstance(ptr noundef %10)
  %12 = zext i32 %11 to i64
  %13 = getelementptr inbounds [8 x ptr], ptr @a_dfsdm1ChannelHandle, i64 0, i64 %12
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %17

16:                                               ; preds = %7
  store i32 1, ptr %2, align 4
  br label %186

17:                                               ; preds = %7
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  call void @HAL_DFSDM_ChannelMspInit(ptr noundef %18)
  %19 = load volatile i32, ptr @v_dfsdm1ChannelCounter, align 4, !tbaa !15
  %20 = add i32 %19, 1
  store volatile i32 %20, ptr @v_dfsdm1ChannelCounter, align 4, !tbaa !15
  %21 = load volatile i32, ptr @v_dfsdm1ChannelCounter, align 4, !tbaa !15
  %22 = icmp eq i32 %21, 1
  br i1 %22, label %23, label %60

23:                                               ; preds = %17
  %24 = load volatile i32, ptr inttoptr (i64 1073836032 to ptr), align 4, !tbaa !16
  %25 = zext i32 %24 to i64
  %26 = and i64 %25, -1073741825
  %27 = trunc i64 %26 to i32
  store volatile i32 %27, ptr inttoptr (i64 1073836032 to ptr), align 4, !tbaa !16
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %28, i32 0, i32 1
  %30 = getelementptr inbounds %struct.DFSDM_Channel_InitTypeDef, ptr %29, i32 0, i32 0
  %31 = getelementptr inbounds %struct.DFSDM_Channel_OutputClockTypeDef, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 4, !tbaa !18
  %33 = load volatile i32, ptr inttoptr (i64 1073836032 to ptr), align 4, !tbaa !16
  %34 = or i32 %33, %32
  store volatile i32 %34, ptr inttoptr (i64 1073836032 to ptr), align 4, !tbaa !16
  %35 = load volatile i32, ptr inttoptr (i64 1073836032 to ptr), align 4, !tbaa !16
  %36 = zext i32 %35 to i64
  %37 = and i64 %36, -16711681
  %38 = trunc i64 %37 to i32
  store volatile i32 %38, ptr inttoptr (i64 1073836032 to ptr), align 4, !tbaa !16
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %39, i32 0, i32 1
  %41 = getelementptr inbounds %struct.DFSDM_Channel_InitTypeDef, ptr %40, i32 0, i32 0
  %42 = getelementptr inbounds %struct.DFSDM_Channel_OutputClockTypeDef, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 8, !tbaa !19
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %55

45:                                               ; preds = %23
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %46, i32 0, i32 1
  %48 = getelementptr inbounds %struct.DFSDM_Channel_InitTypeDef, ptr %47, i32 0, i32 0
  %49 = getelementptr inbounds %struct.DFSDM_Channel_OutputClockTypeDef, ptr %48, i32 0, i32 2
  %50 = load i32, ptr %49, align 8, !tbaa !20
  %51 = sub i32 %50, 1
  %52 = shl i32 %51, 16
  %53 = load volatile i32, ptr inttoptr (i64 1073836032 to ptr), align 4, !tbaa !16
  %54 = or i32 %53, %52
  store volatile i32 %54, ptr inttoptr (i64 1073836032 to ptr), align 4, !tbaa !16
  br label %55

55:                                               ; preds = %45, %23
  %56 = load volatile i32, ptr inttoptr (i64 1073836032 to ptr), align 4, !tbaa !16
  %57 = zext i32 %56 to i64
  %58 = or i64 %57, 2147483648
  %59 = trunc i64 %58 to i32
  store volatile i32 %59, ptr inttoptr (i64 1073836032 to ptr), align 4, !tbaa !16
  br label %60

60:                                               ; preds = %55, %17
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = getelementptr inbounds %struct.DFSDM_Channel_TypeDef, ptr %63, i32 0, i32 0
  %65 = load volatile i32, ptr %64, align 4, !tbaa !16
  %66 = zext i32 %65 to i64
  %67 = and i64 %66, -61697
  %68 = trunc i64 %67 to i32
  store volatile i32 %68, ptr %64, align 4, !tbaa !16
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %69, i32 0, i32 1
  %71 = getelementptr inbounds %struct.DFSDM_Channel_InitTypeDef, ptr %70, i32 0, i32 1
  %72 = getelementptr inbounds %struct.DFSDM_Channel_InputTypeDef, ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 4, !tbaa !21
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %74, i32 0, i32 1
  %76 = getelementptr inbounds %struct.DFSDM_Channel_InitTypeDef, ptr %75, i32 0, i32 1
  %77 = getelementptr inbounds %struct.DFSDM_Channel_InputTypeDef, ptr %76, i32 0, i32 1
  %78 = load i32, ptr %77, align 4, !tbaa !22
  %79 = or i32 %73, %78
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %80, i32 0, i32 1
  %82 = getelementptr inbounds %struct.DFSDM_Channel_InitTypeDef, ptr %81, i32 0, i32 1
  %83 = getelementptr inbounds %struct.DFSDM_Channel_InputTypeDef, ptr %82, i32 0, i32 2
  %84 = load i32, ptr %83, align 4, !tbaa !23
  %85 = or i32 %79, %84
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %86, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.DFSDM_Channel_TypeDef, ptr %88, i32 0, i32 0
  %90 = load volatile i32, ptr %89, align 4, !tbaa !16
  %91 = or i32 %90, %85
  store volatile i32 %91, ptr %89, align 4, !tbaa !16
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct.DFSDM_Channel_TypeDef, ptr %94, i32 0, i32 0
  %96 = load volatile i32, ptr %95, align 4, !tbaa !16
  %97 = zext i32 %96 to i64
  %98 = and i64 %97, -16
  %99 = trunc i64 %98 to i32
  store volatile i32 %99, ptr %95, align 4, !tbaa !16
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %100, i32 0, i32 1
  %102 = getelementptr inbounds %struct.DFSDM_Channel_InitTypeDef, ptr %101, i32 0, i32 2
  %103 = getelementptr inbounds %struct.DFSDM_Channel_SerialInterfaceTypeDef, ptr %102, i32 0, i32 0
  %104 = load i32, ptr %103, align 8, !tbaa !24
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %105, i32 0, i32 1
  %107 = getelementptr inbounds %struct.DFSDM_Channel_InitTypeDef, ptr %106, i32 0, i32 2
  %108 = getelementptr inbounds %struct.DFSDM_Channel_SerialInterfaceTypeDef, ptr %107, i32 0, i32 1
  %109 = load i32, ptr %108, align 4, !tbaa !25
  %110 = or i32 %104, %109
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !9
  %114 = getelementptr inbounds %struct.DFSDM_Channel_TypeDef, ptr %113, i32 0, i32 0
  %115 = load volatile i32, ptr %114, align 4, !tbaa !16
  %116 = or i32 %115, %110
  store volatile i32 %116, ptr %114, align 4, !tbaa !16
  %117 = load ptr, ptr %3, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %117, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = getelementptr inbounds %struct.DFSDM_Channel_TypeDef, ptr %119, i32 0, i32 2
  %121 = load volatile i32, ptr %120, align 4, !tbaa !26
  %122 = zext i32 %121 to i64
  %123 = and i64 %122, -14614529
  %124 = trunc i64 %123 to i32
  store volatile i32 %124, ptr %120, align 4, !tbaa !26
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %125, i32 0, i32 1
  %127 = getelementptr inbounds %struct.DFSDM_Channel_InitTypeDef, ptr %126, i32 0, i32 3
  %128 = getelementptr inbounds %struct.DFSDM_Channel_AwdTypeDef, ptr %127, i32 0, i32 0
  %129 = load i32, ptr %128, align 8, !tbaa !27
  %130 = load ptr, ptr %3, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %130, i32 0, i32 1
  %132 = getelementptr inbounds %struct.DFSDM_Channel_InitTypeDef, ptr %131, i32 0, i32 3
  %133 = getelementptr inbounds %struct.DFSDM_Channel_AwdTypeDef, ptr %132, i32 0, i32 1
  %134 = load i32, ptr %133, align 4, !tbaa !28
  %135 = sub i32 %134, 1
  %136 = shl i32 %135, 16
  %137 = or i32 %129, %136
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !9
  %141 = getelementptr inbounds %struct.DFSDM_Channel_TypeDef, ptr %140, i32 0, i32 2
  %142 = load volatile i32, ptr %141, align 4, !tbaa !26
  %143 = or i32 %142, %137
  store volatile i32 %143, ptr %141, align 4, !tbaa !26
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !9
  %147 = getelementptr inbounds %struct.DFSDM_Channel_TypeDef, ptr %146, i32 0, i32 1
  %148 = load volatile i32, ptr %147, align 4, !tbaa !29
  %149 = zext i32 %148 to i64
  %150 = and i64 %149, -4294967289
  %151 = trunc i64 %150 to i32
  store volatile i32 %151, ptr %147, align 4, !tbaa !29
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %152, i32 0, i32 1
  %154 = getelementptr inbounds %struct.DFSDM_Channel_InitTypeDef, ptr %153, i32 0, i32 4
  %155 = load i32, ptr %154, align 8, !tbaa !30
  %156 = shl i32 %155, 8
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %157, i32 0, i32 1
  %159 = getelementptr inbounds %struct.DFSDM_Channel_InitTypeDef, ptr %158, i32 0, i32 5
  %160 = load i32, ptr %159, align 4, !tbaa !31
  %161 = shl i32 %160, 3
  %162 = or i32 %156, %161
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %163, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8, !tbaa !9
  %166 = getelementptr inbounds %struct.DFSDM_Channel_TypeDef, ptr %165, i32 0, i32 1
  %167 = load volatile i32, ptr %166, align 4, !tbaa !29
  %168 = or i32 %167, %162
  store volatile i32 %168, ptr %166, align 4, !tbaa !29
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %169, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.DFSDM_Channel_TypeDef, ptr %171, i32 0, i32 0
  %173 = load volatile i32, ptr %172, align 4, !tbaa !16
  %174 = zext i32 %173 to i64
  %175 = or i64 %174, 128
  %176 = trunc i64 %175 to i32
  store volatile i32 %176, ptr %172, align 4, !tbaa !16
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %177, i32 0, i32 2
  store i32 1, ptr %178, align 8, !tbaa !32
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.DFSDM_Channel_HandleTypeDef, ptr %180, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8, !tbaa !9
  %183 = call i32 @DFSDM_GetChannelFromInstance(ptr noundef %182)
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds [8 x ptr], ptr @a_dfsdm1ChannelHandle, i64 0, i64 %184
  store ptr %179, ptr %185, align 8, !tbaa !5
  store i32 0, ptr %2, align 4
  br label %186

186:                                              ; preds = %60, %16, %6
  %187 = load i32, ptr %2, align 4
  ret i32 %187
}

; Function Attrs: nounwind uwtable
declare hidden i32 @DFSDM_GetChannelFromInstance(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_DFSDM_ChannelMspInit(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, !13, i64 56}
!11 = !{!"", !12, i64 0, !12, i64 12, !14, i64 24, !14, i64 32, !13, i64 40, !13, i64 44}
!12 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!"", !13, i64 0, !13, i64 4}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !13, i64 0}
!17 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16}
!18 = !{!10, !13, i64 12}
!19 = !{!10, !13, i64 8}
!20 = !{!10, !13, i64 16}
!21 = !{!10, !13, i64 20}
!22 = !{!10, !13, i64 24}
!23 = !{!10, !13, i64 28}
!24 = !{!10, !13, i64 32}
!25 = !{!10, !13, i64 36}
!26 = !{!17, !13, i64 8}
!27 = !{!10, !13, i64 40}
!28 = !{!10, !13, i64 44}
!29 = !{!17, !13, i64 4}
!30 = !{!10, !13, i64 48}
!31 = !{!10, !13, i64 52}
!32 = !{!10, !13, i64 56}


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

@a_dfsdm1ChannelHandle = external hidden local_unnamed_addr global [8 x ptr], align 16
@v_dfsdm1ChannelCounter = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @HAL_DFSDM_ChannelInit(ptr noundef %0) local_unnamed_addr #0 {
  %2 = icmp eq ptr %0, null
  br i1 %2, label %89, label %3

3:                                                ; preds = %1
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = tail call i32 @DFSDM_GetChannelFromInstance(ptr noundef %4)
  %6 = zext i32 %5 to i64
  %7 = getelementptr inbounds [8 x ptr], ptr @a_dfsdm1ChannelHandle, i64 0, i64 %6
  %8 = load ptr, ptr %7, align 8, !tbaa !14
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %9, label %89

9:                                                ; preds = %3
  tail call void @HAL_DFSDM_ChannelMspInit(ptr noundef nonnull %0)
  %10 = load volatile i32, ptr @v_dfsdm1ChannelCounter, align 4, !tbaa !15
  %11 = add i32 %10, 1
  store volatile i32 %11, ptr @v_dfsdm1ChannelCounter, align 4, !tbaa !15
  %12 = load volatile i32, ptr @v_dfsdm1ChannelCounter, align 4, !tbaa !15
  %13 = icmp eq i32 %12, 1
  br i1 %13, label %14, label %36

14:                                               ; preds = %9
  %15 = load volatile i32, ptr inttoptr (i64 1073836032 to ptr), align 4096, !tbaa !16
  %16 = and i32 %15, -1073741825
  store volatile i32 %16, ptr inttoptr (i64 1073836032 to ptr), align 4096, !tbaa !16
  %17 = getelementptr inbounds i8, ptr %0, i64 8
  %18 = getelementptr inbounds i8, ptr %0, i64 12
  %19 = load i32, ptr %18, align 4, !tbaa !18
  %20 = load volatile i32, ptr inttoptr (i64 1073836032 to ptr), align 4096, !tbaa !16
  %21 = or i32 %20, %19
  store volatile i32 %21, ptr inttoptr (i64 1073836032 to ptr), align 4096, !tbaa !16
  %22 = load volatile i32, ptr inttoptr (i64 1073836032 to ptr), align 4096, !tbaa !16
  %23 = and i32 %22, -16711681
  store volatile i32 %23, ptr inttoptr (i64 1073836032 to ptr), align 4096, !tbaa !16
  %24 = load i32, ptr %17, align 8, !tbaa !19
  %25 = icmp eq i32 %24, 1
  br i1 %25, label %26, label %33

26:                                               ; preds = %14
  %27 = getelementptr inbounds i8, ptr %0, i64 16
  %28 = load i32, ptr %27, align 8, !tbaa !20
  %29 = shl i32 %28, 16
  %30 = add i32 %29, -65536
  %31 = load volatile i32, ptr inttoptr (i64 1073836032 to ptr), align 4096, !tbaa !16
  %32 = or i32 %30, %31
  store volatile i32 %32, ptr inttoptr (i64 1073836032 to ptr), align 4096, !tbaa !16
  br label %33

33:                                               ; preds = %26, %14
  %34 = load volatile i32, ptr inttoptr (i64 1073836032 to ptr), align 4096, !tbaa !16
  %35 = or i32 %34, -2147483648
  store volatile i32 %35, ptr inttoptr (i64 1073836032 to ptr), align 4096, !tbaa !16
  br label %36

36:                                               ; preds = %33, %9
  %37 = load ptr, ptr %0, align 8, !tbaa !5
  %38 = load volatile i32, ptr %37, align 4, !tbaa !16
  %39 = and i32 %38, -61697
  store volatile i32 %39, ptr %37, align 4, !tbaa !16
  %40 = getelementptr inbounds i8, ptr %0, i64 20
  %41 = load i32, ptr %40, align 4, !tbaa !21
  %42 = getelementptr inbounds i8, ptr %0, i64 24
  %43 = load i32, ptr %42, align 4, !tbaa !22
  %44 = or i32 %43, %41
  %45 = getelementptr inbounds i8, ptr %0, i64 28
  %46 = load i32, ptr %45, align 4, !tbaa !23
  %47 = or i32 %44, %46
  %48 = load volatile i32, ptr %37, align 4, !tbaa !16
  %49 = or i32 %47, %48
  store volatile i32 %49, ptr %37, align 4, !tbaa !16
  %50 = load volatile i32, ptr %37, align 4, !tbaa !16
  %51 = and i32 %50, -16
  store volatile i32 %51, ptr %37, align 4, !tbaa !16
  %52 = getelementptr inbounds i8, ptr %0, i64 32
  %53 = load i32, ptr %52, align 8, !tbaa !24
  %54 = getelementptr inbounds i8, ptr %0, i64 36
  %55 = load i32, ptr %54, align 4, !tbaa !25
  %56 = or i32 %55, %53
  %57 = load volatile i32, ptr %37, align 4, !tbaa !16
  %58 = or i32 %56, %57
  store volatile i32 %58, ptr %37, align 4, !tbaa !16
  %59 = getelementptr inbounds i8, ptr %37, i64 8
  %60 = load volatile i32, ptr %59, align 4, !tbaa !26
  %61 = and i32 %60, -14614529
  store volatile i32 %61, ptr %59, align 4, !tbaa !26
  %62 = getelementptr inbounds i8, ptr %0, i64 40
  %63 = load i32, ptr %62, align 8, !tbaa !27
  %64 = getelementptr inbounds i8, ptr %0, i64 44
  %65 = load i32, ptr %64, align 4, !tbaa !28
  %66 = shl i32 %65, 16
  %67 = add i32 %66, -65536
  %68 = load volatile i32, ptr %59, align 4, !tbaa !26
  %69 = or i32 %68, %63
  %70 = or i32 %69, %67
  store volatile i32 %70, ptr %59, align 4, !tbaa !26
  %71 = getelementptr inbounds i8, ptr %37, i64 4
  %72 = load volatile i32, ptr %71, align 4, !tbaa !29
  %73 = and i32 %72, 7
  store volatile i32 %73, ptr %71, align 4, !tbaa !29
  %74 = getelementptr inbounds i8, ptr %0, i64 48
  %75 = load i32, ptr %74, align 8, !tbaa !30
  %76 = shl i32 %75, 8
  %77 = getelementptr inbounds i8, ptr %0, i64 52
  %78 = load i32, ptr %77, align 4, !tbaa !31
  %79 = shl i32 %78, 3
  %80 = or i32 %79, %76
  %81 = load volatile i32, ptr %71, align 4, !tbaa !29
  %82 = or i32 %80, %81
  store volatile i32 %82, ptr %71, align 4, !tbaa !29
  %83 = load volatile i32, ptr %37, align 4, !tbaa !16
  %84 = or i32 %83, 128
  store volatile i32 %84, ptr %37, align 4, !tbaa !16
  %85 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 1, ptr %85, align 8, !tbaa !32
  %86 = tail call i32 @DFSDM_GetChannelFromInstance(ptr noundef nonnull %37)
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds [8 x ptr], ptr @a_dfsdm1ChannelHandle, i64 0, i64 %87
  store ptr %0, ptr %88, align 8, !tbaa !14
  br label %89

89:                                               ; preds = %3, %1, %36
  %.0 = phi i32 [ 0, %36 ], [ 1, %1 ], [ 1, %3 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden i32 @DFSDM_GetChannelFromInstance(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @HAL_DFSDM_ChannelMspInit(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, !12, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !11, i64 12, !13, i64 24, !13, i64 32, !12, i64 40, !12, i64 44}
!11 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!"", !12, i64 0, !12, i64 4}
!14 = !{!7, !7, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !12, i64 0}
!17 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!18 = !{!6, !12, i64 12}
!19 = !{!6, !12, i64 8}
!20 = !{!6, !12, i64 16}
!21 = !{!6, !12, i64 20}
!22 = !{!6, !12, i64 24}
!23 = !{!6, !12, i64 28}
!24 = !{!6, !12, i64 32}
!25 = !{!6, !12, i64 36}
!26 = !{!17, !12, i64 8}
!27 = !{!6, !12, i64 40}
!28 = !{!6, !12, i64 44}
!29 = !{!17, !12, i64 4}
!30 = !{!6, !12, i64 48}
!31 = !{!6, !12, i64 52}
!32 = !{!6, !12, i64 56}


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