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

; 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._DHCP_PROTOCOL = type { i32, %struct._EFI_DHCP4_PROTOCOL, %struct._LIST_ENTRY, ptr, ptr, i8, ptr, ptr, ptr, ptr, i32, i16, %struct.NET_BUF_QUEUE }
%struct._EFI_DHCP4_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct.NET_BUF_QUEUE = type { i32, i64, %struct._LIST_ENTRY, %struct._LIST_ENTRY, i32, i32 }
%struct.EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN = type { i64, ptr, %struct.EFI_IPv4_ADDRESS, i16, %struct.EFI_IPv4_ADDRESS, i32, ptr, i32, ptr, i32, ptr }
%struct.EFI_IPv4_ADDRESS = type { [4 x 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 }
%struct._UDP_IO = type { i32, %struct._LIST_ENTRY, i64, i8, ptr, ptr, ptr, %struct.EFI_SIMPLE_NETWORK_MODE, %struct._LIST_ENTRY, ptr, %union.anon, %union.anon.0 }
%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] }
%union.anon = type { ptr }
%union.anon.0 = type { %struct.EFI_UDP6_CONFIG_DATA }
%struct.EFI_UDP6_CONFIG_DATA = type { i8, i8, i8, i8, i8, i32, i32, %struct.EFI_IPv6_ADDRESS, i16, %struct.EFI_IPv6_ADDRESS, i16 }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }
%struct._DHCP_SERVICE = type { i32, %struct._EFI_SERVICE_BINDING_PROTOCOL, i64, ptr, ptr, %struct._LIST_ENTRY, i64, i64, i64, i32, i32, i32, i32, ptr, ptr, ptr, i32, i32, i32, i64, ptr, ptr, ptr, %struct.EFI_MAC_ADDRESS, i8, i8, [16 x i8], ptr, %struct.EFI_DHCP4_CONFIG_DATA, i32, ptr, i32, i32, i64, i64, i32 }
%struct._EFI_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%struct.EFI_DHCP4_CONFIG_DATA = type { i32, ptr, i32, ptr, %struct.EFI_IPv4_ADDRESS, ptr, ptr, i32, ptr }

@gBS = external global ptr, align 8
@gEfiUdp4ProtocolGuid = external global %struct.GUID, align 4

; 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 @AllocatePool(i64 noundef) #1

declare i64 @UdpIoFreeIo(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @PxeDhcpDone(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %4 = load ptr, ptr %2, align 8, !tbaa !5
  %5 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %4, i32 0, i32 8
  %6 = load ptr, ptr %5, align 8, !tbaa !9
  store ptr %6, ptr %3, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %7, i32 0, i32 12
  %9 = getelementptr inbounds %struct.NET_BUF_QUEUE, ptr %8, i32 0, i32 5
  %10 = load i32, ptr %9, align 4, !tbaa !17
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN, ptr %11, i32 0, i32 9
  store i32 %10, ptr %12, align 8, !tbaa !18
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN, ptr %13, i32 0, i32 9
  %15 = load i32, ptr %14, align 8, !tbaa !18
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %17, label %46

17:                                               ; preds = %1
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %18, i32 0, i32 12
  %20 = getelementptr inbounds %struct.NET_BUF_QUEUE, ptr %19, i32 0, i32 4
  %21 = load i32, ptr %20, align 8, !tbaa !21
  %22 = zext i32 %21 to i64
  %23 = call ptr @AllocatePool(i64 noundef %22)
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN, ptr %24, i32 0, i32 10
  store ptr %23, ptr %25, align 8, !tbaa !22
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN, ptr %26, i32 0, i32 10
  %28 = load ptr, ptr %27, align 8, !tbaa !22
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %33

30:                                               ; preds = %17
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN, ptr %31, i32 0, i32 0
  store i64 -9223372036854775799, ptr %32, align 8, !tbaa !23
  br label %52

33:                                               ; preds = %17
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %34, i32 0, i32 12
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %36, i32 0, i32 12
  %38 = getelementptr inbounds %struct.NET_BUF_QUEUE, ptr %37, i32 0, i32 4
  %39 = load i32, ptr %38, align 8, !tbaa !21
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN, ptr %40, i32 0, i32 10
  %42 = load ptr, ptr %41, align 8, !tbaa !22
  %43 = call i32 @NetbufQueCopy(ptr noundef %35, i32 noundef 0, i32 noundef %39, ptr noundef %42)
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN, ptr %44, i32 0, i32 0
  store i64 0, ptr %45, align 8, !tbaa !23
  br label %51

46:                                               ; preds = %1
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN, ptr %47, i32 0, i32 10
  store ptr null, ptr %48, align 8, !tbaa !22
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN, ptr %49, i32 0, i32 0
  store i64 -9223372036854775790, ptr %50, align 8, !tbaa !23
  br label %51

51:                                               ; preds = %46, %33
  br label %52

52:                                               ; preds = %51, %30
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %53, i32 0, i32 12
  call void @NetbufQueFlush(ptr noundef %54)
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %55, i32 0, i32 9
  %57 = load ptr, ptr %56, align 8, !tbaa !24
  call void @UdpIoCleanIo(ptr noundef %57)
  %58 = load ptr, ptr @gBS, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %58, i32 0, i32 34
  %60 = load ptr, ptr %59, align 8, !tbaa !25
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %61, i32 0, i32 9
  %63 = load ptr, ptr %62, align 8, !tbaa !24
  %64 = getelementptr inbounds %struct._UDP_IO, ptr %63, i32 0, i32 6
  %65 = load ptr, ptr %64, align 8, !tbaa !28
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %66, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !31
  %69 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %68, i32 0, i32 4
  %70 = load ptr, ptr %69, align 8, !tbaa !32
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %71, i32 0, i32 3
  %73 = load ptr, ptr %72, align 8, !tbaa !36
  %74 = call i64 %60(ptr noundef %65, ptr noundef @gEfiUdp4ProtocolGuid, ptr noundef %70, ptr noundef %73)
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %75, i32 0, i32 9
  %77 = load ptr, ptr %76, align 8, !tbaa !24
  %78 = call i64 @UdpIoFreeIo(ptr noundef %77)
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %79, i32 0, i32 9
  store ptr null, ptr %80, align 8, !tbaa !24
  %81 = load ptr, ptr %2, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct._DHCP_PROTOCOL, ptr %81, i32 0, i32 8
  store ptr null, ptr %82, align 8, !tbaa !9
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN, ptr %83, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !37
  %86 = icmp ne ptr %85, null
  br i1 %86, label %87, label %95

87:                                               ; preds = %52
  %88 = load ptr, ptr @gBS, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %88, i32 0, i32 11
  %90 = load ptr, ptr %89, align 8, !tbaa !38
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.EFI_DHCP4_TRANSMIT_RECEIVE_TOKEN, ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !37
  %94 = call i64 %90(ptr noundef %93)
  br label %95

95:                                               ; preds = %87, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

declare i32 @NetbufQueCopy(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

declare void @NetbufQueFlush(ptr noundef) #1

declare void @UdpIoCleanIo(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, !6, i64 136}
!10 = !{!"_DHCP_PROTOCOL", !11, i64 0, !12, i64 8, !13, i64 80, !6, i64 96, !6, i64 104, !7, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !11, i64 152, !14, i64 156, !15, i64 160}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_EFI_DHCP4_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, !6, i64 64}
!13 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!14 = !{!"short", !7, i64 0}
!15 = !{!"", !11, i64 0, !16, i64 8, !13, i64 16, !13, i64 32, !11, i64 48, !11, i64 52}
!16 = !{!"long long", !7, i64 0}
!17 = !{!10, !11, i64 212}
!18 = !{!19, !11, i64 56}
!19 = !{!"", !16, i64 0, !6, i64 8, !20, i64 16, !14, i64 20, !20, i64 22, !11, i64 28, !6, i64 32, !11, i64 40, !6, i64 48, !11, i64 56, !6, i64 64}
!20 = !{!"", !7, i64 0}
!21 = !{!10, !11, i64 208}
!22 = !{!19, !6, i64 64}
!23 = !{!19, !16, i64 0}
!24 = !{!10, !6, i64 144}
!25 = !{!26, !6, i64 288}
!26 = !{!"", !27, 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}
!27 = !{!"", !16, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!28 = !{!29, !6, i64 56}
!29 = !{!"_UDP_IO", !11, i64 0, !13, i64 8, !16, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !30, i64 64, !13, i64 720, !6, i64 736, !7, i64 744, !7, i64 752}
!30 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !7, i64 40, !20, i64 552, !20, i64 584, !20, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!31 = !{!10, !6, i64 104}
!32 = !{!33, !6, i64 40}
!33 = !{!"_DHCP_SERVICE", !11, i64 0, !34, i64 8, !16, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !16, i64 64, !16, i64 72, !16, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !6, i64 104, !6, i64 112, !6, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !16, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !20, i64 176, !7, i64 208, !7, i64 209, !7, i64 210, !6, i64 232, !35, i64 240, !11, i64 312, !6, i64 320, !11, i64 328, !11, i64 332, !16, i64 336, !16, i64 344, !11, i64 352}
!34 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!35 = !{!"", !11, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !20, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64}
!36 = !{!10, !6, i64 96}
!37 = !{!19, !6, i64 8}
!38 = !{!26, !6, i64 104}


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

@gBS = external local_unnamed_addr global ptr, align 8
@gEfiUdp4ProtocolGuid = external global %struct.GUID, align 4

declare ptr @AllocatePool(i64 noundef) local_unnamed_addr #0

declare i64 @UdpIoFreeIo(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @PxeDhcpDone(ptr noundef %0) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 136
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %0, i64 160
  %5 = getelementptr inbounds i8, ptr %0, i64 212
  %6 = load i32, ptr %5, align 4, !tbaa !16
  %7 = getelementptr inbounds i8, ptr %3, i64 56
  store i32 %6, ptr %7, align 8, !tbaa !17
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %18, label %8

8:                                                ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 208
  %10 = load i32, ptr %9, align 8, !tbaa !20
  %11 = zext i32 %10 to i64
  %12 = tail call ptr @AllocatePool(i64 noundef %11) #3
  %13 = getelementptr inbounds i8, ptr %3, i64 64
  store ptr %12, ptr %13, align 8, !tbaa !21
  %14 = icmp eq ptr %12, null
  br i1 %14, label %20, label %15

15:                                               ; preds = %8
  %16 = load i32, ptr %9, align 8, !tbaa !20
  %17 = tail call i32 @NetbufQueCopy(ptr noundef nonnull %4, i32 noundef 0, i32 noundef %16, ptr noundef nonnull %12) #3
  br label %20

18:                                               ; preds = %1
  %19 = getelementptr inbounds i8, ptr %3, i64 64
  store ptr null, ptr %19, align 8, !tbaa !21
  br label %20

20:                                               ; preds = %8, %15, %18
  %.sink = phi i64 [ 0, %15 ], [ -9223372036854775790, %18 ], [ -9223372036854775799, %8 ]
  store i64 %.sink, ptr %3, align 8, !tbaa !22
  tail call void @NetbufQueFlush(ptr noundef nonnull %4) #3
  %21 = getelementptr inbounds i8, ptr %0, i64 144
  %22 = load ptr, ptr %21, align 8, !tbaa !23
  tail call void @UdpIoCleanIo(ptr noundef %22) #3
  %23 = load ptr, ptr @gBS, align 8, !tbaa !24
  %24 = getelementptr inbounds i8, ptr %23, i64 288
  %25 = load ptr, ptr %24, align 8, !tbaa !25
  %26 = load ptr, ptr %21, align 8, !tbaa !23
  %27 = getelementptr inbounds i8, ptr %26, i64 56
  %28 = load ptr, ptr %27, align 8, !tbaa !28
  %29 = getelementptr inbounds i8, ptr %0, i64 104
  %30 = load ptr, ptr %29, align 8, !tbaa !31
  %31 = getelementptr inbounds i8, ptr %30, i64 40
  %32 = load ptr, ptr %31, align 8, !tbaa !32
  %33 = getelementptr inbounds i8, ptr %0, i64 96
  %34 = load ptr, ptr %33, align 8, !tbaa !36
  %35 = tail call i64 %25(ptr noundef %28, ptr noundef nonnull @gEfiUdp4ProtocolGuid, ptr noundef %32, ptr noundef %34) #3
  %36 = load ptr, ptr %21, align 8, !tbaa !23
  %37 = tail call i64 @UdpIoFreeIo(ptr noundef %36) #3
  %38 = getelementptr inbounds i8, ptr %3, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %2, i8 0, i64 16, i1 false)
  %39 = load ptr, ptr %38, align 8, !tbaa !37
  %.not25 = icmp eq ptr %39, null
  br i1 %.not25, label %45, label %40

40:                                               ; preds = %20
  %41 = load ptr, ptr @gBS, align 8, !tbaa !24
  %42 = getelementptr inbounds i8, ptr %41, i64 104
  %43 = load ptr, ptr %42, align 8, !tbaa !38
  %44 = tail call i64 %43(ptr noundef nonnull %39) #3
  br label %45

45:                                               ; preds = %40, %20
  ret void
}

declare i32 @NetbufQueCopy(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

declare void @NetbufQueFlush(ptr noundef) local_unnamed_addr #0

declare void @UdpIoCleanIo(ptr noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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, !11, i64 136}
!6 = !{!"_DHCP_PROTOCOL", !7, i64 0, !10, i64 8, !12, i64 80, !11, i64 96, !11, i64 104, !8, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !7, i64 152, !13, i64 156, !14, i64 160}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_EFI_DHCP4_PROTOCOL", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_LIST_ENTRY", !11, i64 0, !11, i64 8}
!13 = !{!"short", !8, i64 0}
!14 = !{!"", !7, i64 0, !15, i64 8, !12, i64 16, !12, i64 32, !7, i64 48, !7, i64 52}
!15 = !{!"long long", !8, i64 0}
!16 = !{!6, !7, i64 212}
!17 = !{!18, !7, i64 56}
!18 = !{!"", !15, i64 0, !11, i64 8, !19, i64 16, !13, i64 20, !19, i64 22, !7, i64 28, !11, i64 32, !7, i64 40, !11, i64 48, !7, i64 56, !11, i64 64}
!19 = !{!"", !8, i64 0}
!20 = !{!6, !7, i64 208}
!21 = !{!18, !11, i64 64}
!22 = !{!18, !15, i64 0}
!23 = !{!6, !11, i64 144}
!24 = !{!11, !11, i64 0}
!25 = !{!26, !11, i64 288}
!26 = !{!"", !27, i64 0, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368}
!27 = !{!"", !15, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!28 = !{!29, !11, i64 56}
!29 = !{!"_UDP_IO", !7, i64 0, !12, i64 8, !15, i64 24, !8, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !30, i64 64, !12, i64 720, !11, i64 736, !8, i64 744, !8, i64 752}
!30 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !8, i64 40, !19, i64 552, !19, i64 584, !19, i64 616, !8, i64 648, !8, i64 649, !8, i64 650, !8, i64 651, !8, i64 652}
!31 = !{!6, !11, i64 104}
!32 = !{!33, !11, i64 40}
!33 = !{!"_DHCP_SERVICE", !7, i64 0, !34, i64 8, !15, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !15, i64 64, !15, i64 72, !15, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !11, i64 104, !11, i64 112, !11, i64 120, !7, i64 128, !7, i64 132, !7, i64 136, !15, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !19, i64 176, !8, i64 208, !8, i64 209, !8, i64 210, !11, i64 232, !35, i64 240, !7, i64 312, !11, i64 320, !7, i64 328, !7, i64 332, !15, i64 336, !15, i64 344, !7, i64 352}
!34 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !11, i64 0, !11, i64 8}
!35 = !{!"", !7, i64 0, !11, i64 8, !7, i64 16, !11, i64 24, !19, i64 32, !11, i64 40, !11, i64 48, !7, i64 56, !11, i64 64}
!36 = !{!6, !11, i64 96}
!37 = !{!18, !11, i64 8}
!38 = !{!26, !11, i64 104}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass