; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal (MnpEnqueuePacket)

; 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_MANAGED_NETWORK_RECEIVE_DATA = type { %struct.EFI_TIME, ptr, i32, i32, i32, i32, i8, i8, i8, i16, ptr, ptr, ptr, ptr }
%struct.EFI_TIME = type { i16, i8, i8, i8, i8, i8, i8, i32, i16, i8, i8 }
%struct.MNP_SERVICE_DATA = type { i32, %struct._LIST_ENTRY, ptr, ptr, %struct._EFI_SERVICE_BINDING_PROTOCOL, ptr, %struct._LIST_ENTRY, i64, i32, i16, i8 }
%struct._EFI_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct.MNP_DEVICE_DATA = type { i32, ptr, ptr, %struct._EFI_VLAN_CONFIG_PROTOCOL, i64, ptr, ptr, %struct._LIST_ENTRY, i64, %struct._LIST_ENTRY, i32, ptr, %struct.NET_BUF_QUEUE, i64, ptr, i8, ptr, ptr, i32, i32, i32, i32, i32, i32, ptr, ptr }
%struct._EFI_VLAN_CONFIG_PROTOCOL = type { ptr, ptr, ptr }
%struct.NET_BUF_QUEUE = type { i32, i64, %struct._LIST_ENTRY, %struct._LIST_ENTRY, i32, i32 }
%struct.MNP_INSTANCE_DATA = type { i32, ptr, ptr, %struct._LIST_ENTRY, %struct._EFI_MANAGED_NETWORK_PROTOCOL, i8, i8, %struct._LIST_ENTRY, %struct.NET_MAP, %struct._LIST_ENTRY, %struct._LIST_ENTRY, i64, %struct.EFI_MANAGED_NETWORK_CONFIG_DATA, i8 }
%struct._EFI_MANAGED_NETWORK_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.NET_MAP = type { %struct._LIST_ENTRY, %struct._LIST_ENTRY, i64 }
%struct.EFI_MANAGED_NETWORK_CONFIG_DATA = type { i32, i32, i16, i8, i8, i8, i8, i8, i8, i8 }
%struct.MNP_RXDATA_WRAP = type { %struct._LIST_ENTRY, ptr, %struct.EFI_MANAGED_NETWORK_RECEIVE_DATA, ptr, i64 }
%struct.NET_BUF = type { i32, i64, %struct._LIST_ENTRY, %union.NET_IP_HEAD, ptr, ptr, [64 x i8], ptr, i32, i32, [1 x %struct.NET_BLOCK_OP] }
%union.NET_IP_HEAD = type { ptr }
%struct.NET_BLOCK_OP = type { ptr, ptr, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [147 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [115 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

; 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
declare dso_local void @MnpQueueRcvdPacket(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @MnpMatchPacket(ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext) #2

; Function Attrs: nounwind uwtable
declare dso_local void @MnpAnalysePacket(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @MnpWrapRxData(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @MnpEnqueuePacket(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.EFI_MANAGED_NETWORK_RECEIVE_DATA, align 8
  %8 = alloca i8, align 1
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 80, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store ptr null, ptr %9, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  call void @MnpAnalysePacket(ptr noundef %12, ptr noundef %13, ptr noundef %7, ptr noundef %9, ptr noundef %8)
  %14 = getelementptr inbounds %struct.EFI_MANAGED_NETWORK_RECEIVE_DATA, ptr %7, i32 0, i32 8
  %15 = load i8, ptr %14, align 2, !tbaa !9
  %16 = zext i8 %15 to i32
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %26

18:                                               ; preds = %2
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.MNP_SERVICE_DATA, ptr %19, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = getelementptr inbounds %struct.MNP_DEVICE_DATA, ptr %21, i32 0, i32 21
  %23 = load i32, ptr %22, align 4, !tbaa !19
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %18
  store i32 1, ptr %11, align 4
  br label %92

26:                                               ; preds = %18, %2
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.MNP_SERVICE_DATA, ptr %27, i32 0, i32 6
  %29 = getelementptr inbounds %struct._LIST_ENTRY, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !23
  store ptr %30, ptr %5, align 8, !tbaa !5
  br label %31

31:                                               ; preds = %87, %26
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.MNP_SERVICE_DATA, ptr %33, i32 0, i32 6
  %35 = icmp ne ptr %32, %34
  br i1 %35, label %36, label %91

36:                                               ; preds = %31
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = ptrtoint ptr %37 to i64
  %39 = sub i64 %38, ptrtoint (ptr getelementptr inbounds (%struct.MNP_INSTANCE_DATA, ptr null, i32 0, i32 3) to i64)
  %40 = inttoptr i64 %39 to ptr
  store ptr %40, ptr %6, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %36
  %42 = call zeroext i8 @DebugAssertEnabled()
  %43 = icmp ne i8 %42, 0
  br i1 %43, label %44, label %54

44:                                               ; preds = %41
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = icmp ne ptr %45, null
  br i1 %46, label %47, label %52

47:                                               ; preds = %44
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.MNP_INSTANCE_DATA, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !24
  %51 = icmp eq i32 %50, 1232105037
  br i1 %51, label %53, label %52

52:                                               ; preds = %47, %44
  call void @DebugAssert(ptr noundef @.str, i64 noundef 825, ptr noundef @.str.11)
  br label %53

53:                                               ; preds = %52, %47
  br label %54

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

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.MNP_INSTANCE_DATA, ptr %57, i32 0, i32 5
  %59 = load i8, ptr %58, align 8, !tbaa !29
  %60 = icmp ne i8 %59, 0
  br i1 %60, label %62, label %61

61:                                               ; preds = %56
  br label %87

62:                                               ; preds = %56
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = load i8, ptr %8, align 1, !tbaa !30
  %66 = call zeroext i8 @MnpMatchPacket(ptr noundef %63, ptr noundef %7, ptr noundef %64, i8 noundef zeroext %65)
  %67 = icmp ne i8 %66, 0
  br i1 %67, label %68, label %86

68:                                               ; preds = %62
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = call ptr @MnpWrapRxData(ptr noundef %69, ptr noundef %7)
  store ptr %70, ptr %10, align 8, !tbaa !5
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %74

73:                                               ; preds = %68
  br label %87

74:                                               ; preds = %68
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load ptr, ptr %10, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.MNP_RXDATA_WRAP, ptr %76, i32 0, i32 3
  store ptr %75, ptr %77, align 8, !tbaa !31
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.MNP_RXDATA_WRAP, ptr %78, i32 0, i32 3
  %80 = load ptr, ptr %79, align 8, !tbaa !31
  %81 = getelementptr inbounds %struct.NET_BUF, ptr %80, i32 0, i32 1
  %82 = load i64, ptr %81, align 8, !tbaa !33
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr %81, align 8, !tbaa !33
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  call void @MnpQueueRcvdPacket(ptr noundef %84, ptr noundef %85)
  br label %86

86:                                               ; preds = %74, %62
  br label %87

87:                                               ; preds = %86, %73, %61
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._LIST_ENTRY, ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !35
  store ptr %90, ptr %5, align 8, !tbaa !5
  br label %31, !llvm.loop !36

91:                                               ; preds = %31
  store i32 0, ptr %11, align 4
  br label %92

92:                                               ; preds = %91, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 80, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  %93 = load i32, ptr %11, align 4
  switch i32 %93, label %95 [
    i32 0, label %94
    i32 1, label %94
  ]

94:                                               ; preds = %92, %92
  ret void

95:                                               ; preds = %92
  unreachable
}

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, !7, i64 42}
!10 = !{!"", !11, i64 0, !6, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !7, i64 40, !7, i64 41, !7, i64 42, !12, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!11 = !{!"", !12, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !13, i64 8, !12, i64 12, !7, i64 14, !7, i64 15}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 24}
!15 = !{!"", !13, i64 0, !16, i64 8, !6, i64 24, !6, i64 32, !17, i64 40, !6, i64 56, !16, i64 64, !18, i64 80, !13, i64 88, !12, i64 92, !7, i64 94}
!16 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!17 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!18 = !{!"long long", !7, i64 0}
!19 = !{!20, !13, i64 236}
!20 = !{!"", !13, i64 0, !6, i64 8, !6, i64 16, !21, i64 24, !18, i64 48, !6, i64 56, !6, i64 64, !16, i64 72, !18, i64 88, !16, i64 96, !13, i64 112, !6, i64 120, !22, i64 128, !18, i64 184, !6, i64 192, !7, i64 200, !6, i64 208, !6, i64 216, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236, !13, i64 240, !13, i64 244, !6, i64 248, !6, i64 256}
!21 = !{!"_EFI_VLAN_CONFIG_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"", !13, i64 0, !18, i64 8, !16, i64 16, !16, i64 32, !13, i64 48, !13, i64 52}
!23 = !{!15, !6, i64 64}
!24 = !{!25, !13, i64 0}
!25 = !{!"", !13, i64 0, !6, i64 8, !6, i64 16, !16, i64 24, !26, i64 40, !7, i64 104, !7, i64 105, !16, i64 112, !27, i64 128, !16, i64 168, !16, i64 184, !18, i64 200, !28, i64 208, !7, i64 228}
!26 = !{!"_EFI_MANAGED_NETWORK_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!27 = !{!"", !16, i64 0, !16, i64 16, !18, i64 32}
!28 = !{!"", !13, i64 0, !13, i64 4, !12, i64 8, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16}
!29 = !{!25, !7, i64 104}
!30 = !{!7, !7, i64 0}
!31 = !{!32, !6, i64 104}
!32 = !{!"", !16, i64 0, !6, i64 16, !10, i64 24, !6, i64 104, !18, i64 112}
!33 = !{!34, !18, i64 8}
!34 = !{!"", !13, i64 0, !18, i64 8, !16, i64 16, !7, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !6, i64 120, !13, i64 128, !13, i64 132, !7, i64 136}
!35 = !{!16, !6, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}


; 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_MANAGED_NETWORK_RECEIVE_DATA = type { %struct.EFI_TIME, ptr, i32, i32, i32, i32, i8, i8, i8, i16, ptr, ptr, ptr, ptr }
%struct.EFI_TIME = type { i16, i8, i8, i8, i8, i8, i8, i32, i16, i8, i8 }

@.str = external hidden unnamed_addr constant [147 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [115 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

; 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
declare dso_local void @MnpQueueRcvdPacket(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @MnpMatchPacket(ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @MnpAnalysePacket(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @MnpWrapRxData(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @MnpEnqueuePacket(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.EFI_MANAGED_NETWORK_RECEIVE_DATA, align 8
  %4 = alloca i8, align 1
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @MnpAnalysePacket(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %3, ptr noundef nonnull %5, ptr noundef nonnull %4)
  %6 = getelementptr inbounds i8, ptr %3, i64 42
  %7 = load i8, ptr %6, align 2, !tbaa !9
  %.not = icmp eq i8 %7, 0
  br i1 %.not, label %14, label %8

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %10, i64 236
  %12 = load i32, ptr %11, align 4, !tbaa !19
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %.loopexit, label %14

14:                                               ; preds = %8, %2
  %15 = getelementptr inbounds i8, ptr %0, i64 64
  %.026 = load ptr, ptr %15, align 8, !tbaa !23
  %.not2127 = icmp eq ptr %.026, %15
  br i1 %.not2127, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %14
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  br label %17

17:                                               ; preds = %.lr.ph, %41
  %.028 = phi ptr [ %.026, %.lr.ph ], [ %.0, %41 ]
  %18 = ptrtoint ptr %.028 to i64
  %19 = add i64 %18, -24
  %20 = inttoptr i64 %19 to ptr
  %21 = call zeroext i8 @DebugAssertEnabled() #3
  %.not22 = icmp eq i8 %21, 0
  br i1 %.not22, label %27, label %22

22:                                               ; preds = %17
  %.not23 = icmp eq i64 %19, 0
  br i1 %.not23, label %26, label %23

23:                                               ; preds = %22
  %24 = load i32, ptr %20, align 8, !tbaa !24
  %25 = icmp eq i32 %24, 1232105037
  br i1 %25, label %27, label %26

26:                                               ; preds = %23, %22
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 825, ptr noundef nonnull @.str.11) #3
  br label %27

27:                                               ; preds = %23, %26, %17
  %28 = getelementptr inbounds i8, ptr %20, i64 104
  %29 = load i8, ptr %28, align 8, !tbaa !29
  %.not24 = icmp eq i8 %29, 0
  br i1 %.not24, label %41, label %30

30:                                               ; preds = %27
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load i8, ptr %4, align 1, !tbaa !30
  %33 = call zeroext i8 @MnpMatchPacket(ptr noundef nonnull %20, ptr noundef nonnull %3, ptr noundef %31, i8 noundef zeroext %32)
  %.not25 = icmp eq i8 %33, 0
  br i1 %.not25, label %41, label %34

34:                                               ; preds = %30
  %35 = call ptr @MnpWrapRxData(ptr noundef nonnull %20, ptr noundef nonnull %3)
  %36 = icmp eq ptr %35, null
  br i1 %36, label %41, label %37

37:                                               ; preds = %34
  %38 = getelementptr inbounds i8, ptr %35, i64 104
  store ptr %1, ptr %38, align 8, !tbaa !31
  %39 = load i64, ptr %16, align 8, !tbaa !33
  %40 = add nsw i64 %39, 1
  store i64 %40, ptr %16, align 8, !tbaa !33
  call void @MnpQueueRcvdPacket(ptr noundef nonnull %20, ptr noundef nonnull %35)
  br label %41

41:                                               ; preds = %30, %37, %34, %27
  %.0 = load ptr, ptr %.028, align 8, !tbaa !23
  %.not21 = icmp eq ptr %.0, %15
  br i1 %.not21, label %.loopexit, label %17, !llvm.loop !35

.loopexit:                                        ; preds = %41, %14, %8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #3
  ret void
}

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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !7, i64 42}
!10 = !{!"", !11, i64 0, !6, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !7, i64 40, !7, i64 41, !7, i64 42, !12, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!11 = !{!"", !12, i64 0, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !13, i64 8, !12, i64 12, !7, i64 14, !7, i64 15}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 24}
!15 = !{!"", !13, i64 0, !16, i64 8, !6, i64 24, !6, i64 32, !17, i64 40, !6, i64 56, !16, i64 64, !18, i64 80, !13, i64 88, !12, i64 92, !7, i64 94}
!16 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!17 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!18 = !{!"long long", !7, i64 0}
!19 = !{!20, !13, i64 236}
!20 = !{!"", !13, i64 0, !6, i64 8, !6, i64 16, !21, i64 24, !18, i64 48, !6, i64 56, !6, i64 64, !16, i64 72, !18, i64 88, !16, i64 96, !13, i64 112, !6, i64 120, !22, i64 128, !18, i64 184, !6, i64 192, !7, i64 200, !6, i64 208, !6, i64 216, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236, !13, i64 240, !13, i64 244, !6, i64 248, !6, i64 256}
!21 = !{!"_EFI_VLAN_CONFIG_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"", !13, i64 0, !18, i64 8, !16, i64 16, !16, i64 32, !13, i64 48, !13, i64 52}
!23 = !{!16, !6, i64 0}
!24 = !{!25, !13, i64 0}
!25 = !{!"", !13, i64 0, !6, i64 8, !6, i64 16, !16, i64 24, !26, i64 40, !7, i64 104, !7, i64 105, !16, i64 112, !27, i64 128, !16, i64 168, !16, i64 184, !18, i64 200, !28, i64 208, !7, i64 228}
!26 = !{!"_EFI_MANAGED_NETWORK_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!27 = !{!"", !16, i64 0, !16, i64 16, !18, i64 32}
!28 = !{!"", !13, i64 0, !13, i64 4, !12, i64 8, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16}
!29 = !{!25, !7, i64 104}
!30 = !{!7, !7, i64 0}
!31 = !{!32, !6, i64 104}
!32 = !{!"", !16, i64 0, !6, i64 16, !10, i64 24, !6, i64 104, !18, i64 112}
!33 = !{!34, !18, i64 8}
!34 = !{!"", !13, i64 0, !18, i64 8, !16, i64 16, !7, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !6, i64 120, !13, i64 128, !13, i64 132, !7, i64 136}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}


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