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

; 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_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 }

@.str.29 = external hidden unnamed_addr constant [160 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [35 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

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

declare zeroext i8 @DebugPrintEnabled() #1

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #1

declare void @DebugPrint(i64 noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @Undi16SimpleNetworkGetNdisInfo(ptr noundef %0) #2 {
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = 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
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = icmp eq ptr %7, null
  br i1 %8, label %9, label %10

9:                                                ; preds = %1
  store i64 -9223372036854775806, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %132

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

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

22:                                               ; preds = %14
  call void @DebugAssert(ptr noundef @.str.29, i64 noundef 1648, ptr noundef @.str.30)
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  br label %29

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

29:                                               ; preds = %24, %22
  %30 = phi ptr [ %23, %22 ], [ %28, %24 ]
  store ptr %30, ptr %5, align 8, !tbaa !5
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %34

33:                                               ; preds = %29
  store i64 -9223372036854775801, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %132

34:                                               ; preds = %29
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %35, i32 0, i32 18
  %37 = call ptr @ZeroMem(ptr noundef %36, i64 noundef 42)
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %38, i32 0, i32 18
  %40 = getelementptr inbounds %struct.PXENV_UNDI_GET_NDIS_INFO_T, ptr %39, i32 0, i32 0
  store i16 -21555, ptr %40, align 1, !tbaa !24
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %42, i32 0, i32 18
  %44 = call i64 @PxeUndiGetNdisInfo(ptr noundef %41, ptr noundef %43)
  store i64 %44, ptr %4, align 8, !tbaa !9
  %45 = load i64, ptr %4, align 8, !tbaa !9
  %46 = icmp slt i64 %45, 0
  br i1 %46, label %47, label %49

47:                                               ; preds = %34
  %48 = load i64, ptr %4, align 8, !tbaa !9
  store i64 %48, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %132

49:                                               ; preds = %34
  br label %50

50:                                               ; preds = %49
  %51 = call zeroext i8 @DebugPrintEnabled()
  %52 = icmp ne i8 %51, 0
  br i1 %52, label %53, label %66

53:                                               ; preds = %50
  br label %54

54:                                               ; preds = %53
  %55 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384)
  %56 = icmp ne i8 %55, 0
  br i1 %56, label %57, label %63

57:                                               ; preds = %54
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %58, i32 0, i32 18
  %60 = getelementptr inbounds %struct.PXENV_UNDI_GET_NDIS_INFO_T, ptr %59, i32 0, i32 0
  %61 = load i16, ptr %60, align 1, !tbaa !24
  %62 = zext i16 %61 to i32
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef @.str.47, i32 noundef %62)
  br label %63

63:                                               ; preds = %57, %54
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  br label %66

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

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  br label %69

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

72:                                               ; preds = %69
  br label %73

73:                                               ; preds = %72
  %74 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384)
  %75 = icmp ne i8 %74, 0
  br i1 %75, label %76, label %81

76:                                               ; preds = %73
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %77, i32 0, i32 18
  %79 = getelementptr inbounds %struct.PXENV_UNDI_GET_NDIS_INFO_T, ptr %78, i32 0, i32 1
  %80 = getelementptr inbounds [16 x i8], ptr %79, i64 0, i64 0
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef @.str.48, ptr noundef %80)
  br label %81

81:                                               ; preds = %76, %73
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83, %69
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  %88 = call zeroext i8 @DebugPrintEnabled()
  %89 = icmp ne i8 %88, 0
  br i1 %89, label %90, label %102

90:                                               ; preds = %87
  br label %91

91:                                               ; preds = %90
  %92 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384)
  %93 = icmp ne i8 %92, 0
  br i1 %93, label %94, label %99

94:                                               ; preds = %91
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %95, i32 0, i32 18
  %97 = getelementptr inbounds %struct.PXENV_UNDI_GET_NDIS_INFO_T, ptr %96, i32 0, i32 2
  %98 = load i32, ptr %97, align 1, !tbaa !25
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef @.str.49, i32 noundef %98)
  br label %99

99:                                               ; preds = %94, %91
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101, %87
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = call zeroext i8 @DebugPrintEnabled()
  %107 = icmp ne i8 %106, 0
  br i1 %107, label %108, label %120

108:                                              ; preds = %105
  br label %109

109:                                              ; preds = %108
  %110 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384)
  %111 = icmp ne i8 %110, 0
  br i1 %111, label %112, label %117

112:                                              ; preds = %109
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %113, i32 0, i32 18
  %115 = getelementptr inbounds %struct.PXENV_UNDI_GET_NDIS_INFO_T, ptr %114, i32 0, i32 3
  %116 = load i32, ptr %115, align 1, !tbaa !26
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef @.str.50, i32 noundef %116)
  br label %117

117:                                              ; preds = %112, %109
  br label %118

118:                                              ; preds = %117
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119, %105
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_DEV, ptr %123, i32 0, i32 18
  %125 = getelementptr inbounds %struct.PXENV_UNDI_GET_NDIS_INFO_T, ptr %124, i32 0, i32 0
  %126 = load i16, ptr %125, align 1, !tbaa !24
  %127 = zext i16 %126 to i32
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %122
  store i64 -9223372036854775801, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %132

130:                                              ; preds = %122
  %131 = load i64, ptr %4, align 8, !tbaa !9
  store i64 %131, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %132

132:                                              ; preds = %130, %129, %47, %33, %9
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %133 = load i64, ptr %2, align 8
  ret i64 %133
}

declare zeroext i8 @DebugAssertEnabled() #1

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

declare i64 @PxeUndiGetNdisInfo(ptr noundef, ptr 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, !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, !18, i64 1499}
!25 = !{!12, !15, i64 1517}
!26 = !{!12, !15, i64 1521}


; 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"

@.str.29 = external hidden unnamed_addr constant [160 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [35 x i8], align 1

declare ptr @ZeroMem(ptr noundef, i64 noundef) local_unnamed_addr #0

declare zeroext i8 @DebugPrintEnabled() local_unnamed_addr #0

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) local_unnamed_addr #0

declare void @DebugPrint(i64 noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i64 @Undi16SimpleNetworkGetNdisInfo(ptr noundef %0) local_unnamed_addr #1 {
  %2 = icmp eq ptr %0, null
  br i1 %2, label %43, label %3

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

5:                                                ; preds = %3
  %6 = load i64, ptr %.pre32, align 8, !tbaa !5
  %.not20 = icmp eq i64 %6, 909209203
  br i1 %.not20, label %._crit_edge, label %.thread

.thread:                                          ; preds = %5
  tail call void @DebugAssert(ptr noundef nonnull @.str.29, i64 noundef 1648, ptr noundef nonnull @.str.30) #2
  br label %8

._crit_edge:                                      ; preds = %3, %5
  %7 = icmp eq i64 %.pre30, 0
  br i1 %7, label %43, label %8

8:                                                ; preds = %.thread, %._crit_edge
  %9 = phi ptr [ %0, %.thread ], [ %.pre32, %._crit_edge ]
  %10 = getelementptr inbounds i8, ptr %9, i64 1499
  %11 = tail call ptr @ZeroMem(ptr noundef nonnull %10, i64 noundef 42) #2
  store i16 -21555, ptr %10, align 1, !tbaa !22
  %12 = tail call i64 @PxeUndiGetNdisInfo(ptr noundef nonnull %9, ptr noundef nonnull %10) #2
  %13 = icmp slt i64 %12, 0
  br i1 %13, label %43, label %14

14:                                               ; preds = %8
  %15 = tail call zeroext i8 @DebugPrintEnabled() #2
  %.not21 = icmp eq i8 %15, 0
  br i1 %.not21, label %21, label %16

16:                                               ; preds = %14
  %17 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384) #2
  %.not22 = icmp eq i8 %17, 0
  br i1 %.not22, label %21, label %18

18:                                               ; preds = %16
  %19 = load i16, ptr %10, align 1, !tbaa !22
  %20 = zext i16 %19 to i32
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef nonnull @.str.47, i32 noundef %20) #2
  br label %21

21:                                               ; preds = %14, %18, %16
  %22 = tail call zeroext i8 @DebugPrintEnabled() #2
  %.not23 = icmp eq i8 %22, 0
  br i1 %.not23, label %27, label %23

23:                                               ; preds = %21
  %24 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384) #2
  %.not24 = icmp eq i8 %24, 0
  br i1 %.not24, label %27, label %25

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %9, i64 1501
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef nonnull @.str.48, ptr noundef nonnull %26) #2
  br label %27

27:                                               ; preds = %21, %25, %23
  %28 = tail call zeroext i8 @DebugPrintEnabled() #2
  %.not25 = icmp eq i8 %28, 0
  br i1 %.not25, label %34, label %29

29:                                               ; preds = %27
  %30 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384) #2
  %.not26 = icmp eq i8 %30, 0
  br i1 %.not26, label %34, label %31

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %9, i64 1517
  %33 = load i32, ptr %32, align 1, !tbaa !23
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef nonnull @.str.49, i32 noundef %33) #2
  br label %34

34:                                               ; preds = %27, %31, %29
  %35 = tail call zeroext i8 @DebugPrintEnabled() #2
  %.not27 = icmp eq i8 %35, 0
  br i1 %.not27, label %41, label %36

36:                                               ; preds = %34
  %37 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384) #2
  %.not28 = icmp eq i8 %37, 0
  br i1 %.not28, label %41, label %38

38:                                               ; preds = %36
  %39 = getelementptr inbounds i8, ptr %9, i64 1521
  %40 = load i32, ptr %39, align 1, !tbaa !24
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef nonnull @.str.50, i32 noundef %40) #2
  br label %41

41:                                               ; preds = %36, %38, %34
  %42 = load i16, ptr %10, align 1, !tbaa !22
  %.not29 = icmp eq i16 %42, 0
  %. = select i1 %.not29, i64 %12, i64 -9223372036854775801
  br label %43

43:                                               ; preds = %41, %8, %._crit_edge, %1
  %.0 = phi i64 [ -9223372036854775806, %1 ], [ -9223372036854775801, %._crit_edge ], [ %12, %8 ], [ %., %41 ]
  ret i64 %.0
}

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #0

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

declare i64 @PxeUndiGetNdisInfo(ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #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 #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 = { 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, !16, i64 1499}
!23 = !{!6, !13, i64 1517}
!24 = !{!6, !13, i64 1521}


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