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

; 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.GUID = type { i32, i16, i16, [8 x i8] }
%struct.TCP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT = type { ptr, i64, ptr }
%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 }
%struct._EFI_DRIVER_BINDING_PROTOCOL = type { ptr, ptr, ptr, i32, ptr, ptr }
%struct._TCP4_SERVICE_DATA = type { i32, ptr, ptr, %struct._EFI_SERVICE_BINDING_PROTOCOL, ptr, %struct._LIST_ENTRY }
%struct._EFI_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%struct._LIST_ENTRY = type { ptr, ptr }

@gBS = external global ptr, align 8
@.str = external hidden unnamed_addr constant [153 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@gEfiTcp4ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gEfiIp4ProtocolGuid = external global %struct.GUID, align 4
@.str.9 = external hidden unnamed_addr constant [77 x i8], align 1
@gTcpControllerNameTable = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i64 @Tcp4DriverBindingStop(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.TCP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT, align 8
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #3
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = call ptr @NetLibGetNicHandle(ptr noundef %17, ptr noundef @gEfiIp4ProtocolGuid)
  store ptr %18, ptr %11, align 8, !tbaa !5
  %19 = load ptr, ptr %11, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %22

21:                                               ; preds = %4
  store i64 0, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %112

22:                                               ; preds = %4
  %23 = load ptr, ptr @gBS, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %23, i32 0, i32 33
  %25 = load ptr, ptr %24, align 8, !tbaa !11
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %27, i32 0, i32 5
  %29 = load ptr, ptr %28, align 8, !tbaa !15
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = call i64 %25(ptr noundef %26, ptr noundef @gEfiTcp4ServiceBindingProtocolGuid, ptr noundef %12, ptr noundef %29, ptr noundef %30, i32 noundef 2)
  store i64 %31, ptr %10, align 8, !tbaa !9
  %32 = load i64, ptr %10, align 8, !tbaa !9
  %33 = icmp slt i64 %32, 0
  br i1 %33, label %34, label %50

34:                                               ; preds = %22
  br label %35

35:                                               ; preds = %34
  %36 = call zeroext i8 @DebugPrintEnabled()
  %37 = icmp ne i8 %36, 0
  br i1 %37, label %38, label %47

38:                                               ; preds = %35
  br label %39

39:                                               ; preds = %38
  %40 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648)
  %41 = icmp ne i8 %40, 0
  br i1 %41, label %42, label %44

42:                                               ; preds = %39
  %43 = load i64, ptr %10, align 8, !tbaa !9
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef @.str.9, i64 noundef %43)
  br label %44

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

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  br label %47

47:                                               ; preds = %46, %35
  br label %48

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48
  store i64 -9223372036854775801, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %112

50:                                               ; preds = %22
  %51 = call zeroext i8 @DebugAssertEnabled()
  %52 = zext i8 %51 to i32
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %64

54:                                               ; preds = %50
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = ptrtoint ptr %55 to i64
  %57 = sub i64 %56, ptrtoint (ptr getelementptr inbounds (%struct._TCP4_SERVICE_DATA, ptr null, i32 0, i32 3) to i64)
  %58 = inttoptr i64 %57 to ptr
  %59 = getelementptr inbounds %struct._TCP4_SERVICE_DATA, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !17
  %61 = icmp ne i32 %60, 877675348
  br i1 %61, label %62, label %64

62:                                               ; preds = %54
  call void @DebugAssert(ptr noundef @.str, i64 noundef 505, ptr noundef @.str.2)
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  br label %69

64:                                               ; preds = %54, %50
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = ptrtoint ptr %65 to i64
  %67 = sub i64 %66, ptrtoint (ptr getelementptr inbounds (%struct._TCP4_SERVICE_DATA, ptr null, i32 0, i32 3) to i64)
  %68 = inttoptr i64 %67 to ptr
  br label %69

69:                                               ; preds = %64, %62
  %70 = phi ptr [ %63, %62 ], [ %68, %64 ]
  store ptr %70, ptr %13, align 8, !tbaa !5
  %71 = load i64, ptr %8, align 8, !tbaa !9
  %72 = icmp ne i64 %71, 0
  br i1 %72, label %73, label %84

73:                                               ; preds = %69
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct._TCP4_SERVICE_DATA, ptr %74, i32 0, i32 5
  store ptr %75, ptr %14, align 8, !tbaa !5
  %76 = load ptr, ptr %12, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.TCP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT, ptr %15, i32 0, i32 0
  store ptr %76, ptr %77, align 8, !tbaa !21
  %78 = load i64, ptr %8, align 8, !tbaa !9
  %79 = getelementptr inbounds %struct.TCP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT, ptr %15, i32 0, i32 1
  store i64 %78, ptr %79, align 8, !tbaa !23
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.TCP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT, ptr %15, i32 0, i32 2
  store ptr %80, ptr %81, align 8, !tbaa !24
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = call i64 @NetDestroyLinkList(ptr noundef %82, ptr noundef @Tcp4DestroyChildEntryInHandleBuffer, ptr noundef %15, ptr noundef null)
  store i64 %83, ptr %10, align 8, !tbaa !9
  br label %110

84:                                               ; preds = %69
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._TCP4_SERVICE_DATA, ptr %85, i32 0, i32 5
  %87 = call zeroext i8 @IsListEmpty(ptr noundef %86)
  %88 = icmp ne i8 %87, 0
  br i1 %88, label %89, label %109

89:                                               ; preds = %84
  %90 = load ptr, ptr @gBS, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %90, i32 0, i32 40
  %92 = load ptr, ptr %91, align 8, !tbaa !25
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = call i64 (ptr, ...) %92(ptr noundef %93, ptr noundef @gEfiTcp4ServiceBindingProtocolGuid, ptr noundef %94, ptr noundef null)
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct._TCP4_SERVICE_DATA, ptr %96, i32 0, i32 2
  %98 = load ptr, ptr %97, align 8, !tbaa !26
  %99 = call i64 @IpIoDestroy(ptr noundef %98)
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct._TCP4_SERVICE_DATA, ptr %100, i32 0, i32 2
  store ptr null, ptr %101, align 8, !tbaa !26
  call void @Tcp4DestroyTimer()
  %102 = load ptr, ptr @gTcpControllerNameTable, align 8, !tbaa !5
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %107

104:                                              ; preds = %89
  %105 = load ptr, ptr @gTcpControllerNameTable, align 8, !tbaa !5
  %106 = call i64 @FreeUnicodeStringTable(ptr noundef %105)
  store ptr null, ptr @gTcpControllerNameTable, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %104, %89
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  call void @FreePool(ptr noundef %108)
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %109

109:                                              ; preds = %107, %84
  br label %110

110:                                              ; preds = %109, %73
  %111 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %111, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %112

112:                                              ; preds = %110, %49, %21
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %113 = load i64, ptr %5, align 8
  ret i64 %113
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @Tcp4DestroyTimer() #0

declare zeroext i8 @DebugAssertEnabled() #2

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @Tcp4DestroyChildEntryInHandleBuffer(ptr noundef, ptr noundef) #0

declare zeroext i8 @DebugPrintEnabled() #2

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #2

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

declare i64 @IpIoDestroy(ptr noundef) #2

declare void @FreePool(ptr noundef) #2

declare ptr @NetLibGetNicHandle(ptr noundef, ptr noundef) #2

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

declare zeroext i8 @IsListEmpty(ptr noundef) #2

declare i64 @FreeUnicodeStringTable(ptr noundef) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 280}
!12 = !{!"", !13, 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}
!13 = !{!"", !10, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 40}
!16 = !{!"_EFI_DRIVER_BINDING_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !6, i64 32, !6, i64 40}
!17 = !{!18, !14, i64 0}
!18 = !{!"_TCP4_SERVICE_DATA", !14, i64 0, !6, i64 8, !6, i64 16, !19, i64 24, !6, i64 40, !20, i64 48}
!19 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!20 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!21 = !{!22, !6, i64 0}
!22 = !{!"", !6, i64 0, !10, i64 8, !6, i64 16}
!23 = !{!22, !10, i64 8}
!24 = !{!22, !6, i64 16}
!25 = !{!12, !6, i64 336}
!26 = !{!18, !6, i64 16}


; 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.GUID = type { i32, i16, i16, [8 x i8] }
%struct.TCP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT = type { ptr, i64, ptr }

@gBS = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [153 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@gEfiTcp4ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gEfiIp4ProtocolGuid = external global %struct.GUID, align 4
@.str.9 = external hidden unnamed_addr constant [77 x i8], align 1
@gTcpControllerNameTable = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i64 @Tcp4DriverBindingStop(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = alloca ptr, align 8
  %6 = alloca %struct.TCP4_DESTROY_CHILD_IN_HANDLE_BUF_CONTEXT, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #3
  %7 = tail call ptr @NetLibGetNicHandle(ptr noundef %1, ptr noundef nonnull @gEfiIp4ProtocolGuid) #3
  %8 = icmp eq ptr %7, null
  br i1 %8, label %50, label %9

9:                                                ; preds = %4
  %10 = load ptr, ptr @gBS, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 280
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = load ptr, ptr %13, align 8, !tbaa !14
  %15 = call i64 %12(ptr noundef nonnull %7, ptr noundef nonnull @gEfiTcp4ServiceBindingProtocolGuid, ptr noundef nonnull %5, ptr noundef %14, ptr noundef %1, i32 noundef 2) #3
  %16 = icmp slt i64 %15, 0
  br i1 %16, label %17, label %22

17:                                               ; preds = %9
  %18 = call zeroext i8 @DebugPrintEnabled() #3
  %.not27 = icmp eq i8 %18, 0
  br i1 %.not27, label %50, label %19

19:                                               ; preds = %17
  %20 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648) #3
  %.not28 = icmp eq i8 %20, 0
  br i1 %.not28, label %50, label %21

21:                                               ; preds = %19
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef nonnull @.str.9, i64 noundef %15) #3
  br label %50

22:                                               ; preds = %9
  %23 = call zeroext i8 @DebugAssertEnabled() #3
  %.not = icmp eq i8 %23, 0
  %.pre = load ptr, ptr %5, align 8, !tbaa !5
  %.pre29 = ptrtoint ptr %.pre to i64
  %.pre30 = add i64 %.pre29, -24
  %.pre32 = inttoptr i64 %.pre30 to ptr
  br i1 %.not, label %._crit_edge, label %24

24:                                               ; preds = %22
  %25 = load i32, ptr %.pre32, align 8, !tbaa !16
  %.not23 = icmp eq i32 %25, 877675348
  br i1 %.not23, label %._crit_edge, label %26

26:                                               ; preds = %24
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 505, ptr noundef nonnull @.str.2) #3
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %22, %24, %26
  %28 = phi ptr [ %27, %26 ], [ %.pre, %24 ], [ %.pre, %22 ]
  %29 = phi ptr [ %27, %26 ], [ %.pre32, %24 ], [ %.pre32, %22 ]
  %.not24 = icmp eq i64 %2, 0
  %30 = getelementptr inbounds i8, ptr %29, i64 48
  br i1 %.not24, label %35, label %31

31:                                               ; preds = %._crit_edge
  store ptr %28, ptr %6, align 8, !tbaa !20
  %32 = getelementptr inbounds i8, ptr %6, i64 8
  store i64 %2, ptr %32, align 8, !tbaa !22
  %33 = getelementptr inbounds i8, ptr %6, i64 16
  store ptr %3, ptr %33, align 8, !tbaa !23
  %34 = call i64 @NetDestroyLinkList(ptr noundef nonnull %30, ptr noundef nonnull @Tcp4DestroyChildEntryInHandleBuffer, ptr noundef nonnull %6, ptr noundef null) #3
  br label %50

35:                                               ; preds = %._crit_edge
  %36 = call zeroext i8 @IsListEmpty(ptr noundef nonnull %30) #3
  %.not25 = icmp eq i8 %36, 0
  br i1 %.not25, label %50, label %37

37:                                               ; preds = %35
  %38 = load ptr, ptr @gBS, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 336
  %40 = load ptr, ptr %39, align 8, !tbaa !24
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = call i64 (ptr, ...) %40(ptr noundef nonnull %7, ptr noundef nonnull @gEfiTcp4ServiceBindingProtocolGuid, ptr noundef %41, ptr noundef null) #3
  %43 = getelementptr inbounds i8, ptr %29, i64 16
  %44 = load ptr, ptr %43, align 8, !tbaa !25
  %45 = call i64 @IpIoDestroy(ptr noundef %44) #3
  store ptr null, ptr %43, align 8, !tbaa !25
  call void @Tcp4DestroyTimer()
  %46 = load ptr, ptr @gTcpControllerNameTable, align 8, !tbaa !5
  %.not26 = icmp eq ptr %46, null
  br i1 %.not26, label %49, label %47

47:                                               ; preds = %37
  %48 = call i64 @FreeUnicodeStringTable(ptr noundef nonnull %46) #3
  store ptr null, ptr @gTcpControllerNameTable, align 8, !tbaa !5
  br label %49

49:                                               ; preds = %47, %37
  call void @FreePool(ptr noundef nonnull %29) #3
  br label %50

50:                                               ; preds = %31, %49, %35, %17, %21, %19, %4
  %.0 = phi i64 [ 0, %4 ], [ -9223372036854775801, %19 ], [ -9223372036854775801, %21 ], [ -9223372036854775801, %17 ], [ %34, %31 ], [ 0, %49 ], [ %15, %35 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret i64 %.0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
declare dso_local void @Tcp4DestroyTimer() local_unnamed_addr #0

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @Tcp4DestroyChildEntryInHandleBuffer(ptr noundef, ptr noundef) #0

declare zeroext i8 @DebugPrintEnabled() local_unnamed_addr #2

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

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

declare i64 @IpIoDestroy(ptr noundef) local_unnamed_addr #2

declare void @FreePool(ptr noundef) local_unnamed_addr #2

declare ptr @NetLibGetNicHandle(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare zeroext i8 @IsListEmpty(ptr noundef) local_unnamed_addr #2

declare i64 @FreeUnicodeStringTable(ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 280}
!10 = !{!"", !11, 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}
!11 = !{!"", !12, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 40}
!15 = !{!"_EFI_DRIVER_BINDING_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !6, i64 32, !6, i64 40}
!16 = !{!17, !13, i64 0}
!17 = !{!"_TCP4_SERVICE_DATA", !13, i64 0, !6, i64 8, !6, i64 16, !18, i64 24, !6, i64 40, !19, i64 48}
!18 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!19 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!20 = !{!21, !6, i64 0}
!21 = !{!"", !6, i64 0, !12, i64 8, !6, i64 16}
!22 = !{!21, !12, i64 8}
!23 = !{!21, !6, i64 16}
!24 = !{!10, !6, i64 336}
!25 = !{!17, !6, i64 16}


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