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

; 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

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

25:                                               ; preds = %9
  %26 = call zeroext i8 @DebugAssertEnabled()
  %27 = icmp ne i8 %26, 0
  br i1 %27, label %28, label %33

28:                                               ; preds = %25
  %29 = load ptr, ptr %13, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  call void @DebugAssert(ptr noundef @.str, i64 noundef 704, ptr noundef @.str.1)
  br label %32

32:                                               ; preds = %31, %28
  br label %33

33:                                               ; preds = %32, %25
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  %37 = call zeroext i8 @DebugAssertEnabled()
  %38 = icmp ne i8 %37, 0
  br i1 %38, label %39, label %44

39:                                               ; preds = %36
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %43, label %42

42:                                               ; preds = %39
  call void @DebugAssert(ptr noundef @.str, i64 noundef 705, ptr noundef @.str.2)
  br label %43

43:                                               ; preds = %42, %39
  br label %44

44:                                               ; preds = %43, %36
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  br label %47

47:                                               ; preds = %46
  %48 = call zeroext i8 @DebugAssertEnabled()
  %49 = icmp ne i8 %48, 0
  br i1 %49, label %50, label %55

50:                                               ; preds = %47
  %51 = load ptr, ptr %15, align 8, !tbaa !5
  %52 = icmp ne ptr %51, null
  br i1 %52, label %54, label %53

53:                                               ; preds = %50
  call void @DebugAssert(ptr noundef @.str, i64 noundef 706, ptr noundef @.str.3)
  br label %54

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

55:                                               ; preds = %54, %47
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  %59 = call zeroext i8 @DebugAssertEnabled()
  %60 = icmp ne i8 %59, 0
  br i1 %60, label %61, label %66

61:                                               ; preds = %58
  %62 = load ptr, ptr %17, align 8, !tbaa !5
  %63 = icmp ne ptr %62, null
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  call void @DebugAssert(ptr noundef @.str, i64 noundef 707, ptr noundef @.str.6)
  br label %65

65:                                               ; preds = %64, %61
  br label %66

66:                                               ; preds = %65, %58
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  %70 = call zeroext i8 @DebugAssertEnabled()
  %71 = icmp ne i8 %70, 0
  br i1 %71, label %72, label %77

72:                                               ; preds = %69
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = icmp ne ptr %73, null
  br i1 %74, label %76, label %75

75:                                               ; preds = %72
  call void @DebugAssert(ptr noundef @.str, i64 noundef 708, ptr noundef @.str.4)
  br label %76

76:                                               ; preds = %75, %72
  br label %77

77:                                               ; preds = %76, %69
  br label %78

78:                                               ; preds = %77
  br label %79

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

108:                                              ; preds = %79
  %109 = getelementptr inbounds [10 x i8], ptr %24, i64 0, i64 0
  %110 = getelementptr inbounds i8, ptr %109, i64 2
  %111 = call ptr @ZeroMem(ptr noundef %110, i64 noundef 4)
  br label %118

112:                                              ; preds = %79
  %113 = getelementptr inbounds [10 x i8], ptr %24, i64 0, i64 8
  %114 = load i8, ptr %113, align 1, !tbaa !11
  %115 = zext i8 %114 to i32
  %116 = or i32 %115, 1
  %117 = trunc i32 %116 to i8
  store i8 %117, ptr %113, align 1, !tbaa !11
  br label %118

118:                                              ; preds = %112, %108
  %119 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %19, i32 0, i32 7
  store i8 10, ptr %119, align 8, !tbaa !22
  %120 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %19, i32 0, i32 8
  store i8 0, ptr %120, align 1, !tbaa !23
  %121 = load ptr, ptr %13, align 8, !tbaa !5
  %122 = load i8, ptr %121, align 1, !tbaa !11
  %123 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %19, i32 0, i32 11
  store i8 %122, ptr %123, align 4, !tbaa !24
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct._EFI_SCSI_IO_PROTOCOL, ptr %124, i32 0, i32 4
  %126 = load ptr, ptr %125, align 8, !tbaa !25
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = call i64 %126(ptr noundef %127, ptr noundef %19, ptr noundef null)
  store i64 %128, ptr %23, align 8, !tbaa !9
  %129 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %19, i32 0, i32 9
  %130 = load i8, ptr %129, align 2, !tbaa !26
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  store i8 %130, ptr %131, align 1, !tbaa !11
  %132 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %19, i32 0, i32 10
  %133 = load i8, ptr %132, align 1, !tbaa !27
  %134 = load ptr, ptr %15, align 8, !tbaa !5
  store i8 %133, ptr %134, align 1, !tbaa !11
  %135 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %19, i32 0, i32 11
  %136 = load i8, ptr %135, align 4, !tbaa !24
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  store i8 %136, ptr %137, align 1, !tbaa !11
  %138 = getelementptr inbounds %struct.EFI_SCSI_IO_SCSI_REQUEST_PACKET, ptr %19, i32 0, i32 5
  %139 = load i32, ptr %138, align 8, !tbaa !18
  %140 = load ptr, ptr %17, align 8, !tbaa !5
  store i32 %139, ptr %140, align 4, !tbaa !17
  %141 = load i64, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 10, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 56, ptr %19) #3
  ret i64 %141
}

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

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

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

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

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

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

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

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

33:                                               ; preds = %29
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 707, ptr noundef nonnull @.str.6) #3
  br label %34

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

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

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

55:                                               ; preds = %39
  %56 = getelementptr inbounds i8, ptr %14, i64 2
  %57 = call ptr @ZeroMem(ptr noundef nonnull %56, i64 noundef 4) #3
  br label %62

58:                                               ; preds = %39
  %59 = getelementptr inbounds i8, ptr %14, i64 8
  %60 = load i8, ptr %59, align 1, !tbaa !20
  %61 = or i8 %60, 1
  store i8 %61, ptr %59, align 1, !tbaa !20
  br label %62

62:                                               ; preds = %58, %55
  %63 = getelementptr inbounds i8, ptr %10, i64 48
  store i8 10, ptr %63, align 8, !tbaa !22
  %64 = getelementptr inbounds i8, ptr %10, i64 49
  store i8 0, ptr %64, align 1, !tbaa !23
  %65 = load i8, ptr %3, align 1, !tbaa !20
  %66 = getelementptr inbounds i8, ptr %10, 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 nonnull %0, ptr noundef nonnull %10, ptr noundef null) #3
  %70 = getelementptr inbounds i8, ptr %10, 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 %10, 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 %45, align 8, !tbaa !15
  store i32 %75, ptr %7, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %10) #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 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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass