; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg (Undi16SimpleNetworkShutdown)

; 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.PXENV_UNDI_CLOSE_T = type { i16 }
%struct.PXENV_UNDI_SHUTDOWN_T = type { i16 }
%struct.EFI_SIMPLE_NETWORK_DEV = type { i64, ptr, %struct._EFI_SIMPLE_NETWORK_PROTOCOL, %struct.EFI_SIMPLE_NETWORK_MODE, %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr, ptr, ptr, i8, ptr, ptr, i16, i16, %struct.EFI_SIMPLE_NETWORK_DEV_FIFO, ptr, ptr, %struct.PXENV_UNDI_GET_INFORMATION_T, %struct.PXENV_UNDI_GET_NIC_TYPE_T, %struct.PXENV_UNDI_GET_NDIS_INFO_T, i8, %struct.PXENV_UNDI_ISR_T, ptr, ptr, ptr, ptr, i8, i64, i64, i64, i64, ptr, ptr, ptr, ptr }
%struct._EFI_SIMPLE_NETWORK_PROTOCOL = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_SIMPLE_NETWORK_MODE = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [16 x %struct.EFI_MAC_ADDRESS], %struct.EFI_MAC_ADDRESS, %struct.EFI_MAC_ADDRESS, %struct.EFI_MAC_ADDRESS, i8, i8, i8, i8, i8 }
%struct.EFI_MAC_ADDRESS = type { [32 x i8] }
%struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL = type { i64, i64, i64, i32, [4 x i8], i8, i8, i8, i8, i16 }
%struct.EFI_SIMPLE_NETWORK_DEV_FIFO = type { i32, i32, [64 x ptr] }
%struct.PXENV_UNDI_GET_INFORMATION_T = type { i16, i16, i16, i16, i16, i16, [16 x i8], [16 x i8], i16, i16, i16 }
%struct.PXENV_UNDI_GET_NIC_TYPE_T = type <{ i16, i8, %union.PCI_PNP_INFO_T }>
%union.PCI_PNP_INFO_T = type { %struct.PCI_INFO_T }
%struct.PCI_INFO_T = type { i16, i16, i8, i8, i8, i8, i16, i16, i16 }
%struct.PXENV_UNDI_GET_NDIS_INFO_T = type <{ i16, [16 x i8], i32, i32, [4 x i32] }>
%struct.PXENV_UNDI_ISR_T = type { i16, i16, i16, i16, i16, i16, i16, i8, i8 }
%struct.EFI_BOOT_SERVICES = type { %struct.EFI_TABLE_HEADER, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_TABLE_HEADER = type { i64, i32, i32, i32, i32 }

@gBS = external global ptr, align 8
@.str.29 = external hidden unnamed_addr constant [160 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [21 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

; 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 @Undi16SimpleNetworkShutdown(ptr noundef %0) #1 {
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.PXENV_UNDI_CLOSE_T, align 1
  %7 = alloca %struct.PXENV_UNDI_SHUTDOWN_T, align 1
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #3
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %1
  store i64 -9223372036854775806, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %92

12:                                               ; preds = %1
  store i64 0, ptr %4, align 8, !tbaa !9
  %13 = call zeroext i8 @DebugAssertEnabled()
  %14 = zext i8 %13 to i32
  %15 = icmp ne i32 %14, 0
  br i1 %15, label %16, label %26

16:                                               ; preds = %12
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = ptrtoint ptr %17 to i64
  %19 = sub i64 %18, ptrtoint (ptr getelementptr inbounds (%struct.EFI_SIMPLE_NETWORK_DEV, ptr null, i32 0, i32 2) to i64)
  %20 = inttoptr i64 %19 to ptr
  %21 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %20, i32 0, i32 0
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = icmp ne i64 %22, 909209203
  br i1 %23, label %24, label %26

24:                                               ; preds = %16
  call void @DebugAssert(ptr noundef @.str.29, i64 noundef 2254, ptr noundef @.str.30)
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  br label %31

26:                                               ; preds = %16, %12
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = ptrtoint ptr %27 to i64
  %29 = sub i64 %28, ptrtoint (ptr getelementptr inbounds (%struct.EFI_SIMPLE_NETWORK_DEV, ptr null, i32 0, i32 2) to i64)
  %30 = inttoptr i64 %29 to ptr
  br label %31

31:                                               ; preds = %26, %24
  %32 = phi ptr [ %25, %24 ], [ %30, %26 ]
  store ptr %32, ptr %5, align 8, !tbaa !5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %36

35:                                               ; preds = %31
  store i64 -9223372036854775801, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %92

36:                                               ; preds = %31
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %37, i32 0, i32 3
  %39 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_MODE, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !24
  switch i32 %40, label %43 [
    i32 0, label %41
    i32 2, label %44
    i32 1, label %42
  ]

41:                                               ; preds = %36
  store i64 -9223372036854775789, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %92

42:                                               ; preds = %36
  br label %43

43:                                               ; preds = %42, %36
  store i64 -9223372036854775801, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %92

44:                                               ; preds = %36
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %45, i32 0, i32 19
  store i8 0, ptr %46, align 1, !tbaa !25
  %47 = getelementptr inbounds %struct.PXENV_UNDI_CLOSE_T, ptr %6, i32 0, i32 0
  store i16 -21555, ptr %47, align 1, !tbaa !26
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = call i64 @PxeUndiClose(ptr noundef %48, ptr noundef %6)
  store i64 %49, ptr %4, align 8, !tbaa !9
  %50 = load i64, ptr %4, align 8, !tbaa !9
  %51 = icmp slt i64 %50, 0
  br i1 %51, label %52, label %54

52:                                               ; preds = %44
  %53 = load i64, ptr %4, align 8, !tbaa !9
  store i64 %53, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %92

54:                                               ; preds = %44
  %55 = getelementptr inbounds %struct.PXENV_UNDI_CLOSE_T, ptr %6, i32 0, i32 0
  %56 = load i16, ptr %55, align 1, !tbaa !26
  %57 = zext i16 %56 to i32
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %60

59:                                               ; preds = %54
  store i64 -9223372036854775801, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %92

60:                                               ; preds = %54
  %61 = getelementptr inbounds %struct.PXENV_UNDI_SHUTDOWN_T, ptr %7, i32 0, i32 0
  store i16 -21555, ptr %61, align 1, !tbaa !26
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = call i64 @PxeUndiShutdown(ptr noundef %62, ptr noundef %7)
  store i64 %63, ptr %4, align 8, !tbaa !9
  %64 = load i64, ptr %4, align 8, !tbaa !9
  %65 = icmp slt i64 %64, 0
  br i1 %65, label %66, label %68

66:                                               ; preds = %60
  %67 = load i64, ptr %4, align 8, !tbaa !9
  store i64 %67, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %92

68:                                               ; preds = %60
  %69 = getelementptr inbounds %struct.PXENV_UNDI_SHUTDOWN_T, ptr %7, i32 0, i32 0
  %70 = load i16, ptr %69, align 1, !tbaa !26
  %71 = zext i16 %70 to i32
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %74

73:                                               ; preds = %68
  store i64 -9223372036854775801, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %92

74:                                               ; preds = %68
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %75, i32 0, i32 3
  %77 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_MODE, ptr %76, i32 0, i32 0
  store i32 1, ptr %77, align 8, !tbaa !24
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %78, i32 0, i32 3
  %80 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_MODE, ptr %79, i32 0, i32 18
  store i8 0, ptr %80, align 4, !tbaa !28
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %81, i32 0, i32 13
  %83 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV_FIFO, ptr %82, i32 0, i32 0
  store i32 0, ptr %83, align 8, !tbaa !29
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %84, i32 0, i32 13
  %86 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV_FIFO, ptr %85, i32 0, i32 1
  store i32 0, ptr %86, align 4, !tbaa !30
  %87 = load ptr, ptr @gBS, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %87, i32 0, i32 29
  %89 = load ptr, ptr %88, align 8, !tbaa !31
  %90 = call i64 %89(i64 noundef 250000)
  %91 = load i64, ptr %4, align 8, !tbaa !9
  store i64 %91, ptr %2, align 8
  store i32 1, ptr %8, align 4
  br label %92

92:                                               ; preds = %74, %73, %66, %59, %52, %43, %41, %35, %11
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %93 = load i64, ptr %2, align 8
  ret i64 %93
}

declare zeroext i8 @DebugAssertEnabled() #2

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

declare i64 @PxeUndiClose(ptr noundef, ptr noundef) #2

declare i64 @PxeUndiShutdown(ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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, !10, i64 0}
!12 = !{!"", !10, i64 0, !6, i64 8, !13, i64 16, !14, i64 144, !17, i64 800, !6, i64 840, !6, i64 848, !6, i64 856, !7, i64 864, !6, i64 872, !6, i64 880, !18, i64 888, !18, i64 890, !19, i64 896, !6, i64 1416, !6, i64 1424, !20, i64 1432, !21, i64 1482, !22, i64 1499, !7, i64 1541, !23, i64 1542, !6, i64 1560, !6, i64 1568, !6, i64 1576, !6, i64 1584, !7, i64 1592, !10, i64 1600, !10, i64 1608, !10, i64 1616, !10, i64 1624, !6, i64 1632, !6, i64 1640, !6, i64 1648, !6, i64 1656}
!13 = !{!"_EFI_SIMPLE_NETWORK_PROTOCOL", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!14 = !{!"", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !7, i64 40, !16, i64 552, !16, i64 584, !16, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!15 = !{!"int", !7, i64 0}
!16 = !{!"", !7, i64 0}
!17 = !{!"_EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL", !10, i64 0, !10, i64 8, !10, i64 16, !15, i64 24, !7, i64 28, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !18, i64 36}
!18 = !{!"short", !7, i64 0}
!19 = !{!"", !15, i64 0, !15, i64 4, !7, i64 8}
!20 = !{!"", !18, i64 0, !18, i64 2, !18, i64 4, !18, i64 6, !18, i64 8, !18, i64 10, !7, i64 12, !7, i64 28, !18, i64 44, !18, i64 46, !18, i64 48}
!21 = !{!"", !18, i64 0, !7, i64 2, !7, i64 3}
!22 = !{!"", !18, i64 0, !7, i64 2, !15, i64 18, !15, i64 22, !7, i64 26}
!23 = !{!"", !18, i64 0, !18, i64 2, !18, i64 4, !18, i64 6, !18, i64 8, !18, i64 10, !18, i64 12, !7, i64 14, !7, i64 15}
!24 = !{!12, !15, i64 144}
!25 = !{!12, !7, i64 1541}
!26 = !{!27, !18, i64 0}
!27 = !{!"", !18, i64 0}
!28 = !{!12, !7, i64 796}
!29 = !{!12, !15, i64 896}
!30 = !{!12, !15, i64 900}
!31 = !{!32, !6, i64 248}
!32 = !{!"", !33, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!33 = !{!"", !10, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20}


; 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.PXENV_UNDI_CLOSE_T = type { i16 }
%struct.PXENV_UNDI_SHUTDOWN_T = type { i16 }

@gBS = external local_unnamed_addr global ptr, align 8
@.str.29 = external hidden unnamed_addr constant [160 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [21 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

; 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 @Undi16SimpleNetworkShutdown(ptr noundef %0) local_unnamed_addr #1 {
  %2 = alloca %struct.PXENV_UNDI_CLOSE_T, align 2
  %3 = alloca %struct.PXENV_UNDI_SHUTDOWN_T, align 2
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %3) #3
  %4 = icmp eq ptr %0, null
  br i1 %4, label %34, label %5

5:                                                ; preds = %1
  %6 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not = icmp eq i8 %6, 0
  %.pre = ptrtoint ptr %0 to i64
  %.pre25 = add i64 %.pre, -16
  %.pre27 = inttoptr i64 %.pre25 to ptr
  br i1 %.not, label %._crit_edge, label %7

7:                                                ; preds = %5
  %8 = load i64, ptr %.pre27, align 8, !tbaa !5
  %.not22 = icmp eq i64 %8, 909209203
  br i1 %.not22, label %._crit_edge, label %.thread

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

._crit_edge:                                      ; preds = %5, %7
  %9 = icmp eq i64 %.pre25, 0
  br i1 %9, label %34, label %10

10:                                               ; preds = %.thread, %._crit_edge
  %11 = phi ptr [ %0, %.thread ], [ %.pre27, %._crit_edge ]
  %12 = getelementptr inbounds i8, ptr %11, i64 144
  %13 = load i32, ptr %12, align 8, !tbaa !22
  switch i32 %13, label %14 [
    i32 0, label %34
    i32 2, label %15
  ]

14:                                               ; preds = %10
  br label %34

15:                                               ; preds = %10
  %16 = getelementptr inbounds i8, ptr %11, i64 1541
  store i8 0, ptr %16, align 1, !tbaa !23
  store i16 -21555, ptr %2, align 2, !tbaa !24
  %17 = call i64 @PxeUndiClose(ptr noundef nonnull %11, ptr noundef nonnull %2) #3
  %18 = icmp slt i64 %17, 0
  br i1 %18, label %34, label %19

19:                                               ; preds = %15
  %20 = load i16, ptr %2, align 2, !tbaa !24
  %.not23 = icmp eq i16 %20, 0
  br i1 %.not23, label %21, label %34

21:                                               ; preds = %19
  store i16 -21555, ptr %3, align 2, !tbaa !24
  %22 = call i64 @PxeUndiShutdown(ptr noundef nonnull %11, ptr noundef nonnull %3) #3
  %23 = icmp slt i64 %22, 0
  br i1 %23, label %34, label %24

24:                                               ; preds = %21
  %25 = load i16, ptr %3, align 2, !tbaa !24
  %.not24 = icmp eq i16 %25, 0
  br i1 %.not24, label %26, label %34

26:                                               ; preds = %24
  store i32 1, ptr %12, align 8, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %11, i64 796
  store i8 0, ptr %27, align 4, !tbaa !26
  %28 = getelementptr inbounds i8, ptr %11, i64 896
  store i32 0, ptr %28, align 8, !tbaa !27
  %29 = getelementptr inbounds i8, ptr %11, i64 900
  store i32 0, ptr %29, align 4, !tbaa !28
  %30 = load ptr, ptr @gBS, align 8, !tbaa !29
  %31 = getelementptr inbounds i8, ptr %30, i64 248
  %32 = load ptr, ptr %31, align 8, !tbaa !30
  %33 = call i64 %32(i64 noundef 250000) #3
  br label %34

34:                                               ; preds = %24, %21, %19, %15, %10, %._crit_edge, %1, %26, %14
  %.0 = phi i64 [ -9223372036854775801, %14 ], [ %22, %26 ], [ -9223372036854775806, %1 ], [ -9223372036854775801, %._crit_edge ], [ -9223372036854775789, %10 ], [ %17, %15 ], [ -9223372036854775801, %19 ], [ %22, %21 ], [ -9223372036854775801, %24 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %2) #3
  ret i64 %.0
}

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #2

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

declare i64 @PxeUndiClose(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i64 @PxeUndiShutdown(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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, !11, i64 16, !12, i64 144, !15, i64 800, !10, i64 840, !10, i64 848, !10, i64 856, !8, i64 864, !10, i64 872, !10, i64 880, !16, i64 888, !16, i64 890, !17, i64 896, !10, i64 1416, !10, i64 1424, !18, i64 1432, !19, i64 1482, !20, i64 1499, !8, i64 1541, !21, i64 1542, !10, i64 1560, !10, i64 1568, !10, i64 1576, !10, i64 1584, !8, i64 1592, !7, i64 1600, !7, i64 1608, !7, i64 1616, !7, i64 1624, !10, i64 1632, !10, i64 1640, !10, i64 1648, !10, i64 1656}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_EFI_SIMPLE_NETWORK_PROTOCOL", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120}
!12 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !8, i64 40, !14, i64 552, !14, i64 584, !14, i64 616, !8, i64 648, !8, i64 649, !8, i64 650, !8, i64 651, !8, i64 652}
!13 = !{!"int", !8, i64 0}
!14 = !{!"", !8, i64 0}
!15 = !{!"_EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL", !7, i64 0, !7, i64 8, !7, i64 16, !13, i64 24, !8, i64 28, !8, i64 32, !8, i64 33, !8, i64 34, !8, i64 35, !16, i64 36}
!16 = !{!"short", !8, i64 0}
!17 = !{!"", !13, i64 0, !13, i64 4, !8, i64 8}
!18 = !{!"", !16, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !16, i64 8, !16, i64 10, !8, i64 12, !8, i64 28, !16, i64 44, !16, i64 46, !16, i64 48}
!19 = !{!"", !16, i64 0, !8, i64 2, !8, i64 3}
!20 = !{!"", !16, i64 0, !8, i64 2, !13, i64 18, !13, i64 22, !8, i64 26}
!21 = !{!"", !16, i64 0, !16, i64 2, !16, i64 4, !16, i64 6, !16, i64 8, !16, i64 10, !16, i64 12, !8, i64 14, !8, i64 15}
!22 = !{!6, !13, i64 144}
!23 = !{!6, !8, i64 1541}
!24 = !{!25, !16, i64 0}
!25 = !{!"", !16, i64 0}
!26 = !{!6, !8, i64 796}
!27 = !{!6, !13, i64 896}
!28 = !{!6, !13, i64 900}
!29 = !{!10, !10, i64 0}
!30 = !{!31, !10, i64 248}
!31 = !{!"", !32, i64 0, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368}
!32 = !{!"", !7, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass