; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/MdePkg/Library (ScsiInquiryCommandEx)

; 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.EFI_SCSI_IO_SCSI_REQUEST_PACKET = type { i64, ptr, ptr, ptr, ptr, i32, i32, i8, i8, i8, i8, i8 }
%struct._EFI_SCSI_IO_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [142 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [34 x i8], align 1

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

declare zeroext i8 @DebugAssertEnabled() #1

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

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

declare i64 @LShiftU64(i64 noundef, i64 noundef) #1

; 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 i64 @ScsiInquiryCommandEx(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i8 noundef zeroext %8, i8 noundef zeroext %9) #2 {
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, align 8
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca [16 x i8], align 16
  %25 = alloca i64, align 8
  %26 = alloca [6 x i8], align 1
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i64 %1, ptr %12, align 8, !tbaa !9
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store i8 %8, ptr %19, align 1, !tbaa !11
  store i8 %9, ptr %20, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 56, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 6, ptr %26) #3
  br label %27

27:                                               ; preds = %10
  %28 = call zeroext i8 @DebugAssertEnabled()
  %29 = icmp ne i8 %28, 0
  br i1 %29, label %30, label %35

30:                                               ; preds = %27
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %34, label %33

33:                                               ; preds = %30
  call void @DebugAssert(ptr noundef @.str, i64 noundef 264, ptr noundef @.str.1)
  br label %34

34:                                               ; preds = %33, %30
  br label %35

35:                                               ; preds = %34, %27
  br label %36

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  %39 = call zeroext i8 @DebugAssertEnabled()
  %40 = icmp ne i8 %39, 0
  br i1 %40, label %41, label %46

41:                                               ; preds = %38
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = icmp ne ptr %42, null
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  call void @DebugAssert(ptr noundef @.str, i64 noundef 265, ptr noundef @.str.2)
  br label %45

45:                                               ; preds = %44, %41
  br label %46

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

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48
  %50 = call zeroext i8 @DebugAssertEnabled()
  %51 = icmp ne i8 %50, 0
  br i1 %51, label %52, label %57

52:                                               ; preds = %49
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %56, label %55

55:                                               ; preds = %52
  call void @DebugAssert(ptr noundef @.str, i64 noundef 266, ptr noundef @.str.3)
  br label %56

56:                                               ; preds = %55, %52
  br label %57

57:                                               ; preds = %56, %49
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  %61 = call zeroext i8 @DebugAssertEnabled()
  %62 = icmp ne i8 %61, 0
  br i1 %62, label %63, label %68

63:                                               ; preds = %60
  %64 = load ptr, ptr %18, align 8, !tbaa !5
  %65 = icmp ne ptr %64, null
  br i1 %65, label %67, label %66

66:                                               ; preds = %63
  call void @DebugAssert(ptr noundef @.str, i64 noundef 267, ptr noundef @.str.5)
  br label %67

67:                                               ; preds = %66, %63
  br label %68

68:                                               ; preds = %67, %60
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  %72 = call zeroext i8 @DebugAssertEnabled()
  %73 = icmp ne i8 %72, 0
  br i1 %73, label %74, label %79

74:                                               ; preds = %71
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = icmp ne ptr %75, null
  br i1 %76, label %78, label %77

77:                                               ; preds = %74
  call void @DebugAssert(ptr noundef @.str, i64 noundef 268, ptr noundef @.str.4)
  br label %78

78:                                               ; preds = %77, %74
  br label %79

79:                                               ; preds = %78, %71
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  %82 = call ptr @ZeroMem(ptr noundef %21, i64 noundef 56)
  %83 = getelementptr inbounds [6 x i8], ptr %26, i64 0, i64 0
  %84 = call ptr @ZeroMem(ptr noundef %83, i64 noundef 6)
  %85 = load i64, ptr %12, align 8, !tbaa !9
  %86 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 0
  store i64 %85, ptr %86, align 8, !tbaa !12
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 1
  store ptr %87, ptr %88, align 8, !tbaa !15
  %89 = load ptr, ptr %18, align 8, !tbaa !5
  %90 = load i32, ptr %89, align 4, !tbaa !16
  %91 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 5
  store i32 %90, ptr %91, align 8, !tbaa !17
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 3
  store ptr %92, ptr %93, align 8, !tbaa !18
  %94 = load ptr, ptr %14, align 8, !tbaa !5
  %95 = load i8, ptr %94, align 1, !tbaa !11
  %96 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 11
  store i8 %95, ptr %96, align 4, !tbaa !19
  %97 = getelementptr inbounds [6 x i8], ptr %26, i64 0, i64 0
  %98 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 4
  store ptr %97, ptr %98, align 8, !tbaa !20
  %99 = getelementptr inbounds [16 x i8], ptr %24, i64 0, i64 0
  store ptr %99, ptr %23, align 8, !tbaa !5
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct._EFI_SCSI_IO_PROTOCOL, ptr %100, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !21
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = call i64 %102(ptr noundef %103, ptr noundef %23, ptr noundef %22)
  %105 = getelementptr inbounds [6 x i8], ptr %26, i64 0, i64 0
  store i8 18, ptr %105, align 1, !tbaa !11
  %106 = load i64, ptr %22, align 8, !tbaa !9
  %107 = call i64 @LShiftU64(i64 noundef %106, i64 noundef 5)
  %108 = and i64 %107, 224
  %109 = trunc i64 %108 to i8
  %110 = getelementptr inbounds [6 x i8], ptr %26, i64 0, i64 1
  store i8 %109, ptr %110, align 1, !tbaa !11
  %111 = load i8, ptr %19, align 1, !tbaa !11
  %112 = icmp ne i8 %111, 0
  br i1 %112, label %113, label %121

113:                                              ; preds = %81
  %114 = getelementptr inbounds [6 x i8], ptr %26, i64 0, i64 1
  %115 = load i8, ptr %114, align 1, !tbaa !11
  %116 = zext i8 %115 to i32
  %117 = or i32 %116, 1
  %118 = trunc i32 %117 to i8
  store i8 %118, ptr %114, align 1, !tbaa !11
  %119 = load i8, ptr %20, align 1, !tbaa !11
  %120 = getelementptr inbounds [6 x i8], ptr %26, i64 0, i64 2
  store i8 %119, ptr %120, align 1, !tbaa !11
  br label %121

121:                                              ; preds = %113, %81
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = load i32, ptr %122, align 4, !tbaa !16
  %124 = icmp ugt i32 %123, 255
  br i1 %124, label %125, label %127

125:                                              ; preds = %121
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 255, ptr %126, align 4, !tbaa !16
  br label %127

127:                                              ; preds = %125, %121
  %128 = load ptr, ptr %18, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 4, !tbaa !16
  %130 = trunc i32 %129 to i8
  %131 = getelementptr inbounds [6 x i8], ptr %26, i64 0, i64 4
  store i8 %130, ptr %131, align 1, !tbaa !11
  %132 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 7
  store i8 6, ptr %132, align 8, !tbaa !23
  %133 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 8
  store i8 0, ptr %133, align 1, !tbaa !24
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct._EFI_SCSI_IO_PROTOCOL, ptr %134, i32 0, i32 4
  %136 = load ptr, ptr %135, align 8, !tbaa !25
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = call i64 %136(ptr noundef %137, ptr noundef %21, ptr noundef null)
  store i64 %138, ptr %25, align 8, !tbaa !9
  %139 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 9
  %140 = load i8, ptr %139, align 2, !tbaa !26
  %141 = load ptr, ptr %15, align 8, !tbaa !5
  store i8 %140, ptr %141, align 1, !tbaa !11
  %142 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 10
  %143 = load i8, ptr %142, align 1, !tbaa !27
  %144 = load ptr, ptr %16, align 8, !tbaa !5
  store i8 %143, ptr %144, align 1, !tbaa !11
  %145 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 11
  %146 = load i8, ptr %145, align 4, !tbaa !19
  %147 = load ptr, ptr %14, align 8, !tbaa !5
  store i8 %146, ptr %147, align 1, !tbaa !11
  %148 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 5
  %149 = load i32, ptr %148, align 8, !tbaa !17
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %149, ptr %150, align 4, !tbaa !16
  %151 = load i64, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 6, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 56, ptr %21) #3
  ret i64 %151
}

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 = !{!"long long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !14, i64 40, !14, i64 44, !7, i64 48, !7, i64 49, !7, i64 50, !7, i64 51, !7, i64 52}
!14 = !{!"int", !7, i64 0}
!15 = !{!13, !6, i64 8}
!16 = !{!14, !14, i64 0}
!17 = !{!13, !14, i64 40}
!18 = !{!13, !6, i64 24}
!19 = !{!13, !7, i64 52}
!20 = !{!13, !6, i64 32}
!21 = !{!22, !6, i64 8}
!22 = !{!"_EFI_SCSI_IO_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !14, i64 40}
!23 = !{!13, !7, i64 48}
!24 = !{!13, !7, i64 49}
!25 = !{!22, !6, i64 32}
!26 = !{!13, !7, i64 50}
!27 = !{!13, !7, i64 51}


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

@.str = external hidden unnamed_addr constant [142 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [34 x i8], align 1

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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

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

declare i64 @LShiftU64(i64 noundef, i64 noundef) local_unnamed_addr #1

; 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
define dso_local i64 @ScsiInquiryCommandEx(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef writeonly %4, ptr noundef writeonly %5, ptr noundef %6, ptr noundef %7, i8 noundef zeroext %8, i8 noundef zeroext %9) local_unnamed_addr #2 {
  %11 = alloca %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca [16 x i8], align 16
  %15 = alloca [6 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %15) #3
  %16 = tail call zeroext i8 @DebugAssertEnabled() #3
  %17 = icmp eq i8 %16, 0
  %18 = icmp ne ptr %3, null
  %or.cond = or i1 %18, %17
  br i1 %or.cond, label %20, label %19

19:                                               ; preds = %10
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 264, ptr noundef nonnull @.str.1) #3
  br label %20

20:                                               ; preds = %10, %19
  %21 = tail call zeroext i8 @DebugAssertEnabled() #3
  %22 = icmp eq i8 %21, 0
  %23 = icmp ne ptr %4, null
  %or.cond3 = or i1 %23, %22
  br i1 %or.cond3, label %25, label %24

24:                                               ; preds = %20
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 265, ptr noundef nonnull @.str.2) #3
  br label %25

25:                                               ; preds = %20, %24
  %26 = tail call zeroext i8 @DebugAssertEnabled() #3
  %27 = icmp eq i8 %26, 0
  %28 = icmp ne ptr %5, null
  %or.cond5 = or i1 %28, %27
  br i1 %or.cond5, label %30, label %29

29:                                               ; preds = %25
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 266, ptr noundef nonnull @.str.3) #3
  br label %30

30:                                               ; preds = %25, %29
  %31 = tail call zeroext i8 @DebugAssertEnabled() #3
  %32 = icmp eq i8 %31, 0
  %33 = icmp ne ptr %7, null
  %or.cond7 = or i1 %33, %32
  br i1 %or.cond7, label %35, label %34

34:                                               ; preds = %30
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 267, ptr noundef nonnull @.str.5) #3
  br label %35

35:                                               ; preds = %30, %34
  %36 = tail call zeroext i8 @DebugAssertEnabled() #3
  %37 = icmp eq i8 %36, 0
  %38 = icmp ne ptr %0, null
  %or.cond9 = or i1 %38, %37
  br i1 %or.cond9, label %40, label %39

39:                                               ; preds = %35
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 268, ptr noundef nonnull @.str.4) #3
  br label %40

40:                                               ; preds = %39, %35
  %41 = call ptr @ZeroMem(ptr noundef nonnull %11, i64 noundef 56) #3
  %42 = call ptr @ZeroMem(ptr noundef nonnull %15, i64 noundef 6) #3
  store i64 %1, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %11, i64 8
  store ptr %6, ptr %43, align 8, !tbaa !12
  %44 = load i32, ptr %7, align 4, !tbaa !13
  %45 = getelementptr inbounds i8, ptr %11, i64 40
  store i32 %44, ptr %45, align 8, !tbaa !14
  %46 = getelementptr inbounds i8, ptr %11, i64 24
  store ptr %2, ptr %46, align 8, !tbaa !15
  %47 = load i8, ptr %3, align 1, !tbaa !16
  %48 = getelementptr inbounds i8, ptr %11, i64 52
  store i8 %47, ptr %48, align 4, !tbaa !17
  %49 = getelementptr inbounds i8, ptr %11, i64 32
  store ptr %15, ptr %49, align 8, !tbaa !18
  store ptr %14, ptr %13, align 8, !tbaa !19
  %50 = getelementptr inbounds i8, ptr %0, i64 8
  %51 = load ptr, ptr %50, align 8, !tbaa !20
  %52 = call i64 %51(ptr noundef %0, ptr noundef nonnull %13, ptr noundef nonnull %12) #3
  store i8 18, ptr %15, align 1, !tbaa !16
  %53 = load i64, ptr %12, align 8, !tbaa !22
  %54 = call i64 @LShiftU64(i64 noundef %53, i64 noundef 5) #3
  %55 = trunc i64 %54 to i8
  %56 = and i8 %55, -32
  %57 = getelementptr inbounds i8, ptr %15, i64 1
  store i8 %56, ptr %57, align 1, !tbaa !16
  %.not = icmp eq i8 %8, 0
  br i1 %.not, label %61, label %58

58:                                               ; preds = %40
  %59 = or disjoint i8 %56, 1
  store i8 %59, ptr %57, align 1, !tbaa !16
  %60 = getelementptr inbounds i8, ptr %15, i64 2
  store i8 %9, ptr %60, align 1, !tbaa !16
  br label %61

61:                                               ; preds = %58, %40
  %62 = load i32, ptr %7, align 4, !tbaa !13
  %63 = icmp ugt i32 %62, 255
  br i1 %63, label %64, label %65

64:                                               ; preds = %61
  store i32 255, ptr %7, align 4, !tbaa !13
  br label %65

65:                                               ; preds = %64, %61
  %66 = phi i32 [ 255, %64 ], [ %62, %61 ]
  %67 = trunc nuw i32 %66 to i8
  %68 = getelementptr inbounds i8, ptr %15, i64 4
  store i8 %67, ptr %68, align 1, !tbaa !16
  %69 = getelementptr inbounds i8, ptr %11, i64 48
  store i8 6, ptr %69, align 8, !tbaa !23
  %70 = getelementptr inbounds i8, ptr %11, i64 49
  store i8 0, ptr %70, align 1, !tbaa !24
  %71 = getelementptr inbounds i8, ptr %0, i64 32
  %72 = load ptr, ptr %71, align 8, !tbaa !25
  %73 = call i64 %72(ptr noundef nonnull %0, ptr noundef nonnull %11, ptr noundef null) #3
  %74 = getelementptr inbounds i8, ptr %11, i64 50
  %75 = load i8, ptr %74, align 2, !tbaa !26
  store i8 %75, ptr %4, align 1, !tbaa !16
  %76 = getelementptr inbounds i8, ptr %11, i64 51
  %77 = load i8, ptr %76, align 1, !tbaa !27
  store i8 %77, ptr %5, align 1, !tbaa !16
  %78 = load i8, ptr %48, align 4, !tbaa !17
  store i8 %78, ptr %3, align 1, !tbaa !16
  %79 = load i32, ptr %45, align 8, !tbaa !14
  store i32 %79, ptr %7, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %11) #3
  ret i64 %73
}

attributes #0 = { mustprogress 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !11, i64 44, !8, i64 48, !8, i64 49, !8, i64 50, !8, i64 51, !8, i64 52}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!6, !11, i64 40}
!15 = !{!6, !10, i64 24}
!16 = !{!8, !8, i64 0}
!17 = !{!6, !8, i64 52}
!18 = !{!6, !10, i64 32}
!19 = !{!10, !10, i64 0}
!20 = !{!21, !10, i64 8}
!21 = !{!"_EFI_SCSI_IO_PROTOCOL", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40}
!22 = !{!7, !7, i64 0}
!23 = !{!6, !8, i64 48}
!24 = !{!6, !8, i64 49}
!25 = !{!21, !10, i64 32}
!26 = !{!6, !8, i64 50}
!27 = !{!6, !8, i64 51}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass