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

; 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_ENDPOINT_DESCRIPTOR = type <{ i8, i8, i8, i8, i16, i8 }>
%struct.USB_BOT_PROTOCOL = type { %struct.USB_INTERFACE_DESCRIPTOR, ptr, ptr, i32, ptr }
%struct.USB_INTERFACE_DESCRIPTOR = type { i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%struct._EFI_USB_IO_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [153 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @UsbBotInit(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.USB_ENDPOINT_DESCRIPTOR, align 1
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  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 7, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #3
  %12 = call ptr @AllocateZeroPool(i64 noundef 62)
  store ptr %12, ptr %6, align 8, !tbaa !5
  br label %13

13:                                               ; preds = %2
  %14 = call zeroext i8 @DebugAssertEnabled()
  %15 = icmp ne i8 %14, 0
  br i1 %15, label %16, label %21

16:                                               ; preds = %13
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  call void @DebugAssert(ptr noundef @.str, i64 noundef 61, ptr noundef @.str.1)
  br label %20

20:                                               ; preds = %19, %16
  br label %21

21:                                               ; preds = %20, %13
  br label %22

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %22
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %25, i32 0, i32 4
  store ptr %24, ptr %26, align 8, !tbaa !9
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._EFI_USB_IO_PROTOCOL, ptr %27, i32 0, i32 8
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %31, i32 0, i32 0
  %33 = call i64 %29(ptr noundef %30, ptr noundef %32)
  store i64 %33, ptr %9, align 8, !tbaa !15
  %34 = load i64, ptr %9, align 8, !tbaa !15
  %35 = icmp slt i64 %34, 0
  br i1 %35, label %36, label %37

36:                                               ; preds = %23
  br label %138

37:                                               ; preds = %23
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %38, i32 0, i32 0
  store ptr %39, ptr %7, align 8, !tbaa !5
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.USB_INTERFACE_DESCRIPTOR, ptr %40, i32 0, i32 7
  %42 = load i8, ptr %41, align 1, !tbaa !17
  %43 = zext i8 %42 to i32
  %44 = icmp ne i32 %43, 80
  br i1 %44, label %45, label %46

45:                                               ; preds = %37
  store i64 -9223372036854775805, ptr %9, align 8, !tbaa !15
  br label %138

46:                                               ; preds = %37
  store i8 0, ptr %10, align 1, !tbaa !18
  br label %47

47:                                               ; preds = %113, %46
  %48 = load i8, ptr %10, align 1, !tbaa !18
  %49 = zext i8 %48 to i32
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.USB_INTERFACE_DESCRIPTOR, ptr %50, i32 0, i32 4
  %52 = load i8, ptr %51, align 1, !tbaa !19
  %53 = zext i8 %52 to i32
  %54 = icmp slt i32 %49, %53
  br i1 %54, label %55, label %116

55:                                               ; preds = %47
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._EFI_USB_IO_PROTOCOL, ptr %56, i32 0, i32 9
  %58 = load ptr, ptr %57, align 8, !tbaa !20
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = load i8, ptr %10, align 1, !tbaa !18
  %61 = call i64 %58(ptr noundef %59, i8 noundef zeroext %60, ptr noundef %8)
  store i64 %61, ptr %9, align 8, !tbaa !15
  %62 = load i64, ptr %9, align 8, !tbaa !15
  %63 = icmp slt i64 %62, 0
  br i1 %63, label %70, label %64

64:                                               ; preds = %55
  %65 = getelementptr inbounds %struct.USB_ENDPOINT_DESCRIPTOR, ptr %8, i32 0, i32 3
  %66 = load i8, ptr %65, align 1, !tbaa !21
  %67 = zext i8 %66 to i32
  %68 = and i32 %67, 3
  %69 = icmp eq i32 %68, 2
  br i1 %69, label %71, label %70

70:                                               ; preds = %64, %55
  br label %113

71:                                               ; preds = %64
  %72 = getelementptr inbounds %struct.USB_ENDPOINT_DESCRIPTOR, ptr %8, i32 0, i32 2
  %73 = load i8, ptr %72, align 1, !tbaa !24
  %74 = zext i8 %73 to i32
  %75 = and i32 %74, 128
  %76 = icmp eq i32 %75, 128
  br i1 %76, label %77, label %91

77:                                               ; preds = %71
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %78, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !25
  %81 = icmp eq ptr %80, null
  br i1 %81, label %82, label %91

82:                                               ; preds = %77
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %83, i64 1
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %85, i32 0, i32 1
  store ptr %84, ptr %86, align 8, !tbaa !25
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %87, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !25
  %90 = call ptr @CopyMem(ptr noundef %89, ptr noundef %8, i64 noundef 7)
  br label %91

91:                                               ; preds = %82, %77, %71
  %92 = getelementptr inbounds %struct.USB_ENDPOINT_DESCRIPTOR, ptr %8, i32 0, i32 2
  %93 = load i8, ptr %92, align 1, !tbaa !24
  %94 = zext i8 %93 to i32
  %95 = and i32 %94, 128
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %112

97:                                               ; preds = %91
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %98, i32 0, i32 2
  %100 = load ptr, ptr %99, align 8, !tbaa !26
  %101 = icmp eq ptr %100, null
  br i1 %101, label %102, label %112

102:                                              ; preds = %97
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %103, i64 1
  %105 = getelementptr inbounds %struct.USB_ENDPOINT_DESCRIPTOR, ptr %104, i64 1
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %106, i32 0, i32 2
  store ptr %105, ptr %107, align 8, !tbaa !26
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %108, i32 0, i32 2
  %110 = load ptr, ptr %109, align 8, !tbaa !26
  %111 = call ptr @CopyMem(ptr noundef %110, ptr noundef %8, i64 noundef 7)
  br label %112

112:                                              ; preds = %102, %97, %91
  br label %113

113:                                              ; preds = %112, %70
  %114 = load i8, ptr %10, align 1, !tbaa !18
  %115 = add i8 %114, 1
  store i8 %115, ptr %10, align 1, !tbaa !18
  br label %47, !llvm.loop !27

116:                                              ; preds = %47
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %117, i32 0, i32 1
  %119 = load ptr, ptr %118, align 8, !tbaa !25
  %120 = icmp eq ptr %119, null
  br i1 %120, label %126, label %121

121:                                              ; preds = %116
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %122, i32 0, i32 2
  %124 = load ptr, ptr %123, align 8, !tbaa !26
  %125 = icmp eq ptr %124, null
  br i1 %125, label %126, label %127

126:                                              ; preds = %121, %116
  store i64 -9223372036854775805, ptr %9, align 8, !tbaa !15
  br label %138

127:                                              ; preds = %121
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.USB_BOT_PROTOCOL, ptr %128, i32 0, i32 3
  store i32 1, ptr %129, align 8, !tbaa !29
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = icmp ne ptr %130, null
  br i1 %131, label %132, label %135

132:                                              ; preds = %127
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %133, ptr %134, align 8, !tbaa !5
  br label %137

135:                                              ; preds = %127
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  call void @FreePool(ptr noundef %136)
  br label %137

137:                                              ; preds = %135, %132
  store i64 0, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %141

138:                                              ; preds = %126, %45, %36
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  call void @FreePool(ptr noundef %139)
  %140 = load i64, ptr %9, align 8, !tbaa !15
  store i64 %140, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %141

141:                                              ; preds = %138, %137
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 7, 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
  %142 = load i64, ptr %3, align 8
  ret i64 %142
}

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

declare ptr @AllocateZeroPool(i64 noundef) #2

declare zeroext i8 @DebugAssertEnabled() #2

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

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

declare void @FreePool(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 40}
!10 = !{!"", !11, i64 0, !6, i64 16, !6, i64 24, !12, i64 32, !6, i64 40}
!11 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 64}
!14 = !{!"_EFI_USB_IO_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, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96}
!15 = !{!16, !16, i64 0}
!16 = !{!"long long", !7, i64 0}
!17 = !{!11, !7, i64 7}
!18 = !{!7, !7, i64 0}
!19 = !{!11, !7, i64 4}
!20 = !{!14, !6, i64 72}
!21 = !{!22, !7, i64 3}
!22 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !23, i64 4, !7, i64 6}
!23 = !{!"short", !7, i64 0}
!24 = !{!22, !7, i64 2}
!25 = !{!10, !6, i64 16}
!26 = !{!10, !6, i64 24}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!10, !12, i64 32}


; 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_ENDPOINT_DESCRIPTOR = type <{ i8, i8, i8, i8, i16, i8 }>

@.str = external hidden unnamed_addr constant [153 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775808, 1) i64 @UsbBotInit(ptr noundef %0, ptr noundef writeonly %1) local_unnamed_addr #0 {
  %3 = alloca %struct.USB_ENDPOINT_DESCRIPTOR, align 1
  call void @llvm.lifetime.start.p0(i64 7, ptr nonnull %3) #3
  %4 = tail call ptr @AllocateZeroPool(i64 noundef 62) #3
  %5 = tail call zeroext i8 @DebugAssertEnabled() #3
  %6 = icmp eq i8 %5, 0
  %7 = icmp ne ptr %4, null
  %or.cond = select i1 %6, i1 true, i1 %7
  br i1 %or.cond, label %9, label %8

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

9:                                                ; preds = %8, %2
  %10 = getelementptr inbounds i8, ptr %4, i64 40
  store ptr %0, ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 64
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  %13 = tail call i64 %12(ptr noundef %0, ptr noundef %4) #3
  %14 = icmp slt i64 %13, 0
  br i1 %14, label %61, label %15

15:                                               ; preds = %9
  %16 = getelementptr inbounds i8, ptr %4, i64 7
  %17 = load i8, ptr %16, align 1, !tbaa !14
  %.not = icmp eq i8 %17, 80
  br i1 %.not, label %.preheader, label %61

.preheader:                                       ; preds = %15
  %18 = getelementptr inbounds i8, ptr %4, i64 4
  %19 = load i8, ptr %18, align 1, !tbaa !15
  %.not41 = icmp eq i8 %19, 0
  br i1 %.not41, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %20 = getelementptr inbounds i8, ptr %0, i64 72
  %21 = getelementptr inbounds i8, ptr %3, i64 3
  %22 = getelementptr inbounds i8, ptr %3, i64 2
  %23 = getelementptr inbounds i8, ptr %4, i64 16
  %24 = getelementptr inbounds i8, ptr %4, i64 48
  %25 = getelementptr inbounds i8, ptr %4, i64 24
  %26 = getelementptr inbounds i8, ptr %4, i64 55
  br label %27

27:                                               ; preds = %.lr.ph, %.thread43
  %.040 = phi i8 [ 0, %.lr.ph ], [ %47, %.thread43 ]
  %28 = load ptr, ptr %20, align 8, !tbaa !16
  %29 = call i64 %28(ptr noundef nonnull %0, i8 noundef zeroext %.040, ptr noundef nonnull %3) #3
  %30 = icmp slt i64 %29, 0
  br i1 %30, label %.thread43, label %31

31:                                               ; preds = %27
  %32 = load i8, ptr %21, align 1, !tbaa !17
  %33 = and i8 %32, 3
  %34 = icmp eq i8 %33, 2
  br i1 %34, label %35, label %.thread43

35:                                               ; preds = %31
  %36 = load i8, ptr %22, align 1, !tbaa !20
  %.not39 = icmp sgt i8 %36, -1
  br i1 %.not39, label %.thread, label %37

37:                                               ; preds = %35
  %38 = load ptr, ptr %23, align 8, !tbaa !21
  %39 = icmp eq ptr %38, null
  br i1 %39, label %40, label %.thread43

40:                                               ; preds = %37
  store ptr %24, ptr %23, align 8, !tbaa !21
  %41 = call ptr @CopyMem(ptr noundef nonnull %24, ptr noundef nonnull %3, i64 noundef 7) #3
  %.pr.pre = load i8, ptr %22, align 1, !tbaa !20
  %42 = icmp sgt i8 %.pr.pre, -1
  br i1 %42, label %.thread, label %.thread43

.thread:                                          ; preds = %35, %40
  %43 = load ptr, ptr %25, align 8, !tbaa !22
  %44 = icmp eq ptr %43, null
  br i1 %44, label %45, label %.thread43

45:                                               ; preds = %.thread
  store ptr %26, ptr %25, align 8, !tbaa !22
  %46 = call ptr @CopyMem(ptr noundef nonnull %26, ptr noundef nonnull %3, i64 noundef 7) #3
  br label %.thread43

.thread43:                                        ; preds = %37, %40, %.thread, %45, %27, %31
  %47 = add nuw i8 %.040, 1
  %48 = load i8, ptr %18, align 1, !tbaa !15
  %49 = icmp ult i8 %47, %48
  br i1 %49, label %27, label %._crit_edge, !llvm.loop !23

._crit_edge:                                      ; preds = %.thread43, %.preheader
  %50 = getelementptr inbounds i8, ptr %4, i64 16
  %51 = load ptr, ptr %50, align 8, !tbaa !21
  %52 = icmp eq ptr %51, null
  br i1 %52, label %61, label %53

53:                                               ; preds = %._crit_edge
  %54 = getelementptr inbounds i8, ptr %4, i64 24
  %55 = load ptr, ptr %54, align 8, !tbaa !22
  %56 = icmp eq ptr %55, null
  br i1 %56, label %61, label %57

57:                                               ; preds = %53
  %58 = getelementptr inbounds i8, ptr %4, i64 32
  store i32 1, ptr %58, align 8, !tbaa !25
  %.not38 = icmp eq ptr %1, null
  br i1 %.not38, label %60, label %59

59:                                               ; preds = %57
  store ptr %4, ptr %1, align 8, !tbaa !26
  br label %62

60:                                               ; preds = %57
  call void @FreePool(ptr noundef nonnull %4) #3
  br label %62

61:                                               ; preds = %._crit_edge, %53, %15, %9
  %.034 = phi i64 [ %13, %9 ], [ -9223372036854775805, %15 ], [ -9223372036854775805, %53 ], [ -9223372036854775805, %._crit_edge ]
  call void @FreePool(ptr noundef nonnull %4) #3
  br label %62

62:                                               ; preds = %59, %60, %61
  %.035 = phi i64 [ %.034, %61 ], [ 0, %60 ], [ 0, %59 ]
  call void @llvm.lifetime.end.p0(i64 7, ptr nonnull %3) #3
  ret i64 %.035
}

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

declare ptr @AllocateZeroPool(i64 noundef) local_unnamed_addr #2

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #2

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

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

declare void @FreePool(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 40}
!6 = !{!"", !7, i64 0, !10, i64 16, !10, i64 24, !11, i64 32, !10, i64 40}
!7 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !8, i64 4, !8, i64 5, !8, i64 6, !8, i64 7, !8, i64 8}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !10, i64 64}
!13 = !{!"_EFI_USB_IO_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, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96}
!14 = !{!7, !8, i64 7}
!15 = !{!7, !8, i64 4}
!16 = !{!13, !10, i64 72}
!17 = !{!18, !8, i64 3}
!18 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !19, i64 4, !8, i64 6}
!19 = !{!"short", !8, i64 0}
!20 = !{!18, !8, i64 2}
!21 = !{!6, !10, i64 16}
!22 = !{!6, !10, i64 24}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!6, !11, i64 32}
!26 = !{!10, !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass