; LLVM IR from ctlst-tech/catpilot :: bsp/mcu/periph/usb/stm32/USB_DEVICE/Target (usbd_conf)

; 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.GPIO_InitTypeDef = type { i32, i32, i32, i32, i32 }
%struct.RCC_PeriphCLKInitTypeDef = type { i32, %struct.RCC_PLL2InitTypeDef, %struct.RCC_PLL3InitTypeDef, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.RCC_PLL2InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.RCC_PLL3InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.PCD_HandleTypeDef = type { ptr, %struct.USB_OTG_CfgTypeDef, i8, [16 x %struct.USB_OTG_EPTypeDef], [16 x %struct.USB_OTG_EPTypeDef], i32, i32, i32, [12 x i32], i32, i32, i32, i32, ptr }
%struct.USB_OTG_CfgTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.USB_OTG_EPTypeDef = type { i8, i8, i8, i8, i8, i8, i16, i32, ptr, i32, i32, i32 }
%struct.RCC_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [9 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32] }

; Function Attrs: nounwind uwtable
declare dso_local void @Error_Handler() #0

; Function Attrs: nounwind uwtable
define dso_local void @HAL_PCD_MspInit(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.GPIO_InitTypeDef, align 4
  %4 = alloca %struct.RCC_PeriphCLKInitTypeDef, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 20, ptr %3) #4
  call void @llvm.memset.p0.i64(ptr align 4 %3, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 188, ptr %4) #4
  call void @llvm.memset.p0.i64(ptr align 4 %4, i8 0, i64 188, i1 false)
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.PCD_HandleTypeDef, ptr %7, i32 0, i32 0
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = icmp eq ptr %9, inttoptr (i64 1074266112 to ptr)
  br i1 %10, label %11, label %64

11:                                               ; preds = %1
  %12 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 0
  store i32 262144, ptr %12, align 4, !tbaa !13
  %13 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 2
  %14 = getelementptr inbounds %struct.RCC_PLL3InitTypeDef, ptr %13, i32 0, i32 0
  store i32 6, ptr %14, align 4, !tbaa !16
  %15 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 2
  %16 = getelementptr inbounds %struct.RCC_PLL3InitTypeDef, ptr %15, i32 0, i32 1
  store i32 72, ptr %16, align 4, !tbaa !17
  %17 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 2
  %18 = getelementptr inbounds %struct.RCC_PLL3InitTypeDef, ptr %17, i32 0, i32 2
  store i32 3, ptr %18, align 4, !tbaa !18
  %19 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 2
  %20 = getelementptr inbounds %struct.RCC_PLL3InitTypeDef, ptr %19, i32 0, i32 3
  store i32 6, ptr %20, align 4, !tbaa !19
  %21 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 2
  %22 = getelementptr inbounds %struct.RCC_PLL3InitTypeDef, ptr %21, i32 0, i32 4
  store i32 9, ptr %22, align 4, !tbaa !20
  %23 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 2
  %24 = getelementptr inbounds %struct.RCC_PLL3InitTypeDef, ptr %23, i32 0, i32 5
  store i32 2048, ptr %24, align 4, !tbaa !21
  %25 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 2
  %26 = getelementptr inbounds %struct.RCC_PLL3InitTypeDef, ptr %25, i32 0, i32 7
  store i32 0, ptr %26, align 4, !tbaa !22
  %27 = getelementptr inbounds %struct.RCC_PeriphCLKInitTypeDef, ptr %4, i32 0, i32 19
  store i32 2097152, ptr %27, align 4, !tbaa !23
  %28 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef %4)
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %31

30:                                               ; preds = %11
  call void @Error_Handler()
  br label %31

31:                                               ; preds = %30, %11
  call void @HAL_PWREx_EnableUSBVoltageDetector()
  br label %32

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %33 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !24
  %34 = zext i32 %33 to i64
  %35 = or i64 %34, 1
  %36 = trunc i64 %35 to i32
  store volatile i32 %36, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !24
  %37 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 48), align 4, !tbaa !24
  %38 = zext i32 %37 to i64
  %39 = and i64 %38, 1
  %40 = trunc i64 %39 to i32
  store volatile i32 %40, ptr %5, align 4, !tbaa !26
  %41 = load volatile i32, ptr %5, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %42

42:                                               ; preds = %32
  br label %43

43:                                               ; preds = %42
  %44 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 0
  store i32 6400, ptr %44, align 4, !tbaa !27
  %45 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 1
  store i32 2, ptr %45, align 4, !tbaa !29
  %46 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 2
  store i32 0, ptr %46, align 4, !tbaa !30
  %47 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 3
  store i32 0, ptr %47, align 4, !tbaa !31
  %48 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 4
  store i32 10, ptr %48, align 4, !tbaa !32
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476526080 to ptr), ptr noundef %3)
  %49 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 0
  store i32 512, ptr %49, align 4, !tbaa !27
  %50 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 1
  store i32 0, ptr %50, align 4, !tbaa !29
  %51 = getelementptr inbounds %struct.GPIO_InitTypeDef, ptr %3, i32 0, i32 2
  store i32 0, ptr %51, align 4, !tbaa !30
  call void @HAL_GPIO_Init(ptr noundef inttoptr (i64 1476526080 to ptr), ptr noundef %3)
  br label %52

52:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %53 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 46), align 4, !tbaa !33
  %54 = zext i32 %53 to i64
  %55 = or i64 %54, 134217728
  %56 = trunc i64 %55 to i32
  store volatile i32 %56, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 46), align 4, !tbaa !33
  %57 = load volatile i32, ptr getelementptr inbounds (%struct.RCC_TypeDef, ptr inttoptr (i64 1476543488 to ptr), i32 0, i32 46), align 4, !tbaa !33
  %58 = zext i32 %57 to i64
  %59 = and i64 %58, 134217728
  %60 = trunc i64 %59 to i32
  store volatile i32 %60, ptr %6, align 4, !tbaa !26
  %61 = load volatile i32, ptr %6, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %62

62:                                               ; preds = %52
  br label %63

63:                                               ; preds = %62
  call void @HAL_NVIC_SetPriority(i32 noundef 98, i32 noundef 10, i32 noundef 0)
  call void @HAL_NVIC_EnableIRQ(i32 noundef 98)
  call void @HAL_NVIC_SetPriority(i32 noundef 99, i32 noundef 10, i32 noundef 0)
  call void @HAL_NVIC_EnableIRQ(i32 noundef 99)
  call void @HAL_NVIC_SetPriority(i32 noundef 101, i32 noundef 10, i32 noundef 0)
  call void @HAL_NVIC_EnableIRQ(i32 noundef 101)
  br label %64

64:                                               ; preds = %63, %1
  call void @llvm.lifetime.end.p0(i64 188, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr %3) #4
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef) #3

declare void @HAL_PWREx_EnableUSBVoltageDetector() #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare void @HAL_GPIO_Init(ptr noundef, ptr noundef) #3

declare void @HAL_NVIC_SetPriority(i32 noundef, i32 noundef, i32 noundef) #3

declare void @HAL_NVIC_EnableIRQ(i32 noundef) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 #4 = { 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, !6, i64 0}
!10 = !{!"", !6, i64 0, !11, i64 8, !7, i64 60, !7, i64 64, !7, i64 704, !12, i64 1344, !12, i64 1348, !12, i64 1352, !7, i64 1356, !12, i64 1404, !12, i64 1408, !12, i64 1412, !12, i64 1416, !6, i64 1424}
!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, i64 48}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !15, i64 4, !15, i64 36, !12, i64 68, !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, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !12, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !12, i64 172, !12, i64 176, !12, i64 180, !12, i64 184}
!15 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!16 = !{!14, !12, i64 36}
!17 = !{!14, !12, i64 40}
!18 = !{!14, !12, i64 44}
!19 = !{!14, !12, i64 48}
!20 = !{!14, !12, i64 52}
!21 = !{!14, !12, i64 56}
!22 = !{!14, !12, i64 64}
!23 = !{!14, !12, i64 132}
!24 = !{!25, !12, i64 224}
!25 = !{!"", !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, !12, i64 60, !12, i64 64, !12, i64 68, !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, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144, !12, i64 148, !12, i64 152, !12, i64 156, !12, i64 160, !12, i64 164, !12, i64 168, !7, i64 172, !12, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !12, i64 240, !12, i64 244, !12, i64 248, !12, i64 252, !12, i64 256, !12, i64 260, !12, i64 264, !12, i64 268, !12, i64 272, !12, i64 276, !12, i64 280, !12, i64 284, !7, i64 288}
!26 = !{!12, !12, i64 0}
!27 = !{!28, !12, i64 0}
!28 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!29 = !{!28, !12, i64 4}
!30 = !{!28, !12, i64 8}
!31 = !{!28, !12, i64 12}
!32 = !{!28, !12, i64 16}
!33 = !{!25, !12, i64 216}


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

%struct.GPIO_InitTypeDef = type { i32, i32, i32, i32, i32 }
%struct.RCC_PeriphCLKInitTypeDef = type { i32, %struct.RCC_PLL2InitTypeDef, %struct.RCC_PLL3InitTypeDef, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.RCC_PLL2InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.RCC_PLL3InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
declare dso_local void @Error_Handler() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @HAL_PCD_MspInit(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = alloca %struct.GPIO_InitTypeDef, align 16
  %3 = alloca %struct.RCC_PeriphCLKInitTypeDef, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %2) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %2, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 188, ptr nonnull %3) #4
  %6 = getelementptr inbounds i8, ptr %3, i64 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(188) %6, i8 0, i64 184, i1 false)
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = icmp eq ptr %7, inttoptr (i64 1074266112 to ptr)
  br i1 %8, label %9, label %28

9:                                                ; preds = %1
  store i32 262144, ptr %3, align 4, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %3, i64 36
  store <4 x i32> <i32 6, i32 72, i32 3, i32 6>, ptr %10, align 4, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %3, i64 52
  store i32 9, ptr %11, align 4, !tbaa !16
  %12 = getelementptr inbounds i8, ptr %3, i64 56
  store i32 2048, ptr %12, align 4, !tbaa !17
  %13 = getelementptr inbounds i8, ptr %3, i64 132
  store i32 2097152, ptr %13, align 4, !tbaa !18
  %14 = call i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef nonnull %3) #4
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %16, label %15

15:                                               ; preds = %9
  call void @Error_Handler()
  br label %16

16:                                               ; preds = %15, %9
  call void @HAL_PWREx_EnableUSBVoltageDetector() #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4)
  %17 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !19
  %18 = or i32 %17, 1
  store volatile i32 %18, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !19
  %19 = load volatile i32, ptr inttoptr (i64 1476543712 to ptr), align 32, !tbaa !19
  %20 = and i32 %19, 1
  store volatile i32 %20, ptr %4, align 4, !tbaa !15
  %.0..0..0..0.1 = load volatile i32, ptr %4, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4)
  %21 = getelementptr inbounds i8, ptr %2, i64 4
  %22 = getelementptr inbounds i8, ptr %2, i64 8
  store <4 x i32> <i32 6400, i32 2, i32 0, i32 0>, ptr %2, align 16, !tbaa !15
  %23 = getelementptr inbounds i8, ptr %2, i64 16
  store i32 10, ptr %23, align 16, !tbaa !21
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476526080 to ptr), ptr noundef nonnull %2) #4
  store i32 512, ptr %2, align 16, !tbaa !23
  store i32 0, ptr %21, align 4, !tbaa !24
  store i32 0, ptr %22, align 8, !tbaa !25
  call void @HAL_GPIO_Init(ptr noundef nonnull inttoptr (i64 1476526080 to ptr), ptr noundef nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5)
  %24 = load volatile i32, ptr inttoptr (i64 1476543704 to ptr), align 8, !tbaa !26
  %25 = or i32 %24, 134217728
  store volatile i32 %25, ptr inttoptr (i64 1476543704 to ptr), align 8, !tbaa !26
  %26 = load volatile i32, ptr inttoptr (i64 1476543704 to ptr), align 8, !tbaa !26
  %27 = and i32 %26, 134217728
  store volatile i32 %27, ptr %5, align 4, !tbaa !15
  %.0..0..0..0. = load volatile i32, ptr %5, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5)
  call void @HAL_NVIC_SetPriority(i32 noundef 98, i32 noundef 10, i32 noundef 0) #4
  call void @HAL_NVIC_EnableIRQ(i32 noundef 98) #4
  call void @HAL_NVIC_SetPriority(i32 noundef 99, i32 noundef 10, i32 noundef 0) #4
  call void @HAL_NVIC_EnableIRQ(i32 noundef 99) #4
  call void @HAL_NVIC_SetPriority(i32 noundef 101, i32 noundef 10, i32 noundef 0) #4
  call void @HAL_NVIC_EnableIRQ(i32 noundef 101) #4
  br label %28

28:                                               ; preds = %16, %1
  call void @llvm.lifetime.end.p0(i64 188, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %2) #4
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

declare i32 @HAL_RCCEx_PeriphCLKConfig(ptr noundef) local_unnamed_addr #3

declare void @HAL_PWREx_EnableUSBVoltageDetector() local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare void @HAL_GPIO_Init(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @HAL_NVIC_SetPriority(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @HAL_NVIC_EnableIRQ(i32 noundef) local_unnamed_addr #3

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "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 #4 = { 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 = !{!"", !7, i64 0, !10, i64 8, !8, i64 60, !8, i64 64, !8, i64 704, !11, i64 1344, !11, i64 1348, !11, i64 1352, !8, i64 1356, !11, i64 1404, !11, i64 1408, !11, i64 1412, !11, i64 1416, !7, i64 1424}
!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, i64 48}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"", !11, i64 0, !14, i64 4, !14, i64 36, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184}
!14 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!15 = !{!11, !11, i64 0}
!16 = !{!13, !11, i64 52}
!17 = !{!13, !11, i64 56}
!18 = !{!13, !11, i64 132}
!19 = !{!20, !11, i64 224}
!20 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !11, i64 160, !11, i64 164, !11, i64 168, !8, i64 172, !11, i64 208, !11, i64 212, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !8, i64 288}
!21 = !{!22, !11, i64 16}
!22 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!23 = !{!22, !11, i64 0}
!24 = !{!22, !11, i64 4}
!25 = !{!22, !11, i64 8}
!26 = !{!20, !11, i64 216}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass