; LLVM IR from reazon-research/OpenArm :: control/canfd_control/Drivers/STM32H7xx_HAL_Driver/Src (stm32h7xx_hal_ospi)

; 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.OSPI_HandleTypeDef = type { ptr, %struct.OSPI_InitTypeDef, ptr, i32, i32, ptr, i32, i32, i32 }
%struct.OSPI_InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.OSPI_RegularCmdTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.OCTOSPI_TypeDef = type { i32, i32, i32, i32, i32, i32, [2 x i32], i32, i32, [6 x i32], i32, i32, i32, i32, i32, [11 x i32], i32, i32, i32, i32, i32, [27 x i32], i32, i32, i32, i32, i32, [3 x i32], i32, [3 x i32], i32, [3 x i32], i32, i32, i32, i32, i32, [3 x i32], i32, [7 x i32], i32, i32, i32, i32, i32, [3 x i32], i32, [23 x i32], i32, [122 x i32], i32, i32, i32, i32 }

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

declare i32 @HAL_GetTick() #1

; Function Attrs: nounwind uwtable
declare hidden i32 @OSPI_WaitFlagStateUntilTimeout(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_OSPI_Command(ptr noundef %0, ptr noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %10 = call i32 @HAL_GetTick()
  store i32 %10, ptr %9, align 4, !tbaa !9
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %11, i32 0, i32 1
  %13 = getelementptr inbounds %struct.OSPI_InitTypeDef, ptr %12, i32 0, i32 1
  %14 = load i32, ptr %13, align 4, !tbaa !11
  %15 = icmp eq i32 %14, 0
  br i1 %15, label %16, label %17

16:                                               ; preds = %3
  br label %17

17:                                               ; preds = %16, %3
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %18, i32 0, i32 3
  %20 = load i32, ptr %19, align 4, !tbaa !14
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %23

22:                                               ; preds = %17
  br label %23

23:                                               ; preds = %22, %17
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %24, i32 0, i32 7
  %26 = load i32, ptr %25, align 4, !tbaa !16
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %23
  br label %29

29:                                               ; preds = %28, %23
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %30, i32 0, i32 11
  %32 = load i32, ptr %31, align 4, !tbaa !17
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %35

34:                                               ; preds = %29
  br label %35

35:                                               ; preds = %34, %29
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %36, i32 0, i32 14
  %38 = load i32, ptr %37, align 4, !tbaa !18
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %47

40:                                               ; preds = %35
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 4, !tbaa !19
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %40
  br label %46

46:                                               ; preds = %45, %40
  br label %47

47:                                               ; preds = %46, %35
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %48, i32 0, i32 6
  %50 = load volatile i32, ptr %49, align 8, !tbaa !20
  store i32 %50, ptr %8, align 4, !tbaa !9
  %51 = load i32, ptr %8, align 4, !tbaa !9
  %52 = icmp eq i32 %51, 2
  br i1 %52, label %53, label %59

53:                                               ; preds = %47
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %54, i32 0, i32 1
  %56 = getelementptr inbounds %struct.OSPI_InitTypeDef, ptr %55, i32 0, i32 2
  %57 = load i32, ptr %56, align 8, !tbaa !21
  %58 = icmp ne i32 %57, 67108864
  br i1 %58, label %85, label %59

59:                                               ; preds = %53, %47
  %60 = load i32, ptr %8, align 4, !tbaa !9
  %61 = icmp eq i32 %60, 20
  br i1 %61, label %62, label %72

62:                                               ; preds = %59
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 4, !tbaa !19
  %66 = icmp eq i32 %65, 2
  br i1 %66, label %85, label %67

67:                                               ; preds = %62
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 4, !tbaa !19
  %71 = icmp eq i32 %70, 3
  br i1 %71, label %85, label %72

72:                                               ; preds = %67, %59
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = icmp eq i32 %73, 36
  br i1 %74, label %75, label %163

75:                                               ; preds = %72
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 4, !tbaa !19
  %79 = icmp eq i32 %78, 1
  br i1 %79, label %85, label %80

80:                                               ; preds = %75
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %81, i32 0, i32 0
  %83 = load i32, ptr %82, align 4, !tbaa !19
  %84 = icmp eq i32 %83, 3
  br i1 %84, label %85, label %163

85:                                               ; preds = %80, %75, %67, %62, %53
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = load i32, ptr %6, align 4, !tbaa !9
  %89 = call i32 @OSPI_WaitFlagStateUntilTimeout(ptr noundef %86, i32 noundef 32, i32 noundef 0, i32 noundef %87, i32 noundef %88)
  store i32 %89, ptr %7, align 4, !tbaa !9
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %162

92:                                               ; preds = %85
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %93, i32 0, i32 7
  store volatile i32 0, ptr %94, align 4, !tbaa !22
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = call i32 @OSPI_ConfigCmd(ptr noundef %95, ptr noundef %96)
  store i32 %97, ptr %7, align 4, !tbaa !9
  %98 = load i32, ptr %7, align 4, !tbaa !9
  %99 = icmp eq i32 %98, 0
  br i1 %99, label %100, label %161

100:                                              ; preds = %92
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %101, i32 0, i32 14
  %103 = load i32, ptr %102, align 4, !tbaa !18
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %105, label %114

105:                                              ; preds = %100
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = load i32, ptr %6, align 4, !tbaa !9
  %109 = call i32 @OSPI_WaitFlagStateUntilTimeout(ptr noundef %106, i32 noundef 2, i32 noundef 1, i32 noundef %107, i32 noundef %108)
  store i32 %109, ptr %7, align 4, !tbaa !9
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %110, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !23
  %113 = getelementptr inbounds %struct.OCTOSPI_TypeDef, ptr %112, i32 0, i32 8
  store volatile i32 2, ptr %113, align 4, !tbaa !24
  br label %160

114:                                              ; preds = %100
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %115, i32 0, i32 0
  %117 = load i32, ptr %116, align 4, !tbaa !19
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %119, label %122

119:                                              ; preds = %114
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %120, i32 0, i32 6
  store volatile i32 4, ptr %121, align 8, !tbaa !20
  br label %159

122:                                              ; preds = %114
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 4, !tbaa !19
  %126 = icmp eq i32 %125, 1
  br i1 %126, label %127, label %139

127:                                              ; preds = %122
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %128, i32 0, i32 6
  %130 = load volatile i32, ptr %129, align 8, !tbaa !20
  %131 = icmp eq i32 %130, 36
  br i1 %131, label %132, label %135

132:                                              ; preds = %127
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %133, i32 0, i32 6
  store volatile i32 4, ptr %134, align 8, !tbaa !20
  br label %138

135:                                              ; preds = %127
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %136, i32 0, i32 6
  store volatile i32 20, ptr %137, align 8, !tbaa !20
  br label %138

138:                                              ; preds = %135, %132
  br label %158

139:                                              ; preds = %122
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.OSPI_RegularCmdTypeDef, ptr %140, i32 0, i32 0
  %142 = load i32, ptr %141, align 4, !tbaa !19
  %143 = icmp eq i32 %142, 2
  br i1 %143, label %144, label %156

144:                                              ; preds = %139
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %145, i32 0, i32 6
  %147 = load volatile i32, ptr %146, align 8, !tbaa !20
  %148 = icmp eq i32 %147, 20
  br i1 %148, label %149, label %152

149:                                              ; preds = %144
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %150, i32 0, i32 6
  store volatile i32 4, ptr %151, align 8, !tbaa !20
  br label %155

152:                                              ; preds = %144
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %153, i32 0, i32 6
  store volatile i32 36, ptr %154, align 8, !tbaa !20
  br label %155

155:                                              ; preds = %152, %149
  br label %157

156:                                              ; preds = %139
  br label %157

157:                                              ; preds = %156, %155
  br label %158

158:                                              ; preds = %157, %138
  br label %159

159:                                              ; preds = %158, %119
  br label %160

160:                                              ; preds = %159, %105
  br label %161

161:                                              ; preds = %160, %92
  br label %162

162:                                              ; preds = %161, %85
  br label %166

163:                                              ; preds = %80, %72
  store i32 1, ptr %7, align 4, !tbaa !9
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.OSPI_HandleTypeDef, ptr %164, i32 0, i32 7
  store volatile i32 16, ptr %165, align 4, !tbaa !22
  br label %166

166:                                              ; preds = %163, %162
  %167 = load i32, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret i32 %167
}

; Function Attrs: nounwind uwtable
declare hidden i32 @OSPI_ConfigCmd(ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 12}
!12 = !{!"", !6, i64 0, !13, i64 8, !6, i64 72, !10, i64 80, !10, i64 84, !6, i64 88, !10, i64 96, !10, i64 100, !10, i64 104}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56}
!14 = !{!15, !10, i64 12}
!15 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76}
!16 = !{!15, !10, i64 28}
!17 = !{!15, !10, i64 44}
!18 = !{!15, !10, i64 56}
!19 = !{!15, !10, i64 0}
!20 = !{!12, !10, i64 96}
!21 = !{!12, !10, i64 16}
!22 = !{!12, !10, i64 100}
!23 = !{!12, !6, i64 0}
!24 = !{!25, !10, i64 36}
!25 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !10, i64 32, !10, i64 36, !7, i64 40, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !7, i64 84, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !7, i64 148, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !7, i64 276, !10, i64 288, !7, i64 292, !10, i64 304, !7, i64 308, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !7, i64 340, !10, i64 352, !7, i64 356, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !7, i64 404, !10, i64 416, !7, i64 420, !10, i64 512, !7, i64 516, !10, i64 1004, !10, i64 1008, !10, i64 1012, !10, i64 1016}


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

declare i32 @HAL_GetTick() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @OSPI_WaitFlagStateUntilTimeout(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_OSPI_Command(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = tail call i32 @HAL_GetTick() #2
  %5 = getelementptr inbounds i8, ptr %1, i64 56
  %6 = getelementptr inbounds i8, ptr %0, i64 96
  %7 = load volatile i32, ptr %6, align 8, !tbaa !5
  switch i32 %7, label %43 [
    i32 2, label %8
    i32 20, label %11
    i32 36, label %14
  ]

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = load i32, ptr %9, align 8, !tbaa !12
  %.not44 = icmp eq i32 %10, 67108864
  br i1 %.not44, label %43, label %16

11:                                               ; preds = %3
  %12 = load i32, ptr %1, align 4, !tbaa !13
  %13 = and i32 %12, -2
  %switch = icmp eq i32 %13, 2
  br i1 %switch, label %16, label %43

14:                                               ; preds = %3
  %15 = load i32, ptr %1, align 4, !tbaa !13
  switch i32 %15, label %43 [
    i32 1, label %16
    i32 3, label %16
  ]

16:                                               ; preds = %11, %14, %14, %8
  %17 = tail call i32 @OSPI_WaitFlagStateUntilTimeout(ptr noundef nonnull %0, i32 noundef 32, i32 noundef 0, i32 noundef %4, i32 noundef %2)
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %45

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 100
  store volatile i32 0, ptr %20, align 4, !tbaa !15
  %21 = tail call i32 @OSPI_ConfigCmd(ptr noundef nonnull %0, ptr noundef nonnull %1)
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %45

23:                                               ; preds = %19
  %24 = load i32, ptr %5, align 4, !tbaa !16
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %30

26:                                               ; preds = %23
  %27 = tail call i32 @OSPI_WaitFlagStateUntilTimeout(ptr noundef nonnull %0, i32 noundef 2, i32 noundef 1, i32 noundef %4, i32 noundef %2)
  %28 = load ptr, ptr %0, align 8, !tbaa !17
  %29 = getelementptr inbounds i8, ptr %28, i64 36
  store volatile i32 2, ptr %29, align 4, !tbaa !18
  br label %45

30:                                               ; preds = %23
  %31 = load i32, ptr %1, align 4, !tbaa !13
  switch i32 %31, label %45 [
    i32 0, label %32
    i32 1, label %33
    i32 2, label %38
  ]

32:                                               ; preds = %30
  store volatile i32 4, ptr %6, align 8, !tbaa !5
  br label %45

33:                                               ; preds = %30
  %34 = load volatile i32, ptr %6, align 8, !tbaa !5
  %35 = icmp eq i32 %34, 36
  br i1 %35, label %36, label %37

36:                                               ; preds = %33
  store volatile i32 4, ptr %6, align 8, !tbaa !5
  br label %45

37:                                               ; preds = %33
  store volatile i32 20, ptr %6, align 8, !tbaa !5
  br label %45

38:                                               ; preds = %30
  %39 = load volatile i32, ptr %6, align 8, !tbaa !5
  %40 = icmp eq i32 %39, 20
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  store volatile i32 4, ptr %6, align 8, !tbaa !5
  br label %45

42:                                               ; preds = %38
  store volatile i32 36, ptr %6, align 8, !tbaa !5
  br label %45

43:                                               ; preds = %11, %8, %14, %3
  %44 = getelementptr inbounds i8, ptr %0, i64 100
  store volatile i32 16, ptr %44, align 4, !tbaa !15
  br label %45

45:                                               ; preds = %30, %16, %26, %37, %36, %41, %42, %32, %19, %43
  %.0 = phi i32 [ %27, %26 ], [ 0, %32 ], [ 0, %36 ], [ 0, %37 ], [ 0, %41 ], [ 0, %42 ], [ %21, %19 ], [ %17, %16 ], [ 1, %43 ], [ 0, %30 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare hidden i32 @OSPI_ConfigCmd(ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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, !11, i64 96}
!6 = !{!"", !7, i64 0, !10, i64 8, !7, i64 72, !11, i64 80, !11, i64 84, !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, i64 48, !11, i64 52, !11, i64 56}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !11, i64 16}
!13 = !{!14, !11, i64 0}
!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, !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}
!15 = !{!6, !11, i64 100}
!16 = !{!14, !11, i64 56}
!17 = !{!6, !7, i64 0}
!18 = !{!19, !11, i64 36}
!19 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !8, i64 24, !11, i64 32, !11, i64 36, !8, i64 40, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !8, i64 84, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !8, i64 148, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !8, i64 276, !11, i64 288, !8, i64 292, !11, i64 304, !8, i64 308, !11, i64 320, !11, i64 324, !11, i64 328, !11, i64 332, !11, i64 336, !8, i64 340, !11, i64 352, !8, i64 356, !11, i64 384, !11, i64 388, !11, i64 392, !11, i64 396, !11, i64 400, !8, i64 404, !11, i64 416, !8, i64 420, !11, i64 512, !8, i64 516, !11, i64 1004, !11, i64 1008, !11, i64 1012, !11, i64 1016}


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