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

; 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.USB_BOOT_REQUEST_SENSE_CMD = type { i8, i8, [2 x i8], i8, i8, [6 x i8] }
%struct.USB_BOOT_REQUEST_SENSE_DATA = type { i8, i8, i8, [4 x i8], i8, [4 x i8], i8, i8, [4 x i8] }
%struct._USB_MASS_DEVICE = type { i32, ptr, ptr, ptr, %struct._EFI_BLOCK_IO_PROTOCOL, %struct.EFI_BLOCK_IO_MEDIA, i8, i8, i8, ptr, ptr, %struct._EFI_DISK_INFO_PROTOCOL, %struct.USB_BOOT_INQUIRY_DATA, i8 }
%struct._EFI_BLOCK_IO_PROTOCOL = type { i64, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_BLOCK_IO_MEDIA = type { i32, i8, i8, i8, i8, i8, i32, i32, i64, i64, i32, i32 }
%struct._EFI_DISK_INFO_PROTOCOL = type { %struct.GUID, ptr, ptr, ptr, ptr }
%struct.GUID = type { i32, i16, i16, [8 x i8] }
%struct.USB_BOOT_INQUIRY_DATA = type { i8, i8, [2 x i8], i8, [3 x i8], [8 x i8], [16 x i8], [4 x i8] }
%struct._USB_MASS_TRANSPORT = type { i8, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @UsbBootRequestSense(ptr noundef %0) #0 {
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %struct.USB_BOOT_REQUEST_SENSE_CMD, align 1
  %5 = alloca %struct.USB_BOOT_REQUEST_SENSE_DATA, align 1
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 18, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %11, i32 0, i32 9
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %13, ptr %7, align 8, !tbaa !5
  %14 = call ptr @ZeroMem(ptr noundef %4, i64 noundef 12)
  %15 = call ptr @ZeroMem(ptr noundef %5, i64 noundef 18)
  %16 = getelementptr inbounds %struct.USB_BOOT_REQUEST_SENSE_CMD, ptr %4, i32 0, i32 0
  store i8 3, ptr %16, align 1, !tbaa !19
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %17, i32 0, i32 7
  %19 = load i8, ptr %18, align 1, !tbaa !21
  %20 = zext i8 %19 to i32
  %21 = shl i32 %20, 5
  %22 = trunc i32 %21 to i8
  %23 = getelementptr inbounds %struct.USB_BOOT_REQUEST_SENSE_CMD, ptr %4, i32 0, i32 1
  store i8 %22, ptr %23, align 1, !tbaa !22
  %24 = getelementptr inbounds %struct.USB_BOOT_REQUEST_SENSE_CMD, ptr %4, i32 0, i32 3
  store i8 18, ptr %24, align 1, !tbaa !23
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct._USB_MASS_TRANSPORT, ptr %25, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !24
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %28, i32 0, i32 10
  %30 = load ptr, ptr %29, align 8, !tbaa !26
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %31, i32 0, i32 7
  %33 = load i8, ptr %32, align 1, !tbaa !21
  %34 = call i64 %27(ptr noundef %30, ptr noundef %4, i8 noundef zeroext 12, i32 noundef 0, ptr noundef %5, i32 noundef 18, i8 noundef zeroext %33, i32 noundef 5000000, ptr noundef %9)
  store i64 %34, ptr %8, align 8, !tbaa !27
  %35 = load i64, ptr %8, align 8, !tbaa !27
  %36 = icmp slt i64 %35, 0
  br i1 %36, label %40, label %37

37:                                               ; preds = %1
  %38 = load i32, ptr %9, align 4, !tbaa !28
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %62

40:                                               ; preds = %37, %1
  br label %41

41:                                               ; preds = %40
  %42 = call zeroext i8 @DebugPrintEnabled()
  %43 = icmp ne i8 %42, 0
  br i1 %43, label %44, label %54

44:                                               ; preds = %41
  br label %45

45:                                               ; preds = %44
  %46 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648)
  %47 = icmp ne i8 %46, 0
  br i1 %47, label %48, label %51

48:                                               ; preds = %45
  %49 = load i64, ptr %8, align 8, !tbaa !27
  %50 = load i32, ptr %9, align 4, !tbaa !28
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef @.str, i64 noundef %49, i32 noundef %50)
  br label %51

