; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Bus/Ufs (UfsPassThruBuildDevicePath)

; 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.UFS_DEVICE_PATH = type { %struct.EFI_DEVICE_PATH_PROTOCOL, i8, i8 }
%struct.EFI_DEVICE_PATH_PROTOCOL = type { i8, i8, [2 x i8] }
%struct._UFS_PASS_THRU_PRIVATE_DATA = type { i32, ptr, %struct.EFI_EXT_SCSI_PASS_THRU_MODE, %struct._EFI_EXT_SCSI_PASS_THRU_PROTOCOL, ptr, i64, i32, i8, ptr, i8, ptr, ptr, i8, ptr, %struct.UFS_EXPOSED_LUNS }
%struct.EFI_EXT_SCSI_PASS_THRU_MODE = type { i32, i32, i32 }
%struct._EFI_EXT_SCSI_PASS_THRU_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.UFS_EXPOSED_LUNS = type { [12 x i8], i16 }

@mUfsDevicePathTemplate = external dso_local global %struct.UFS_DEVICE_PATH, align 1
@.str = external hidden unnamed_addr constant [151 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@mUfsTargetId = external dso_local global [16 x i8], align 16

; Function Attrs: nounwind uwtable
define dso_local i64 @UfsPassThruBuildDevicePath(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i16, align 2
  %14 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #3
  %15 = call zeroext i8 @DebugAssertEnabled()
  %16 = zext i8 %15 to i32
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %28

18:                                               ; preds = %4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = ptrtoint ptr %19 to i64
  %21 = sub i64 %20, ptrtoint (ptr getelementptr inbounds (%struct._UFS_PASS_THRU_PRIVATE_DATA, ptr null, i32 0, i32 3) to i64)
  %22 = inttoptr i64 %21 to ptr
  %23 = getelementptr inbounds %struct._UFS_PASS_THRU_PRIVATE_DATA, ptr %22, i32 0, i32 0
  %24 = load i32, ptr %23, align 8, !tbaa !11
  %25 = icmp ne i32 %24, 1347634773
  br i1 %25, label %26, label %28

26:                                               ; preds = %18
  call void @DebugAssert(ptr noundef @.str, i64 noundef 387, ptr noundef @.str.1)
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  br label %33

28:                                               ; preds = %18, %4
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = ptrtoint ptr %29 to i64
  %31 = sub i64 %30, ptrtoint (ptr getelementptr inbounds (%struct._UFS_PASS_THRU_PRIVATE_DATA, ptr null, i32 0, i32 3) to i64)
  %32 = inttoptr i64 %31 to ptr
  br label %33

33:                                               ; preds = %28, %26
  %34 = phi ptr [ %27, %26 ], [ %32, %28 ]
  store ptr %34, ptr %10, align 8, !tbaa !5
  %35 = call ptr @SetMem(ptr noundef @mUfsTargetId, i64 noundef 16, i8 noundef zeroext 0)
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = call i64 @CompareMem(ptr noundef %36, ptr noundef @mUfsTargetId, i64 noundef 16)
  %38 = icmp ne i64 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %33
  store i64 -9223372036854775806, ptr %5, align 8
  store i32 1, ptr %14, align 4
  br label %118

40:                                               ; preds = %33
  %41 = load i64, ptr %8, align 8, !tbaa !9
  %42 = trunc i64 %41 to i8
  %43 = zext i8 %42 to i32
  %44 = icmp eq i32 %43, 193
  br i1 %44, label %45, label %52

45:                                               ; preds = %40
  %46 = getelementptr inbounds i8, ptr %8, i64 1
  %47 = load i8, ptr %46, align 1, !tbaa !18
  %48 = zext i8 %47 to i32
  %49 = and i32 %48, 255
  %50 = or i32 128, %49
  %51 = trunc i32 %50 to i8
  store i8 %51, ptr %12, align 1, !tbaa !18
  br label %65

52:                                               ; preds = %40
  %53 = load i64, ptr %8, align 8, !tbaa !9
  %54 = trunc i64 %53 to i8
  %55 = zext i8 %54 to i32
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %63

57:                                               ; preds = %52
  %58 = getelementptr inbounds i8, ptr %8, i64 1
  %59 = load i8, ptr %58, align 1, !tbaa !18
  %60 = zext i8 %59 to i32
  %61 = and i32 %60, 255
  %62 = trunc i32 %61 to i8
  store i8 %62, ptr %12, align 1, !tbaa !18
  br label %64

63:                                               ; preds = %52
  store i64 -9223372036854775794, ptr %5, align 8
  store i32 1, ptr %14, align 4
  br label %118

64:                                               ; preds = %57
  br label %65

65:                                               ; preds = %64, %45
  store i16 0, ptr %13, align 2, !tbaa !19
  br label %66

66:                                               ; preds = %97, %65
  %67 = load i16, ptr %13, align 2, !tbaa !19
  %68 = zext i16 %67 to i32
  %69 = icmp slt i32 %68, 12
  br i1 %69, label %70, label %100

70:                                               ; preds = %66
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._UFS_PASS_THRU_PRIVATE_DATA, ptr %71, i32 0, i32 14
  %73 = getelementptr inbounds %struct.UFS_EXPOSED_LUNS, ptr %72, i32 0, i32 1
  %74 = load i16, ptr %73, align 4
  %75 = and i16 %74, 4095
  %76 = zext i16 %75 to i32
  %77 = load i16, ptr %13, align 2, !tbaa !19
  %78 = zext i16 %77 to i32
  %79 = shl i32 1, %78
  %80 = and i32 %76, %79
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %70
  br label %97

83:                                               ; preds = %70
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct._UFS_PASS_THRU_PRIVATE_DATA, ptr %84, i32 0, i32 14
  %86 = getelementptr inbounds %struct.UFS_EXPOSED_LUNS, ptr %85, i32 0, i32 0
  %87 = load i16, ptr %13, align 2, !tbaa !19
  %88 = zext i16 %87 to i64
  %89 = getelementptr inbounds [12 x i8], ptr %86, i64 0, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !18
  %91 = zext i8 %90 to i32
  %92 = load i8, ptr %12, align 1, !tbaa !18
  %93 = zext i8 %92 to i32
  %94 = icmp eq i32 %91, %93
  br i1 %94, label %95, label %96

95:                                               ; preds = %83
  br label %100

96:                                               ; preds = %83
  br label %97

97:                                               ; preds = %96, %82
  %98 = load i16, ptr %13, align 2, !tbaa !19
  %99 = add i16 %98, 1
  store i16 %99, ptr %13, align 2, !tbaa !19
  br label %66, !llvm.loop !20

100:                                              ; preds = %95, %66
  %101 = load i16, ptr %13, align 2, !tbaa !19
  %102 = zext i16 %101 to i32
  %103 = icmp eq i32 %102, 12
  br i1 %103, label %104, label %105

104:                                              ; preds = %100
  store i64 -9223372036854775794, ptr %5, align 8
  store i32 1, ptr %14, align 4
  br label %118

105:                                              ; preds = %100
  %106 = call ptr @AllocateCopyPool(i64 noundef 6, ptr noundef @mUfsDevicePathTemplate)
  store ptr %106, ptr %11, align 8, !tbaa !5
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = icmp eq ptr %107, null
  br i1 %108, label %109, label %110

109:                                              ; preds = %105
  store i64 -9223372036854775799, ptr %5, align 8
  store i32 1, ptr %14, align 4
  br label %118

110:                                              ; preds = %105
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.UFS_DEVICE_PATH, ptr %111, i32 0, i32 1
  store i8 0, ptr %112, align 1, !tbaa !18
  %113 = load i8, ptr %12, align 1, !tbaa !18
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.UFS_DEVICE_PATH, ptr %114, i32 0, i32 2
  store i8 %113, ptr %115, align 1, !tbaa !18
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %116, ptr %117, align 8, !tbaa !5
  store i64 0, ptr %5, align 8
  store i32 1, ptr %14, align 4
  br label %118

118:                                              ; preds = %110, %109, %104, %63, %39
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %119 = load i64, ptr %5, align 8
  ret i64 %119
}

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

declare zeroext i8 @DebugAssertEnabled() #2

declare void @DebugAssert(ptr noundef, i64 noundef, ptr noundef) #2

declare ptr @SetMem(ptr noundef, i64 noundef, i8 noundef zeroext) #2

declare i64 @CompareMem(ptr noundef, ptr noundef, i64 noundef) #2

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

declare ptr @AllocateCopyPool(i64 noundef, ptr noundef) #2

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 = { "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 = !{!"long long", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_UFS_PASS_THRU_PRIVATE_DATA", !13, i64 0, !6, i64 8, !14, i64 16, !15, i64 32, !6, i64 96, !10, i64 104, !13, i64 112, !7, i64 116, !6, i64 120, !7, i64 128, !6, i64 136, !6, i64 144, !7, i64 152, !6, i64 160, !16, i64 168}
!13 = !{!"int", !7, i64 0}
!14 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8}
!15 = !{!"_EFI_EXT_SCSI_PASS_THRU_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!16 = !{!"", !7, i64 0, !17, i64 12, !17, i64 13}
!17 = !{!"short", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!17, !17, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; 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.UFS_DEVICE_PATH = type { %struct.EFI_DEVICE_PATH_PROTOCOL, i8, i8 }
%struct.EFI_DEVICE_PATH_PROTOCOL = type { i8, i8, [2 x i8] }

@mUfsDevicePathTemplate = external dso_local global %struct.UFS_DEVICE_PATH, align 1
@.str = external hidden unnamed_addr constant [151 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@mUfsTargetId = external dso_local global [16 x i8], align 16

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775806, 1) i64 @UfsPassThruBuildDevicePath(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr nocapture noundef writeonly %3) local_unnamed_addr #0 {
  %.sroa.3.0.extract.shift = lshr i64 %2, 8
  %.sroa.3.0.extract.trunc = trunc i64 %.sroa.3.0.extract.shift to i8
  %5 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not = icmp eq i8 %5, 0
  %.pre = ptrtoint ptr %0 to i64
  %.pre44 = add i64 %.pre, -32
  %.pre46 = inttoptr i64 %.pre44 to ptr
  br i1 %.not, label %._crit_edge, label %6

6:                                                ; preds = %4
  %7 = load i32, ptr %.pre46, align 8, !tbaa !5
  %.not39 = icmp eq i32 %7, 1347634773
  br i1 %.not39, label %._crit_edge, label %8

8:                                                ; preds = %6
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 387, ptr noundef nonnull @.str.1) #2
  br label %._crit_edge

._crit_edge:                                      ; preds = %4, %6, %8
  %9 = phi ptr [ %0, %8 ], [ %.pre46, %6 ], [ %.pre46, %4 ]
  %10 = tail call ptr @SetMem(ptr noundef nonnull @mUfsTargetId, i64 noundef 16, i8 noundef zeroext 0) #2
  %11 = tail call i64 @CompareMem(ptr noundef %1, ptr noundef nonnull @mUfsTargetId, i64 noundef 16) #2
  %.not40 = icmp eq i64 %11, 0
  br i1 %.not40, label %12, label %108

12:                                               ; preds = %._crit_edge
  %13 = trunc i64 %2 to i8
  switch i8 %13, label %108 [
    i8 -63, label %14
    i8 0, label %16
  ]

14:                                               ; preds = %12
  %15 = or i8 %.sroa.3.0.extract.trunc, -128
  br label %16

16:                                               ; preds = %12, %14
  %.034 = phi i8 [ %15, %14 ], [ %.sroa.3.0.extract.trunc, %12 ]
  %17 = getelementptr inbounds i8, ptr %9, i64 180
  %18 = load i16, ptr %17, align 4
  %19 = and i16 %18, 4095
  %20 = zext nneg i16 %19 to i32
  %21 = and i32 %20, 1
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %27, label %23

23:                                               ; preds = %16
  %24 = getelementptr inbounds i8, ptr %9, i64 168
  %25 = load i8, ptr %24, align 1, !tbaa !16
  %26 = icmp eq i8 %25, %.034
  br i1 %26, label %.thread, label %27

27:                                               ; preds = %23, %16
  %28 = and i32 %20, 2
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %34, label %30

30:                                               ; preds = %27
  %31 = getelementptr inbounds i8, ptr %9, i64 169
  %32 = load i8, ptr %31, align 1, !tbaa !16
  %33 = icmp eq i8 %32, %.034
  br i1 %33, label %.thread, label %34

34:                                               ; preds = %30, %27
  %35 = and i32 %20, 4
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %41, label %37

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %9, i64 170
  %39 = load i8, ptr %38, align 1, !tbaa !16
  %40 = icmp eq i8 %39, %.034
  br i1 %40, label %.thread, label %41

41:                                               ; preds = %37, %34
  %42 = and i32 %20, 8
  %43 = icmp eq i32 %42, 0
  br i1 %43, label %48, label %44

44:                                               ; preds = %41
  %45 = getelementptr inbounds i8, ptr %9, i64 171
  %46 = load i8, ptr %45, align 1, !tbaa !16
  %47 = icmp eq i8 %46, %.034
  br i1 %47, label %.thread, label %48

48:                                               ; preds = %44, %41
  %49 = and i32 %20, 16
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %55, label %51

51:                                               ; preds = %48
  %52 = getelementptr inbounds i8, ptr %9, i64 172
  %53 = load i8, ptr %52, align 1, !tbaa !16
  %54 = icmp eq i8 %53, %.034
  br i1 %54, label %.thread, label %55

55:                                               ; preds = %51, %48
  %56 = and i32 %20, 32
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %62, label %58

58:                                               ; preds = %55
  %59 = getelementptr inbounds i8, ptr %9, i64 173
  %60 = load i8, ptr %59, align 1, !tbaa !16
  %61 = icmp eq i8 %60, %.034
  br i1 %61, label %.thread, label %62

62:                                               ; preds = %58, %55
  %63 = and i32 %20, 64
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %69, label %65

65:                                               ; preds = %62
  %66 = getelementptr inbounds i8, ptr %9, i64 174
  %67 = load i8, ptr %66, align 1, !tbaa !16
  %68 = icmp eq i8 %67, %.034
  br i1 %68, label %.thread, label %69

69:                                               ; preds = %65, %62
  %70 = and i32 %20, 128
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %76, label %72

72:                                               ; preds = %69
  %73 = getelementptr inbounds i8, ptr %9, i64 175
  %74 = load i8, ptr %73, align 1, !tbaa !16
  %75 = icmp eq i8 %74, %.034
  br i1 %75, label %.thread, label %76

76:                                               ; preds = %72, %69
  %77 = and i32 %20, 256
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %83, label %79

79:                                               ; preds = %76
  %80 = getelementptr inbounds i8, ptr %9, i64 176
  %81 = load i8, ptr %80, align 1, !tbaa !16
  %82 = icmp eq i8 %81, %.034
  br i1 %82, label %.thread, label %83

83:                                               ; preds = %79, %76
  %84 = and i32 %20, 512
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %90, label %86

86:                                               ; preds = %83
  %87 = getelementptr inbounds i8, ptr %9, i64 177
  %88 = load i8, ptr %87, align 1, !tbaa !16
  %89 = icmp eq i8 %88, %.034
  br i1 %89, label %.thread, label %90

90:                                               ; preds = %86, %83
  %91 = and i32 %20, 1024
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %97, label %93

93:                                               ; preds = %90
  %94 = getelementptr inbounds i8, ptr %9, i64 178
  %95 = load i8, ptr %94, align 1, !tbaa !16
  %96 = icmp eq i8 %95, %.034
  br i1 %96, label %.thread, label %97

97:                                               ; preds = %93, %90
  %98 = icmp ult i16 %19, 2048
  br i1 %98, label %108, label %99

99:                                               ; preds = %97
  %100 = getelementptr inbounds i8, ptr %9, i64 179
  %101 = load i8, ptr %100, align 1, !tbaa !16
  %102 = icmp eq i8 %101, %.034
  br i1 %102, label %.thread, label %108

.thread:                                          ; preds = %23, %30, %37, %44, %51, %58, %65, %72, %79, %86, %93, %99
  %103 = tail call ptr @AllocateCopyPool(i64 noundef 6, ptr noundef nonnull @mUfsDevicePathTemplate) #2
  %104 = icmp eq ptr %103, null
  br i1 %104, label %108, label %105

105:                                              ; preds = %.thread
  %106 = getelementptr inbounds i8, ptr %103, i64 4
  store i8 0, ptr %106, align 1, !tbaa !16
  %107 = getelementptr inbounds i8, ptr %103, i64 5
  store i8 %.034, ptr %107, align 1, !tbaa !16
  store ptr %103, ptr %3, align 8, !tbaa !17
  br label %108

108:                                              ; preds = %97, %99, %.thread, %12, %._crit_edge, %105
  %.035 = phi i64 [ 0, %105 ], [ -9223372036854775806, %._crit_edge ], [ -9223372036854775794, %12 ], [ -9223372036854775799, %.thread ], [ -9223372036854775794, %99 ], [ -9223372036854775794, %97 ]
  ret i64 %.035
}

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

declare void @DebugAssert(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

declare ptr @SetMem(ptr noundef, i64 noundef, i8 noundef zeroext) local_unnamed_addr #1

declare i64 @CompareMem(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare ptr @AllocateCopyPool(i64 noundef, ptr noundef) local_unnamed_addr #1

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 = { "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, !7, i64 0}
!6 = !{!"_UFS_PASS_THRU_PRIVATE_DATA", !7, i64 0, !10, i64 8, !11, i64 16, !12, i64 32, !10, i64 96, !13, i64 104, !7, i64 112, !8, i64 116, !10, i64 120, !8, i64 128, !10, i64 136, !10, i64 144, !8, i64 152, !10, i64 160, !14, i64 168}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8}
!12 = !{!"_EFI_EXT_SCSI_PASS_THRU_PROTOCOL", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!13 = !{!"long long", !8, i64 0}
!14 = !{!"", !8, i64 0, !15, i64 12, !15, i64 13}
!15 = !{!"short", !8, i64 0}
!16 = !{!8, !8, i64 0}
!17 = !{!10, !10, i64 0}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass