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

; 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.6 = external hidden unnamed_addr constant [27 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

declare i32 @WriteUnaligned32(ptr noundef, i32 noundef) #1

declare i32 @SwapBytes32(i32 noundef) #1

declare zeroext i16 @WriteUnaligned16(ptr noundef, i16 noundef zeroext) #1

declare zeroext i16 @SwapBytes16(i16 noundef zeroext) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @ScsiWrite10Command(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8, i32 noundef %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 i32, align 4
  %20 = alloca i32, align 4
  %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 [10 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 i32 %8, ptr %19, align 4, !tbaa !11
  store i32 %9, ptr %20, align 4, !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 10, 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 1010, 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 1011, 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 1012, 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 1013, ptr noundef @.str.6)
  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 1014, 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 [10 x i8], ptr %26, i64 0, i64 0
  %84 = call ptr @ZeroMem(ptr noundef %83, i64 noundef 10)
  %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 !13
  %87 = load ptr, ptr %17, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 2
  store ptr %87, ptr %88, align 8, !tbaa !15
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 3
  store ptr %89, ptr %90, align 8, !tbaa !16
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = load i32, ptr %91, align 4, !tbaa !11
  %93 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 6
  store i32 %92, ptr %93, align 4, !tbaa !17
  %94 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 0
  %95 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 4
  store ptr %94, ptr %95, align 8, !tbaa !18
  %96 = getelementptr inbounds [16 x i8], ptr %24, i64 0, i64 0
  store ptr %96, ptr %23, align 8, !tbaa !5
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct._EFI_SCSI_IO_PROTOCOL, ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !19
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = call i64 %99(ptr noundef %100, ptr noundef %23, ptr noundef %22)
  %102 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 0
  store i8 42, ptr %102, align 1, !tbaa !21
  %103 = load i64, ptr %22, align 8, !tbaa !9
  %104 = call i64 @LShiftU64(i64 noundef %103, i64 noundef 5)
  %105 = and i64 %104, 224
  %106 = trunc i64 %105 to i8
  %107 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 1
  store i8 %106, ptr %107, align 1, !tbaa !21
  %108 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 2
  %109 = load i32, ptr %19, align 4, !tbaa !11
  %110 = call i32 @SwapBytes32(i32 noundef %109)
  %111 = call i32 @WriteUnaligned32(ptr noundef %108, i32 noundef %110)
  %112 = getelementptr inbounds [10 x i8], ptr %26, i64 0, i64 7
  %113 = load i32, ptr %20, align 4, !tbaa !11
  %114 = trunc i32 %113 to i16
  %115 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %114)
  %116 = call zeroext i16 @WriteUnaligned16(ptr noundef %112, i16 noundef zeroext %115)
  %117 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 7
  store i8 10, ptr %117, align 8, !tbaa !22
  %118 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 8
  store i8 1, ptr %118, align 1, !tbaa !23
  %119 = load ptr, ptr %14, align 8, !tbaa !5
  %120 = load i8, ptr %119, align 1, !tbaa !21
  %121 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 11
  store i8 %120, ptr %121, align 4, !tbaa !24
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct._EFI_SCSI_IO_PROTOCOL, ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !25
  %125 = load ptr, ptr %11, align 8, !tbaa !5
  %126 = call i64 %124(ptr noundef %125, ptr noundef %21, ptr noundef null)
  store i64 %126, ptr %25, align 8, !tbaa !9
  %127 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 9
  %128 = load i8, ptr %127, align 2, !tbaa !26
  %129 = load ptr, ptr %15, align 8, !tbaa !5
  store i8 %128, ptr %129, align 1, !tbaa !21
  %130 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 10
  %131 = load i8, ptr %130, align 1, !tbaa !27
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  store i8 %131, ptr %132, align 1, !tbaa !21
  %133 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 11
  %134 = load i8, ptr %133, align 4, !tbaa !24
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  store i8 %134, ptr %135, align 1, !tbaa !21
  %136 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 6
  %137 = load i32, ptr %136, align 4, !tbaa !17
  %138 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %137, ptr %138, align 4, !tbaa !11
  %139 = load i64, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 10, 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 %139
}

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

declare i32 @WriteUnaligned32(ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @SwapBytes32(i32 noundef) local_unnamed_addr #1

declare zeroext i16 @WriteUnaligned16(ptr noundef, i16 noundef zeroext) local_unnamed_addr #1

declare zeroext i16 @SwapBytes16(i16 noundef zeroext) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i64 @ScsiWrite10Command(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, i32 noundef %8, i32 noundef %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 [10 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 10, 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 1010, 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 1011, 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 1012, 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 1013, ptr noundef nonnull @.str.6) #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 1014, 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 10) #3
  store i64 %1, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %11, i64 16
  store ptr %6, ptr %43, align 8, !tbaa !12
  %44 = getelementptr inbounds i8, ptr %11, i64 24
  store ptr %2, ptr %44, align 8, !tbaa !13
  %45 = load i32, ptr %7, align 4, !tbaa !14
  %46 = getelementptr inbounds i8, ptr %11, i64 44
  store i32 %45, ptr %46, align 4, !tbaa !15
  %47 = getelementptr inbounds i8, ptr %11, i64 32
  store ptr %15, ptr %47, align 8, !tbaa !16
  store ptr %14, ptr %13, align 8, !tbaa !17
  %48 = getelementptr inbounds i8, ptr %0, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !18
  %50 = call i64 %49(ptr noundef %0, ptr noundef nonnull %13, ptr noundef nonnull %12) #3
  store i8 42, ptr %15, align 1, !tbaa !20
  %51 = load i64, ptr %12, align 8, !tbaa !21
  %52 = call i64 @LShiftU64(i64 noundef %51, i64 noundef 5) #3
  %53 = trunc i64 %52 to i8
  %54 = and i8 %53, -32
  %55 = getelementptr inbounds i8, ptr %15, i64 1
  store i8 %54, ptr %55, align 1, !tbaa !20
  %56 = getelementptr inbounds i8, ptr %15, i64 2
  %57 = call i32 @SwapBytes32(i32 noundef %8) #3
  %58 = call i32 @WriteUnaligned32(ptr noundef nonnull %56, i32 noundef %57) #3
  %59 = getelementptr inbounds i8, ptr %15, i64 7
  %60 = trunc i32 %9 to i16
  %61 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %60) #3
  %62 = call zeroext i16 @WriteUnaligned16(ptr noundef nonnull %59, i16 noundef zeroext %61) #3
  %63 = getelementptr inbounds i8, ptr %11, i64 48
  store i8 10, ptr %63, align 8, !tbaa !22
  %64 = getelementptr inbounds i8, ptr %11, i64 49
  store i8 1, ptr %64, align 1, !tbaa !23
  %65 = load i8, ptr %3, align 1, !tbaa !20
  %66 = getelementptr inbounds i8, ptr %11, i64 52
  store i8 %65, ptr %66, align 4, !tbaa !24
  %67 = getelementptr inbounds i8, ptr %0, i64 32
  %68 = load ptr, ptr %67, align 8, !tbaa !25
  %69 = call i64 %68(ptr noundef %0, ptr noundef nonnull %11, ptr noundef null) #3
  %70 = getelementptr inbounds i8, ptr %11, i64 50
  %71 = load i8, ptr %70, align 2, !tbaa !26
  store i8 %71, ptr %4, align 1, !tbaa !20
  %72 = getelementptr inbounds i8, ptr %11, i64 51
  %73 = load i8, ptr %72, align 1, !tbaa !27
  store i8 %73, ptr %5, align 1, !tbaa !20
  %74 = load i8, ptr %66, align 4, !tbaa !24
  store i8 %74, ptr %3, align 1, !tbaa !20
  %75 = load i32, ptr %46, align 4, !tbaa !15
  store i32 %75, ptr %7, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 10, 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 %69
}

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


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