; LLVM IR from graycatlabs/serbus :: src (spidriver)

; 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.spi_ioc_transfer = type { i64, i64, i32, i32, i16, i8, i8, i8, i8, i8, i8 }

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

; 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
declare dso_local i32 @SPI_getBitsPerWord(i32 noundef) #1

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

; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @SPI_transaction(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #1 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca [2 x %struct.spi_ioc_transfer], align 16
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store i32 %0, ptr %7, align 4, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %18 = load i32, ptr %7, align 4, !tbaa !5
  %19 = call i32 @SPI_getBitsPerWord(i32 noundef %18)
  %20 = trunc i32 %19 to i8
  store i8 %20, ptr %12, align 1, !tbaa !11
  %21 = load i8, ptr %12, align 1, !tbaa !11
  %22 = zext i8 %21 to i32
  %23 = icmp slt i32 %22, 0
  br i1 %23, label %24, label %27

24:                                               ; preds = %5
  %25 = load i8, ptr %12, align 1, !tbaa !11
  %26 = zext i8 %25 to i32
  store i32 %26, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %168

27:                                               ; preds = %5
  %28 = load i8, ptr %12, align 1, !tbaa !11
  %29 = zext i8 %28 to i32
  %30 = load i32, ptr %9, align 4, !tbaa !5
  %31 = mul nsw i32 %29, %30
  %32 = sitofp i32 %31 to float
  %33 = fpext float %32 to double
  %34 = fdiv double %33, 8.000000e+00
  %35 = fadd double %34, 5.000000e-01
  %36 = fptoui double %35 to i32
  store i32 %36, ptr %13, align 4, !tbaa !5
  %37 = load i8, ptr %12, align 1, !tbaa !11
  %38 = zext i8 %37 to i32
  %39 = load i32, ptr %11, align 4, !tbaa !5
  %40 = mul nsw i32 %38, %39
  %41 = sitofp i32 %40 to float
  %42 = fpext float %41 to double
  %43 = fdiv double %42, 8.000000e+00
  %44 = fadd double %43, 5.000000e-01
  %45 = fptoui double %44 to i32
  store i32 %45, ptr %14, align 4, !tbaa !5
  %46 = load i32, ptr %14, align 4, !tbaa !5
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %52, label %48

48:                                               ; preds = %27
  %49 = load i32, ptr %13, align 4, !tbaa !5
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  store i32 0, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %168

52:                                               ; preds = %48, %27
  %53 = load i32, ptr %14, align 4, !tbaa !5
  %54 = icmp ugt i32 %53, 4096
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  store i32 4096, ptr %14, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %55, %52
  %57 = load i32, ptr %13, align 4, !tbaa !5
  %58 = icmp ugt i32 %57, 4096
  br i1 %58, label %59, label %60

59:                                               ; preds = %56
  store i32 4096, ptr %13, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %59, %56
  store i32 0, ptr %16, align 4, !tbaa !5
  %61 = load i32, ptr %13, align 4, !tbaa !5
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %101

63:                                               ; preds = %60
  %64 = load i32, ptr %16, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %65
  call void @llvm.memset.p0.i64(ptr align 16 %66, i8 0, i64 32, i1 false)
  %67 = load ptr, ptr %8, align 8, !tbaa !9
  %68 = ptrtoint ptr %67 to i64
  %69 = load i32, ptr %16, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %70
  %72 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %71, i32 0, i32 0
  store i64 %68, ptr %72, align 16, !tbaa !12
  %73 = load i32, ptr %16, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %74
  %76 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %75, i32 0, i32 1
  store i64 0, ptr %76, align 8, !tbaa !16
  %77 = load i32, ptr %13, align 4, !tbaa !5
  %78 = load i32, ptr %16, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %79
  %81 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %80, i32 0, i32 2
  store i32 %77, ptr %81, align 16, !tbaa !17
  %82 = load i32, ptr %16, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %83
  %85 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %84, i32 0, i32 3
  store i32 0, ptr %85, align 4, !tbaa !18
  %86 = load i32, ptr %16, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %87
  %89 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %88, i32 0, i32 4
  store i16 0, ptr %89, align 8, !tbaa !19
  %90 = load i8, ptr %12, align 1, !tbaa !11
  %91 = load i32, ptr %16, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %92
  %94 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %93, i32 0, i32 5
  store i8 %90, ptr %94, align 2, !tbaa !20
  %95 = load i32, ptr %16, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %96
  %98 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %97, i32 0, i32 6
  store i8 0, ptr %98, align 1, !tbaa !21
  %99 = load i32, ptr %16, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %16, align 4, !tbaa !5
  br label %101

101:                                              ; preds = %63, %60
  %102 = load i32, ptr %14, align 4, !tbaa !5
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %143

104:                                              ; preds = %101
  %105 = load i32, ptr %16, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %106
  call void @llvm.memset.p0.i64(ptr align 16 %107, i8 0, i64 32, i1 false)
  %108 = load i32, ptr %16, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %109
  %111 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %110, i32 0, i32 0
  store i64 0, ptr %111, align 16, !tbaa !12
  %112 = load ptr, ptr %10, align 8, !tbaa !9
  %113 = ptrtoint ptr %112 to i64
  %114 = load i32, ptr %16, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %115
  %117 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %116, i32 0, i32 1
  store i64 %113, ptr %117, align 8, !tbaa !16
  %118 = load i32, ptr %14, align 4, !tbaa !5
  %119 = add i32 %118, 1
  %120 = load i32, ptr %16, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %121
  %123 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %122, i32 0, i32 2
  store i32 %119, ptr %123, align 16, !tbaa !17
  %124 = load i32, ptr %16, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %125
  %127 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %126, i32 0, i32 3
  store i32 0, ptr %127, align 4, !tbaa !18
  %128 = load i32, ptr %16, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %129
  %131 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %130, i32 0, i32 4
  store i16 0, ptr %131, align 8, !tbaa !19
  %132 = load i8, ptr %12, align 1, !tbaa !11
  %133 = load i32, ptr %16, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %134
  %136 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %135, i32 0, i32 5
  store i8 %132, ptr %136, align 2, !tbaa !20
  %137 = load i32, ptr %16, align 4, !tbaa !5
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 %138
  %140 = getelementptr inbounds %struct.spi_ioc_transfer, ptr %139, i32 0, i32 6
  store i8 0, ptr %140, align 1, !tbaa !21
  %141 = load i32, ptr %16, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %16, align 4, !tbaa !5
  br label %143

143:                                              ; preds = %104, %101
  %144 = load i32, ptr %7, align 4, !tbaa !5
  %145 = load i32, ptr %16, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = mul i64 %146, 32
  %148 = icmp ult i64 %147, 16384
  br i1 %148, label %149, label %153

149:                                              ; preds = %143
  %150 = load i32, ptr %16, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = mul i64 %151, 32
  br label %154

153:                                              ; preds = %143
  br label %154

154:                                              ; preds = %153, %149
  %155 = phi i64 [ %152, %149 ], [ 0, %153 ]
  %156 = shl i64 %155, 16
  %157 = or i64 1073769216, %156
  %158 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %15, i64 0, i64 0
  %159 = call i32 (i32, i64, ...) @ioctl(i32 noundef %144, i64 noundef %157, ptr noundef %158) #4
  %160 = icmp slt i32 %159, 0
  br i1 %160, label %161, label %162

161:                                              ; preds = %154
  store i32 -1, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %168

162:                                              ; preds = %154
  %163 = load i32, ptr %14, align 4, !tbaa !5
  %164 = shl i32 %163, 3
  %165 = load i8, ptr %12, align 1, !tbaa !11
  %166 = zext i8 %165 to i32
  %167 = udiv i32 %164, %166
  store i32 %167, ptr %6, align 4
  store i32 1, ptr %17, align 4
  br label %168

168:                                              ; preds = %162, %161, %51, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  %169 = load i32, ptr %6, align 4
  ret i32 %169
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"spi_ioc_transfer", !14, i64 0, !14, i64 8, !6, i64 16, !6, i64 20, !15, i64 24, !7, i64 26, !7, i64 27, !7, i64 28, !7, i64 29, !7, i64 30, !7, i64 31}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!13, !14, i64 8}
!17 = !{!13, !6, i64 16}
!18 = !{!13, !6, i64 20}
!19 = !{!13, !15, i64 24}
!20 = !{!13, !7, i64 26}
!21 = !{!13, !7, i64 27}


; 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.spi_ioc_transfer = type { i64, i64, i32, i32, i16, i8, i8, i8, i8, i8, i8 }

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @SPI_getBitsPerWord(i32 noundef) local_unnamed_addr #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

; Function Attrs: nounwind
declare i32 @ioctl(i32 noundef, i64 noundef, ...) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, -7) i32 @SPI_transaction(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = alloca [2 x %struct.spi_ioc_transfer], align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #5
  %7 = tail call i32 @SPI_getBitsPerWord(i32 noundef %0)
  %8 = trunc i32 %7 to i8
  %9 = and i32 %7, 255
  %10 = mul nsw i32 %9, %2
  %11 = sitofp i32 %10 to float
  %12 = fpext float %11 to double
  %13 = fmul double %12, 1.250000e-01
  %14 = fadd double %13, 5.000000e-01
  %15 = fptoui double %14 to i32
  %16 = mul nsw i32 %9, %4
  %17 = sitofp i32 %16 to float
  %18 = fpext float %17 to double
  %19 = fmul double %18, 1.250000e-01
  %20 = fadd double %19, 5.000000e-01
  %21 = fptoui double %20 to i32
  %22 = icmp ne i32 %21, 0
  %23 = icmp ne i32 %15, 0
  %or.cond = select i1 %22, i1 true, i1 %23
  br i1 %or.cond, label %24, label %51

24:                                               ; preds = %5
  %spec.store.select = tail call i32 @llvm.umin.i32(i32 %21, i32 4096)
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %32, label %25

25:                                               ; preds = %24
  %spec.store.select2 = tail call i32 @llvm.umin.i32(i32 %15, i32 4096)
  %26 = getelementptr inbounds i8, ptr %6, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %26, i8 0, i64 16, i1 false)
  %27 = ptrtoint ptr %1 to i64
  store i64 %27, ptr %6, align 16, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %6, i64 8
  store i64 0, ptr %28, align 8, !tbaa !12
  %29 = getelementptr inbounds i8, ptr %6, i64 16
  store i32 %spec.store.select2, ptr %29, align 16, !tbaa !13
  %30 = getelementptr inbounds i8, ptr %6, i64 24
  store i16 0, ptr %30, align 8, !tbaa !14
  %31 = getelementptr inbounds i8, ptr %6, i64 26
  store i8 %8, ptr %31, align 2, !tbaa !15
  br label %32

32:                                               ; preds = %25, %24
  %.0 = phi i32 [ 1, %25 ], [ 0, %24 ]
  %.not45 = icmp eq i32 %21, 0
  br i1 %.not45, label %43, label %33

33:                                               ; preds = %32
  %34 = zext nneg i32 %.0 to i64
  %35 = getelementptr inbounds [2 x %struct.spi_ioc_transfer], ptr %6, i64 0, i64 %34
  %36 = ptrtoint ptr %3 to i64
  %37 = getelementptr inbounds i8, ptr %35, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %35, i8 0, i64 32, i1 false)
  store i64 %36, ptr %37, align 8, !tbaa !12
  %38 = add nuw nsw i32 %spec.store.select, 1
  %39 = getelementptr inbounds i8, ptr %35, i64 16
  store i32 %38, ptr %39, align 16, !tbaa !13
  %40 = getelementptr inbounds i8, ptr %35, i64 24
  store i16 0, ptr %40, align 8, !tbaa !14
  %41 = getelementptr inbounds i8, ptr %35, i64 26
  store i8 %8, ptr %41, align 2, !tbaa !15
  %42 = add nuw nsw i32 %.0, 1
  br label %43

43:                                               ; preds = %33, %32
  %.1 = phi i32 [ %42, %33 ], [ %.0, %32 ]
  %44 = zext nneg i32 %.1 to i64
  %45 = shl nuw nsw i64 %44, 21
  %46 = or i64 %45, 1073769216
  %47 = call i32 (i32, i64, ...) @ioctl(i32 noundef %0, i64 noundef %46, ptr noundef nonnull %6) #5
  %48 = icmp slt i32 %47, 0
  br i1 %48, label %51, label %49

49:                                               ; preds = %43
  %spec.store.select.tr = trunc nuw nsw i32 %spec.store.select to i16
  %.lhs.trunc = shl nuw i16 %spec.store.select.tr, 3
  %.rhs.trunc = trunc nuw nsw i32 %9 to i16
  %50 = udiv i16 %.lhs.trunc, %.rhs.trunc
  %.zext = zext i16 %50 to i32
  br label %51

51:                                               ; preds = %43, %5, %49
  %.044 = phi i32 [ %.zext, %49 ], [ 0, %5 ], [ -1, %43 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #5
  ret i32 %.044
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { nounwind "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"spi_ioc_transfer", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !11, i64 24, !8, i64 26, !8, i64 27, !8, i64 28, !8, i64 29, !8, i64 30, !8, i64 31}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !11, i64 24}
!15 = !{!6, !8, i64 26}


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