; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/NetworkPkg/Udp6Dxe (Udp6CreateService)

; 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_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%struct.EFI_IP6_CONFIG_DATA = type { i8, i8, i8, i8, %struct.EFI_IPv6_ADDRESS, %struct.EFI_IPv6_ADDRESS, i8, i8, i32, i32, i32 }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }
%struct._IP_IO_OPEN_DATA = type { %union.IP_IO_IP_CONFIG_DATA, ptr, ptr, ptr, ptr }
%union.IP_IO_IP_CONFIG_DATA = type { %struct.EFI_IP6_CONFIG_DATA }
%struct._UDP6_SERVICE_DATA = type { i32, %struct._EFI_SERVICE_BINDING_PROTOCOL, ptr, ptr, %struct._LIST_ENTRY, i64, ptr, ptr }
%struct._LIST_ENTRY = type { ptr, 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 }

@mUdp6ServiceBinding = external global %struct._EFI_SERVICE_BINDING_PROTOCOL, align 8
@mIp6IoDefaultIpConfigData = external global %struct.EFI_IP6_CONFIG_DATA, align 4
@gBS = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i64 @Udp6CreateService(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca %struct._IP_IO_OPEN_DATA, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 88, ptr %9) #4
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = call ptr @ZeroMem(ptr noundef %11, i64 noundef 80)
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %13, i32 0, i32 0
  store i32 913335381, ptr %14, align 8, !tbaa !9
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %15, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 @mUdp6ServiceBinding, i64 16, i1 false), !tbaa.struct !15
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %18, i32 0, i32 2
  store ptr %17, ptr %19, align 8, !tbaa !16
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %21, i32 0, i32 3
  store ptr %20, ptr %22, align 8, !tbaa !17
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %23, i32 0, i32 5
  store i64 0, ptr %24, align 8, !tbaa !18
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %25, i32 0, i32 4
  %27 = call ptr @InitializeListHead(ptr noundef %26)
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = call ptr @IpIoCreate(ptr noundef %28, ptr noundef %29, i8 noundef zeroext 6)
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %31, i32 0, i32 6
  store ptr %30, ptr %32, align 8, !tbaa !19
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %33, i32 0, i32 6
  %35 = load ptr, ptr %34, align 8, !tbaa !19
  %36 = icmp eq ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %3
  store i64 -9223372036854775799, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %97

38:                                               ; preds = %3
  %39 = getelementptr inbounds %struct._IP_IO_OPEN_DATA, ptr %9, i32 0, i32 0
  %40 = call ptr @CopyMem(ptr noundef %39, ptr noundef @mIp6IoDefaultIpConfigData, i64 noundef 52)
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct._IP_IO_OPEN_DATA, ptr %9, i32 0, i32 1
  store ptr %41, ptr %42, align 8, !tbaa !20
  %43 = getelementptr inbounds %struct._IP_IO_OPEN_DATA, ptr %9, i32 0, i32 2
  store ptr null, ptr %43, align 8, !tbaa !22
  %44 = getelementptr inbounds %struct._IP_IO_OPEN_DATA, ptr %9, i32 0, i32 3
  store ptr @Udp6DgramRcvd, ptr %44, align 8, !tbaa !23
  %45 = getelementptr inbounds %struct._IP_IO_OPEN_DATA, ptr %9, i32 0, i32 4
  store ptr @Udp6DgramSent, ptr %45, align 8, !tbaa !24
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %46, i32 0, i32 6
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  %49 = call i64 @IpIoOpen(ptr noundef %48, ptr noundef %9)
  store i64 %49, ptr %8, align 8, !tbaa !25
  %50 = load i64, ptr %8, align 8, !tbaa !25
  %51 = icmp slt i64 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %38
  br label %76

53:                                               ; preds = %38
  %54 = load ptr, ptr @gBS, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %54, i32 0, i32 8
  %56 = load ptr, ptr %55, align 8, !tbaa !26
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %58, i32 0, i32 7
  %60 = call i64 %56(i32 noundef -2147483136, i64 noundef 8, ptr noundef @Udp6CheckTimeout, ptr noundef %57, ptr noundef %59)
  store i64 %60, ptr %8, align 8, !tbaa !25
  %61 = load i64, ptr %8, align 8, !tbaa !25
  %62 = icmp slt i64 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %53
  br label %76

64:                                               ; preds = %53
  %65 = load ptr, ptr @gBS, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %65, i32 0, i32 9
  %67 = load ptr, ptr %66, align 8, !tbaa !29
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %68, i32 0, i32 7
  %70 = load ptr, ptr %69, align 8, !tbaa !30
  %71 = call i64 %67(ptr noundef %70, i32 noundef 1, i64 noundef 500000)
  store i64 %71, ptr %8, align 8, !tbaa !25
  %72 = load i64, ptr %8, align 8, !tbaa !25
  %73 = icmp slt i64 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %64
  br label %76

75:                                               ; preds = %64
  store i64 0, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %97

76:                                               ; preds = %74, %63, %52
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %77, i32 0, i32 7
  %79 = load ptr, ptr %78, align 8, !tbaa !30
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %89

81:                                               ; preds = %76
  %82 = load ptr, ptr @gBS, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %82, i32 0, i32 12
  %84 = load ptr, ptr %83, align 8, !tbaa !31
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %85, i32 0, i32 7
  %87 = load ptr, ptr %86, align 8, !tbaa !30
  %88 = call i64 %84(ptr noundef %87)
  br label %89

89:                                               ; preds = %81, %76
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %90, i32 0, i32 6
  %92 = load ptr, ptr %91, align 8, !tbaa !19
  %93 = call i64 @IpIoDestroy(ptr noundef %92)
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct._UDP6_SERVICE_DATA, ptr %94, i32 0, i32 6
  store ptr null, ptr %95, align 8, !tbaa !19
  %96 = load i64, ptr %8, align 8, !tbaa !25
  store i64 %96, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %97

97:                                               ; preds = %89, %75, %37
  call void @llvm.lifetime.end.p0(i64 88, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %98 = load i64, ptr %4, align 8
  ret i64 %98
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @InitializeListHead(ptr noundef) #2

declare ptr @IpIoCreate(ptr noundef, ptr noundef, i8 noundef zeroext) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @Udp6DgramRcvd(i64 noundef, i8 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) #0

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

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

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

declare i64 @IpIoDestroy(ptr noundef) #2

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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, !11, i64 0}
!10 = !{!"_UDP6_SERVICE_DATA", !11, i64 0, !12, i64 8, !6, i64 24, !6, i64 32, !13, i64 40, !14, i64 56, !6, i64 64, !6, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!13 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!14 = !{!"long long", !7, i64 0}
!15 = !{i64 0, i64 8, !5, i64 8, i64 8, !5}
!16 = !{!10, !6, i64 24}
!17 = !{!10, !6, i64 32}
!18 = !{!10, !14, i64 56}
!19 = !{!10, !6, i64 64}
!20 = !{!21, !6, i64 56}
!21 = !{!"_IP_IO_OPEN_DATA", !7, i64 0, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!22 = !{!21, !6, i64 64}
!23 = !{!21, !6, i64 72}
!24 = !{!21, !6, i64 80}
!25 = !{!14, !14, i64 0}
!26 = !{!27, !6, i64 80}
!27 = !{!"", !28, 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}
!28 = !{!"", !14, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!29 = !{!27, !6, i64 88}
!30 = !{!10, !6, i64 72}
!31 = !{!27, !6, i64 112}


; 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_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%struct.EFI_IP6_CONFIG_DATA = type { i8, i8, i8, i8, %struct.EFI_IPv6_ADDRESS, %struct.EFI_IPv6_ADDRESS, i8, i8, i32, i32, i32 }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }
%struct._IP_IO_OPEN_DATA = type { %union.IP_IO_IP_CONFIG_DATA, ptr, ptr, ptr, ptr }
%union.IP_IO_IP_CONFIG_DATA = type { %struct.EFI_IP6_CONFIG_DATA }

@mUdp6ServiceBinding = external local_unnamed_addr global %struct._EFI_SERVICE_BINDING_PROTOCOL, align 8
@mIp6IoDefaultIpConfigData = external global %struct.EFI_IP6_CONFIG_DATA, align 4
@gBS = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775808, 1) i64 @Udp6CreateService(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct._IP_IO_OPEN_DATA, align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %4) #4
  %5 = tail call ptr @ZeroMem(ptr noundef %0, i64 noundef 80) #4
  store i32 913335381, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) @mUdp6ServiceBinding, i64 16, i1 false), !tbaa.struct !14
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %1, ptr %7, align 8, !tbaa !16
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  store ptr %2, ptr %8, align 8, !tbaa !17
  %9 = getelementptr inbounds i8, ptr %0, i64 56
  store i64 0, ptr %9, align 8, !tbaa !18
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = tail call ptr @InitializeListHead(ptr noundef nonnull %10) #4
  %12 = tail call ptr @IpIoCreate(ptr noundef %1, ptr noundef %2, i8 noundef zeroext 6) #4
  %13 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %12, ptr %13, align 8, !tbaa !19
  %14 = icmp eq ptr %12, null
  br i1 %14, label %49, label %15

15:                                               ; preds = %3
  %16 = call ptr @CopyMem(ptr noundef nonnull %4, ptr noundef nonnull @mIp6IoDefaultIpConfigData, i64 noundef 52) #4
  %17 = getelementptr inbounds i8, ptr %4, i64 56
  store ptr %0, ptr %17, align 8, !tbaa !20
  %18 = getelementptr inbounds i8, ptr %4, i64 64
  store ptr null, ptr %18, align 8, !tbaa !22
  %19 = getelementptr inbounds i8, ptr %4, i64 72
  store ptr @Udp6DgramRcvd, ptr %19, align 8, !tbaa !23
  %20 = getelementptr inbounds i8, ptr %4, i64 80
  store ptr @Udp6DgramSent, ptr %20, align 8, !tbaa !24
  %21 = load ptr, ptr %13, align 8, !tbaa !19
  %22 = call i64 @IpIoOpen(ptr noundef %21, ptr noundef nonnull %4) #4
  %23 = icmp slt i64 %22, 0
  br i1 %23, label %38, label %24

24:                                               ; preds = %15
  %25 = load ptr, ptr @gBS, align 8, !tbaa !15
  %26 = getelementptr inbounds i8, ptr %25, i64 80
  %27 = load ptr, ptr %26, align 8, !tbaa !25
  %28 = getelementptr inbounds i8, ptr %0, i64 72
  %29 = call i64 %27(i32 noundef -2147483136, i64 noundef 8, ptr noundef nonnull @Udp6CheckTimeout, ptr noundef nonnull %0, ptr noundef nonnull %28) #4
  %30 = icmp slt i64 %29, 0
  br i1 %30, label %38, label %31

31:                                               ; preds = %24
  %32 = load ptr, ptr @gBS, align 8, !tbaa !15
  %33 = getelementptr inbounds i8, ptr %32, i64 88
  %34 = load ptr, ptr %33, align 8, !tbaa !28
  %35 = load ptr, ptr %28, align 8, !tbaa !29
  %36 = call i64 %34(ptr noundef %35, i32 noundef 1, i64 noundef 500000) #4
  %37 = icmp slt i64 %36, 0
  br i1 %37, label %38, label %49

38:                                               ; preds = %31, %24, %15
  %.0 = phi i64 [ %22, %15 ], [ %29, %24 ], [ %36, %31 ]
  %39 = getelementptr inbounds i8, ptr %0, i64 72
  %40 = load ptr, ptr %39, align 8, !tbaa !29
  %.not = icmp eq ptr %40, null
  br i1 %.not, label %46, label %41

41:                                               ; preds = %38
  %42 = load ptr, ptr @gBS, align 8, !tbaa !15
  %43 = getelementptr inbounds i8, ptr %42, i64 112
  %44 = load ptr, ptr %43, align 8, !tbaa !30
  %45 = call i64 %44(ptr noundef nonnull %40) #4
  br label %46

46:                                               ; preds = %41, %38
  %47 = load ptr, ptr %13, align 8, !tbaa !19
  %48 = call i64 @IpIoDestroy(ptr noundef %47) #4
  store ptr null, ptr %13, align 8, !tbaa !19
  br label %49

49:                                               ; preds = %31, %3, %46
  %.026 = phi i64 [ %.0, %46 ], [ -9223372036854775799, %3 ], [ 0, %31 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %4) #4
  ret i64 %.026
}

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @InitializeListHead(ptr noundef) local_unnamed_addr #2

declare ptr @IpIoCreate(ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @Udp6DgramRcvd(i64 noundef, i8 noundef zeroext, ptr noundef, ptr noundef, ptr noundef) #0

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

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

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

declare i64 @IpIoDestroy(ptr noundef) local_unnamed_addr #2

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

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = !{!"_UDP6_SERVICE_DATA", !7, i64 0, !10, i64 8, !11, i64 24, !11, i64 32, !12, i64 40, !13, i64 56, !11, i64 64, !11, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"_LIST_ENTRY", !11, i64 0, !11, i64 8}
!13 = !{!"long long", !8, i64 0}
!14 = !{i64 0, i64 8, !15, i64 8, i64 8, !15}
!15 = !{!11, !11, i64 0}
!16 = !{!6, !11, i64 24}
!17 = !{!6, !11, i64 32}
!18 = !{!6, !13, i64 56}
!19 = !{!6, !11, i64 64}
!20 = !{!21, !11, i64 56}
!21 = !{!"_IP_IO_OPEN_DATA", !8, i64 0, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80}
!22 = !{!21, !11, i64 64}
!23 = !{!21, !11, i64 72}
!24 = !{!21, !11, i64 80}
!25 = !{!26, !11, i64 80}
!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 = !{!"", !13, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!28 = !{!26, !11, i64 88}
!29 = !{!6, !11, i64 72}
!30 = !{!26, !11, i64 112}


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