51:                                               ; preds = %48, %45
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53, %41
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  %57 = load i64, ptr %8, align 8, !tbaa !27
  %58 = icmp slt i64 %57, 0
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  store i64 -9223372036854775801, ptr %8, align 8, !tbaa !27
  br label %60

60:                                               ; preds = %59, %56
  %61 = load i64, ptr %8, align 8, !tbaa !27
  store i64 %61, ptr %2, align 8
  store i32 1, ptr %10, align 4
  br label %132

62:                                               ; preds = %37
  %63 = load ptr, ptr %3, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %63, i32 0, i32 5
  store ptr %64, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.USB_BOOT_REQUEST_SENSE_DATA, ptr %5, i32 0, i32 2
  %66 = load i8, ptr %65, align 1, !tbaa !29
  %67 = zext i8 %66 to i32
  %68 = and i32 %67, 15
  switch i32 %68, label %104 [
    i32 0, label %69
    i32 1, label %70
    i32 2, label %71
    i32 5, label %87
    i32 6, label %88
    i32 7, label %101
  ]

69:                                               ; preds = %62
  store i64 -9223372036854775792, ptr %8, align 8, !tbaa !27
  br label %105

70:                                               ; preds = %62
  store i64 -9223372036854775802, ptr %8, align 8, !tbaa !27
  br label %105

71:                                               ; preds = %62
  store i64 -9223372036854775801, ptr %8, align 8, !tbaa !27
  %72 = getelementptr inbounds %struct.USB_BOOT_REQUEST_SENSE_DATA, ptr %5, i32 0, i32 6
  %73 = load i8, ptr %72, align 1, !tbaa !31
  %74 = zext i8 %73 to i32
  %75 = icmp eq i32 %74, 58
  br i1 %75, label %76, label %79

76:                                               ; preds = %71
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %77, i32 0, i32 2
  store i8 0, ptr %78, align 1, !tbaa !32
  store i64 -9223372036854775796, ptr %8, align 8, !tbaa !27
  br label %86

79:                                               ; preds = %71
  %80 = getelementptr inbounds %struct.USB_BOOT_REQUEST_SENSE_DATA, ptr %5, i32 0, i32 6
  %81 = load i8, ptr %80, align 1, !tbaa !31
  %82 = zext i8 %81 to i32
  %83 = icmp eq i32 %82, 4
  br i1 %83, label %84, label %85

84:                                               ; preds = %79
  store i64 -9223372036854775802, ptr %8, align 8, !tbaa !27
  br label %85

85:                                               ; preds = %84, %79
  br label %86

86:                                               ; preds = %85, %76
  br label %105

87:                                               ; preds = %62
  store i64 -9223372036854775806, ptr %8, align 8, !tbaa !27
  br label %105

88:                                               ; preds = %62
  store i64 -9223372036854775801, ptr %8, align 8, !tbaa !27
  %89 = getelementptr inbounds %struct.USB_BOOT_REQUEST_SENSE_DATA, ptr %5, i32 0, i32 6
  %90 = load i8, ptr %89, align 1, !tbaa !31
  %91 = zext i8 %90 to i32
  %92 = icmp eq i32 %91, 40
  br i1 %92, label %93, label %100

93:                                               ; preds = %88
  store i64 -9223372036854775795, ptr %8, align 8, !tbaa !27
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %94, i32 0, i32 4
  store i8 0, ptr %95, align 1, !tbaa !33
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %96, i32 0, i32 0
  %98 = load i32, ptr %97, align 8, !tbaa !34
  %99 = add i32 %98, 1
  store i32 %99, ptr %97, align 8, !tbaa !34
  br label %100

100:                                              ; preds = %93, %88
  br label %105

101:                                              ; preds = %62
  store i64 -9223372036854775800, ptr %8, align 8, !tbaa !27
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %102, i32 0, i32 4
  store i8 1, ptr %103, align 1, !tbaa !33
  br label %105

104:                                              ; preds = %62
  store i64 -9223372036854775801, ptr %8, align 8, !tbaa !27
  br label %105

105:                                              ; preds = %104, %101, %100, %87, %86, %70, %69
  br label %106

106:                                              ; preds = %105
  %107 = call zeroext i8 @DebugPrintEnabled()
  %108 = icmp ne i8 %107, 0
  br i1 %108, label %109, label %128

109:                                              ; preds = %106
  br label %110

110:                                              ; preds = %109
  %111 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %112 = icmp ne i8 %111, 0
  br i1 %112, label %113, label %125

113:                                              ; preds = %110
  %114 = load i64, ptr %8, align 8, !tbaa !27
  %115 = getelementptr inbounds %struct.USB_BOOT_REQUEST_SENSE_DATA, ptr %5, i32 0, i32 2
  %116 = load i8, ptr %115, align 1, !tbaa !29
  %117 = zext i8 %116 to i32
  %118 = and i32 %117, 15
  %119 = getelementptr inbounds %struct.USB_BOOT_REQUEST_SENSE_DATA, ptr %5, i32 0, i32 6
  %120 = load i8, ptr %119, align 1, !tbaa !31
  %121 = zext i8 %120 to i32
  %122 = getelementptr inbounds %struct.USB_BOOT_REQUEST_SENSE_DATA, ptr %5, i32 0, i32 7
  %123 = load i8, ptr %122, align 1, !tbaa !35
  %124 = zext i8 %123 to i32
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str.1, i64 noundef %114, i32 noundef %118, i32 noundef %121, i32 noundef %124)
  br label %125

125:                                              ; preds = %113, %110
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127, %106
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  %131 = load i64, ptr %8, align 8, !tbaa !27
  store i64 %131, ptr %2, align 8
  store i32 1, ptr %10, align 4
  br label %132

132:                                              ; preds = %130, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 18, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #3
  %133 = load i64, ptr %2, align 8
  ret i64 %133
}

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

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

declare zeroext i8 @DebugPrintEnabled() #2

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #2

declare void @DebugPrint(i64 noundef, ptr noundef, ...) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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, !6, i64 136}
!10 = !{!"_USB_MASS_DEVICE", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !14, i64 80, !7, i64 128, !7, i64 129, !7, i64 130, !6, i64 136, !6, i64 144, !15, i64 152, !18, i64 200, !7, i64 236}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_EFI_BLOCK_IO_PROTOCOL", !13, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"", !11, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !11, i64 12, !11, i64 16, !13, i64 24, !13, i64 32, !11, i64 40, !11, i64 44}
!15 = !{!"_EFI_DISK_INFO_PROTOCOL", !16, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!16 = !{!"", !11, i64 0, !17, i64 4, !17, i64 6, !7, i64 8}
!17 = !{!"short", !7, i64 0}
!18 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 4, !7, i64 5, !7, i64 8, !7, i64 16, !7, i64 32}
!19 = !{!20, !7, i64 0}
!20 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 4, !7, i64 5, !7, i64 6}
!21 = !{!10, !7, i64 129}
!22 = !{!20, !7, i64 1}
!23 = !{!20, !7, i64 4}
!24 = !{!25, !6, i64 16}
!25 = !{!"_USB_MASS_TRANSPORT", !7, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!26 = !{!10, !6, i64 144}
!27 = !{!13, !13, i64 0}
!28 = !{!11, !11, i64 0}
!29 = !{!30, !7, i64 2}
!30 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 7, !7, i64 8, !7, i64 12, !7, i64 13, !7, i64 14}
!31 = !{!30, !7, i64 12}
!32 = !{!14, !7, i64 5}
!33 = !{!14, !7, i64 7}
!34 = !{!14, !11, i64 0}
!35 = !{!30, !7, i64 13}


; 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.USB_BOOT_REQUEST_SENSE_CMD = type { i8, i8, [2 x i8], i8, i8, [6 x i8] }
%struct.USB_BOOT_REQUEST_SENSE_DATA = type { i8, i8, i8, [4 x i8], i8, [4 x i8], i8, i8, [4 x i8] }

@.str = external hidden unnamed_addr constant [42 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @UsbBootRequestSense(ptr nocapture noundef %0) local_unnamed_addr #0 {
  %2 = alloca %struct.USB_BOOT_REQUEST_SENSE_CMD, align 1
  %3 = alloca %struct.USB_BOOT_REQUEST_SENSE_DATA, align 1
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 18, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %5 = getelementptr inbounds i8, ptr %0, i64 136
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = call ptr @ZeroMem(ptr noundef nonnull %2, i64 noundef 12) #3
  %8 = call ptr @ZeroMem(ptr noundef nonnull %3, i64 noundef 18) #3
  store i8 3, ptr %2, align 1, !tbaa !18
  %9 = getelementptr inbounds i8, ptr %0, i64 129
  %10 = load i8, ptr %9, align 1, !tbaa !20
  %11 = shl i8 %10, 5
  %12 = getelementptr inbounds i8, ptr %2, i64 1
  store i8 %11, ptr %12, align 1, !tbaa !21
  %13 = getelementptr inbounds i8, ptr %2, i64 4
  store i8 18, ptr %13, align 1, !tbaa !22
  %14 = getelementptr inbounds i8, ptr %6, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !23
  %16 = getelementptr inbounds i8, ptr %0, i64 144
  %17 = load ptr, ptr %16, align 8, !tbaa !25
  %18 = call i64 %15(ptr noundef %17, ptr noundef nonnull %2, i8 noundef zeroext 12, i32 noundef 0, ptr noundef nonnull %3, i32 noundef 18, i8 noundef zeroext %10, i32 noundef 5000000, ptr noundef nonnull %4) #3
  %19 = icmp slt i64 %18, 0
  %20 = load i32, ptr %4, align 4
  %21 = icmp ne i32 %20, 0
  %or.cond = select i1 %19, i1 true, i1 %21
  br i1 %or.cond, label %22, label %29

22:                                               ; preds = %1
  %23 = call zeroext i8 @DebugPrintEnabled() #3
  %.not20 = icmp eq i8 %23, 0
  br i1 %.not20, label %28, label %24

24:                                               ; preds = %22
  %25 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648) #3
  %.not21 = icmp eq i8 %25, 0
  br i1 %.not21, label %28, label %26

26:                                               ; preds = %24
  %27 = load i32, ptr %4, align 4, !tbaa !26
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef nonnull @.str, i64 noundef %18, i32 noundef %27) #3
  br label %28

28:                                               ; preds = %24, %26, %22
  %spec.store.select = select i1 %19, i64 %18, i64 -9223372036854775801
  br label %67

29:                                               ; preds = %1
  %30 = getelementptr inbounds i8, ptr %0, i64 80
  %31 = getelementptr inbounds i8, ptr %3, i64 2
  %32 = load i8, ptr %31, align 1, !tbaa !27
  %33 = and i8 %32, 15
  switch i8 %33, label %52 [
    i8 0, label %53
    i8 1, label %34
    i8 2, label %35
    i8 5, label %41
    i8 6, label %42
    i8 7, label %50
  ]

34:                                               ; preds = %29
  br label %53

35:                                               ; preds = %29
  %36 = getelementptr inbounds i8, ptr %3, i64 12
  %37 = load i8, ptr %36, align 1, !tbaa !29
  switch i8 %37, label %53 [
    i8 58, label %38
    i8 4, label %40
  ]

38:                                               ; preds = %35
  %39 = getelementptr inbounds i8, ptr %0, i64 85
  store i8 0, ptr %39, align 1, !tbaa !30
  br label %53

40:                                               ; preds = %35
  br label %53

41:                                               ; preds = %29
  br label %53

42:                                               ; preds = %29
  %43 = getelementptr inbounds i8, ptr %3, i64 12
  %44 = load i8, ptr %43, align 1, !tbaa !29
  %45 = icmp eq i8 %44, 40
  br i1 %45, label %46, label %53

46:                                               ; preds = %42
  %47 = getelementptr inbounds i8, ptr %0, i64 87
  store i8 0, ptr %47, align 1, !tbaa !31
  %48 = load i32, ptr %30, align 8, !tbaa !32
  %49 = add i32 %48, 1
  store i32 %49, ptr %30, align 8, !tbaa !32
  br label %53

50:                                               ; preds = %29
  %51 = getelementptr inbounds i8, ptr %0, i64 87
  store i8 1, ptr %51, align 1, !tbaa !31
  br label %53

52:                                               ; preds = %29
  br label %53

53:                                               ; preds = %35, %29, %34, %41, %50, %52, %40, %38, %46, %42
  %.0 = phi i64 [ -9223372036854775801, %52 ], [ -9223372036854775800, %50 ], [ -9223372036854775795, %46 ], [ -9223372036854775801, %42 ], [ -9223372036854775806, %41 ], [ -9223372036854775796, %38 ], [ -9223372036854775802, %40 ], [ -9223372036854775802, %34 ], [ -9223372036854775792, %29 ], [ -9223372036854775801, %35 ]
  %54 = call zeroext i8 @DebugPrintEnabled() #3
  %.not = icmp eq i8 %54, 0
  br i1 %.not, label %67, label %55

55:                                               ; preds = %53
  %56 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #3
  %.not19 = icmp eq i8 %56, 0
  br i1 %.not19, label %67, label %57

57:                                               ; preds = %55
  %58 = load i8, ptr %31, align 1, !tbaa !27
  %59 = and i8 %58, 15
  %60 = zext nneg i8 %59 to i32
  %61 = getelementptr inbounds i8, ptr %3, i64 12
  %62 = load i8, ptr %61, align 1, !tbaa !29
  %63 = zext i8 %62 to i32
  %64 = getelementptr inbounds i8, ptr %3, i64 13
  %65 = load i8, ptr %64, align 1, !tbaa !33
  %66 = zext i8 %65 to i32
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str.1, i64 noundef %.0, i32 noundef %60, i32 noundef %63, i32 noundef %66) #3
  br label %67

67:                                               ; preds = %53, %57, %55, %28
  %.017 = phi i64 [ %spec.store.select, %28 ], [ %.0, %55 ], [ %.0, %57 ], [ %.0, %53 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 18, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #3
  ret i64 %.017
}

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

declare ptr @ZeroMem(ptr noundef, i64 noundef) local_unnamed_addr #2

declare zeroext i8 @DebugPrintEnabled() local_unnamed_addr #2

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) local_unnamed_addr #2

declare void @DebugPrint(i64 noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { mustprogress 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, !10, i64 136}
!6 = !{!"_USB_MASS_DEVICE", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !11, i64 32, !13, i64 80, !8, i64 128, !8, i64 129, !8, i64 130, !10, i64 136, !10, i64 144, !14, i64 152, !17, i64 200, !8, i64 236}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_EFI_BLOCK_IO_PROTOCOL", !12, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!12 = !{!"long long", !8, i64 0}
!13 = !{!"", !7, i64 0, !8, i64 4, !8, i64 5, !8, i64 6, !8, i64 7, !8, i64 8, !7, i64 12, !7, i64 16, !12, i64 24, !12, i64 32, !7, i64 40, !7, i64 44}
!14 = !{!"_EFI_DISK_INFO_PROTOCOL", !15, i64 0, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!15 = !{!"", !7, i64 0, !16, i64 4, !16, i64 6, !8, i64 8}
!16 = !{!"short", !8, i64 0}
!17 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 4, !8, i64 5, !8, i64 8, !8, i64 16, !8, i64 32}
!18 = !{!19, !8, i64 0}
!19 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 4, !8, i64 5, !8, i64 6}
!20 = !{!6, !8, i64 129}
!21 = !{!19, !8, i64 1}
!22 = !{!19, !8, i64 4}
!23 = !{!24, !10, i64 16}
!24 = !{!"_USB_MASS_TRANSPORT", !8, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!25 = !{!6, !10, i64 144}
!26 = !{!7, !7, i64 0}
!27 = !{!28, !8, i64 2}
!28 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !8, i64 7, !8, i64 8, !8, i64 12, !8, i64 13, !8, i64 14}
!29 = !{!28, !8, i64 12}
!30 = !{!13, !8, i64 5}
!31 = !{!13, !8, i64 7}
!32 = !{!13, !7, i64 0}
!33 = !{!28, !8, i64 13}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass