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

; 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

; Function Attrs: nounwind uwtable
define dso_local i64 @ScsiRead16Command(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i64 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 i64, align 8
  %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 [16 x i8], align 16
  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 i64 %8, ptr %19, align 8, !tbaa !9
  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 16, 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 1108, 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 1109, 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 1110, 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 1111, 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 1112, 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 [16 x i8], ptr %26, i64 0, i64 0
  %84 = call ptr @ZeroMem(ptr noundef %83, i64 noundef 16)
  %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 1
  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 5
  store i32 %92, ptr %93, align 8, !tbaa !17
  %94 = getelementptr inbounds [16 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 [16 x i8], ptr %26, i64 0, i64 0
  store i8 -120, ptr %102, align 16, !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 [16 x i8], ptr %26, i64 0, i64 1
  store i8 %106, ptr %107, align 1, !tbaa !21
  %108 = getelementptr inbounds [16 x i8], ptr %26, i64 0, i64 2
  %109 = load i64, ptr %19, align 8, !tbaa !9
  %110 = call i64 @SwapBytes64(i64 noundef %109)
  %111 = call i64 @WriteUnaligned64(ptr noundef %108, i64 noundef %110)
  %112 = getelementptr inbounds [16 x i8], ptr %26, i64 0, i64 10
  %113 = load i32, ptr %20, align 4, !tbaa !11
  %114 = call i32 @SwapBytes32(i32 noundef %113)
  %115 = call i32 @WriteUnaligned32(ptr noundef %112, i32 noundef %114)
  %116 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 7
  store i8 16, ptr %116, align 8, !tbaa !22
  %117 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 8
  store i8 0, ptr %117, align 1, !tbaa !23
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = load i8, ptr %118, align 1, !tbaa !21
  %120 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 11
  store i8 %119, ptr %120, align 4, !tbaa !24
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct._EFI_SCSI_IO_PROTOCOL, ptr %121, i32 0, i32 4
  %123 = load ptr, ptr %122, align 8, !tbaa !25
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = call i64 %123(ptr noundef %124, ptr noundef %21, ptr noundef null)
  store i64 %125, ptr %25, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 9
  %127 = load i8, ptr %126, align 2, !tbaa !26
  %128 = load ptr, ptr %15, align 8, !tbaa !5
  store i8 %127, ptr %128, align 1, !tbaa !21
  %129 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 10
  %130 = load i8, ptr %129, align 1, !tbaa !27
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  store i8 %130, ptr %131, align 1, !tbaa !21
  %132 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 11
  %133 = load i8, ptr %132, align 4, !tbaa !24
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  store i8 %133, ptr %134, align 1, !tbaa !21
  %135 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %21, i32 0, i32 5
  %136 = load i32, ptr %135, align 8, !tbaa !17
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %136, ptr %137, align 4, !tbaa !11
  %138 = load i64, ptr %25, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, 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 %138
}

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

declare i64 @SwapBytes64(i64 noundef) #1

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 8}
!16 = !{!14, !6, i64 24}
!17 = !{!14, !12, i64 40}
!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

; Function Attrs: nounwind uwtable
define dso_local i64 @ScsiRead16Command(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, i64 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 [16 x i8], align 16
  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 16, 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 1108, 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 1109, 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 1110, 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 1111, 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 1112, 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 16) #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 = 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 40
  store i32 %45, ptr %46, align 8, !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 -120, ptr %15, align 16, !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 i64 @SwapBytes64(i64 noundef %8) #3
  %58 = call i64 @WriteUnaligned64(ptr noundef nonnull %56, i64 noundef %57) #3
  %59 = getelementptr inbounds i8, ptr %15, i64 10
  %60 = call i32 @SwapBytes32(i32 noundef %9) #3
  %61 = call i32 @WriteUnaligned32(ptr noundef nonnull %59, i32 noundef %60) #3
  %62 = getelementptr inbounds i8, ptr %11, i64 48
  store i8 16, ptr %62, align 8, !tbaa !22
  %63 = getelementptr inbounds i8, ptr %11, i64 49
  store i8 0, ptr %63, align 1, !tbaa !23
  %64 = load i8, ptr %3, align 1, !tbaa !20
  %65 = getelementptr inbounds i8, ptr %11, i64 52
  store i8 %64, ptr %65, align 4, !tbaa !24
  %66 = getelementptr inbounds i8, ptr %0, i64 32
  %67 = load ptr, ptr %66, align 8, !tbaa !25
  %68 = call i64 %67(ptr noundef %0, ptr noundef nonnull %11, ptr noundef null) #3
  %69 = getelementptr inbounds i8, ptr %11, i64 50
  %70 = load i8, ptr %69, align 2, !tbaa !26
  store i8 %70, ptr %4, align 1, !tbaa !20
  %71 = getelementptr inbounds i8, ptr %11, i64 51
  %72 = load i8, ptr %71, align 1, !tbaa !27
  store i8 %72, ptr %5, align 1, !tbaa !20
  %73 = load i8, ptr %65, align 4, !tbaa !24
  store i8 %73, ptr %3, align 1, !tbaa !20
  %74 = load i32, ptr %46, align 8, !tbaa !15
  store i32 %74, ptr %7, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, 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 %68
}

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

declare i64 @SwapBytes64(i64 noundef) local_unnamed_addr #1

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 = !{!6, !10, i64 24}
!14 = !{!11, !11, i64 0}
!15 = !{!6, !11, i64 40}
!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