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

; 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_IP6_HEADER = type { i16, i16, i16, i8, i8, %struct.EFI_IPv6_ADDRESS, %struct.EFI_IPv6_ADDRESS }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }
%struct.IP6_ICMP_INFORMATION_HEAD = type { %struct.IP6_ICMP_HEAD, i32 }
%struct.IP6_ICMP_HEAD = type { i8, i8, i16 }
%struct.NET_BUF = type { i32, i64, %struct._LIST_ENTRY, %union.NET_IP_HEAD, ptr, ptr, [64 x i8], ptr, i32, i32, [1 x %struct.NET_BLOCK_OP] }
%struct._LIST_ENTRY = type { ptr, ptr }
%union.NET_IP_HEAD = type { ptr }
%struct.NET_BLOCK_OP = type { ptr, ptr, ptr, ptr, i32 }
%struct._IP6_SERVICE = type { i32, %struct._EFI_SERVICE_BINDING_PROTOCOL, i64, i64, %struct._LIST_ENTRY, %struct._LIST_ENTRY, ptr, ptr, %struct.IP6_LINK_RX_TOKEN, %struct.IP6_ASSEMBLE_TABLE, %struct.IP6_MLD_SERVICE_DATA, %struct.EFI_IPv6_ADDRESS, i8, i8, i8, i8, i8, i32, i32, i32, i32, %struct._LIST_ENTRY, %struct._LIST_ENTRY, %struct._LIST_ENTRY, %struct._LIST_ENTRY, i32, i8, ptr, i8, i8, i32, ptr, ptr, ptr, ptr, %struct.EFI_MANAGED_NETWORK_CONFIG_DATA, %struct.EFI_SIMPLE_NETWORK_MODE, ptr, ptr, %struct._IP6_CONFIG_INSTANCE, ptr, i32, i32 }
%struct._EFI_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%struct.IP6_LINK_RX_TOKEN = type { i32, ptr, ptr, %struct.EFI_MANAGED_NETWORK_COMPLETION_TOKEN }
%struct.EFI_MANAGED_NETWORK_COMPLETION_TOKEN = type { ptr, i64, %union.anon }
%union.anon = type { ptr }
%struct.IP6_ASSEMBLE_TABLE = type { [127 x %struct._LIST_ENTRY] }
%struct.IP6_MLD_SERVICE_DATA = type { i64, %struct._LIST_ENTRY }
%struct.EFI_MANAGED_NETWORK_CONFIG_DATA = type { i32, i32, i16, i8, i8, i8, i8, i8, i8, i8 }
%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._IP6_CONFIG_INSTANCE = type { i32, i8, %struct._LIST_ENTRY, i16, %struct.EFI_IP6_CONFIG_INTERFACE_INFO, %struct.EFI_IP6_CONFIG_INTERFACE_ID, i32, %struct.EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS, [7 x %struct.IP6_CONFIG_DATA_ITEM], %struct.NET_MAP, %struct.NET_MAP, %struct._EFI_IP6_CONFIG_PROTOCOL, ptr, ptr, ptr, ptr, i8, i32, ptr, i32, ptr, i32, %struct._IP6_FORM_CALLBACK_INFO, %struct.IP6_CONFIG_NVDATA }
%struct.EFI_IP6_CONFIG_INTERFACE_INFO = type { [32 x i16], i8, i32, %struct.EFI_MAC_ADDRESS, i32, ptr, i32, ptr }
%struct.EFI_IP6_CONFIG_INTERFACE_ID = type { [8 x i8] }
%struct.EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS = type { i32 }
%struct.IP6_CONFIG_DATA_ITEM = type { ptr, ptr, i64, i8, %struct.NET_MAP, %union.IP6_CONFIG_DATA, i64 }
%union.IP6_CONFIG_DATA = type { ptr }
%struct.NET_MAP = type { %struct._LIST_ENTRY, %struct._LIST_ENTRY, i64 }
%struct._EFI_IP6_CONFIG_PROTOCOL = type { ptr, ptr, ptr, ptr }
%struct._IP6_FORM_CALLBACK_INFO = type { i32, ptr, %struct._EFI_HII_CONFIG_ACCESS_PROTOCOL, ptr, ptr }
%struct._EFI_HII_CONFIG_ACCESS_PROTOCOL = type { ptr, ptr, ptr }
%struct.IP6_CONFIG_NVDATA = type { i32, %struct.EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS, %struct.EFI_IP6_CONFIG_INTERFACE_ID, %struct._LIST_ENTRY, i32, %struct._LIST_ENTRY, i32, %struct._LIST_ENTRY, i32 }

; Function Attrs: nounwind uwtable
define dso_local i64 @Ip6IcmpReplyEcho(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca %struct._EFI_IP6_HEADER, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #3
  store i64 -9223372036854775799, ptr %9, align 8, !tbaa !9
  %11 = load ptr, ptr %6, align 8, !tbaa !5
  %12 = call ptr @NetbufDuplicate(ptr noundef %11, ptr noundef null, i32 noundef 120)
  store ptr %12, ptr %8, align 8, !tbaa !5
  %13 = load ptr, ptr %8, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %3
  br label %60

16:                                               ; preds = %3
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = call ptr @NetbufGetByte(ptr noundef %17, i32 noundef 0, ptr noundef null)
  store ptr %18, ptr %7, align 8, !tbaa !5
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %21, label %23

21:                                               ; preds = %16
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  call void @NetbufFree(ptr noundef %22)
  br label %60

23:                                               ; preds = %16
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.IP6_ICMP_INFORMATION_HEAD, ptr %24, i32 0, i32 0
  %26 = getelementptr inbounds %struct.IP6_ICMP_HEAD, ptr %25, i32 0, i32 0
  store i8 -127, ptr %26, align 1, !tbaa !11
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.IP6_ICMP_INFORMATION_HEAD, ptr %27, i32 0, i32 0
  %29 = getelementptr inbounds %struct.IP6_ICMP_HEAD, ptr %28, i32 0, i32 2
  store i16 0, ptr %29, align 1, !tbaa !16
  %30 = call ptr @ZeroMem(ptr noundef %10, i64 noundef 40)
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.NET_BUF, ptr %31, i32 0, i32 9
  %33 = load i32, ptr %32, align 4, !tbaa !17
  %34 = trunc i32 %33 to i16
  %35 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %34)
  %36 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %10, i32 0, i32 2
  store i16 %35, ptr %36, align 1, !tbaa !20
  %37 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %10, i32 0, i32 3
  store i8 58, ptr %37, align 1, !tbaa !23
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._IP6_SERVICE, ptr %38, i32 0, i32 16
  %40 = load i8, ptr %39, align 4, !tbaa !24
  %41 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %10, i32 0, i32 4
  store i8 %40, ptr %41, align 1, !tbaa !40
  %42 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %10, i32 0, i32 6
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %43, i32 0, i32 5
  %45 = call ptr @CopyMem(ptr noundef %42, ptr noundef %44, i64 noundef 16)
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %47, i32 0, i32 6
  %49 = call zeroext i8 @Ip6IsOneOfSetAddress(ptr noundef %46, ptr noundef %48, ptr noundef null, ptr noundef null)
  %50 = icmp ne i8 %49, 0
  br i1 %50, label %51, label %56

51:                                               ; preds = %23
  %52 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %10, i32 0, i32 5
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %53, i32 0, i32 6
  %55 = call ptr @CopyMem(ptr noundef %52, ptr noundef %54, i64 noundef 16)
  br label %56

56:                                               ; preds = %51, %23
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = call i64 @Ip6Output(ptr noundef %57, ptr noundef null, ptr noundef null, ptr noundef %58, ptr noundef %10, ptr noundef null, i32 noundef 0, ptr noundef @Ip6SysPacketSent, ptr noundef null)
  store i64 %59, ptr %9, align 8, !tbaa !9
  br label %60

60:                                               ; preds = %56, %21, %15
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  call void @NetbufFree(ptr noundef %61)
  %62 = load i64, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret i64 %62
}

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

declare ptr @NetbufDuplicate(ptr noundef, ptr noundef, i32 noundef) #2

declare ptr @NetbufGetByte(ptr noundef, i32 noundef, ptr noundef) #2

declare void @NetbufFree(ptr noundef) #2

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

declare zeroext i16 @SwapBytes16(i16 noundef zeroext) #2

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

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

declare i64 @Ip6Output(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

declare void @Ip6SysPacketSent(ptr noundef, i64 noundef, i32 noundef, 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 = { 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, !7, i64 0}
!12 = !{!"", !13, i64 0, !15, i64 4}
!13 = !{!"", !7, i64 0, !7, i64 1, !14, i64 2}
!14 = !{!"short", !7, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!12, !14, i64 2}
!17 = !{!18, !15, i64 132}
!18 = !{!"", !15, i64 0, !10, i64 8, !19, i64 16, !7, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !6, i64 120, !15, i64 128, !15, i64 132, !7, i64 136}
!19 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!20 = !{!21, !14, i64 4}
!21 = !{!"_EFI_IP6_HEADER", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 1, !14, i64 2, !14, i64 4, !7, i64 6, !7, i64 7, !22, i64 8, !22, i64 24}
!22 = !{!"", !7, i64 0}
!23 = !{!21, !7, i64 6}
!24 = !{!25, !7, i64 2212}
!25 = !{!"_IP6_SERVICE", !15, i64 0, !26, i64 8, !10, i64 24, !10, i64 32, !19, i64 40, !19, i64 56, !6, i64 72, !6, i64 80, !27, i64 88, !22, i64 136, !29, i64 2168, !22, i64 2192, !7, i64 2208, !7, i64 2209, !7, i64 2210, !7, i64 2211, !7, i64 2212, !15, i64 2216, !15, i64 2220, !15, i64 2224, !15, i64 2228, !19, i64 2232, !19, i64 2248, !19, i64 2264, !19, i64 2280, !15, i64 2296, !7, i64 2300, !6, i64 2304, !7, i64 2312, !7, i64 2313, !15, i64 2316, !6, i64 2320, !6, i64 2328, !6, i64 2336, !6, i64 2344, !30, i64 2352, !31, i64 2372, !6, i64 3032, !6, i64 3040, !32, i64 3048, !6, i64 4176, !15, i64 4184, !15, i64 4188}
!26 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!27 = !{!"", !15, i64 0, !6, i64 8, !6, i64 16, !28, i64 24}
!28 = !{!"", !6, i64 0, !10, i64 8, !7, i64 16}
!29 = !{!"", !10, i64 0, !19, i64 8}
!30 = !{!"", !15, i64 0, !15, i64 4, !14, i64 8, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16}
!31 = !{!"", !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, !22, i64 552, !22, i64 584, !22, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!32 = !{!"_IP6_CONFIG_INSTANCE", !15, i64 0, !7, i64 4, !19, i64 8, !14, i64 24, !33, i64 32, !22, i64 168, !15, i64 176, !34, i64 180, !7, i64 184, !35, i64 800, !35, i64 840, !36, i64 880, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !7, i64 944, !15, i64 948, !6, i64 952, !15, i64 960, !6, i64 968, !15, i64 976, !37, i64 984, !39, i64 1040}
!33 = !{!"", !7, i64 0, !7, i64 64, !15, i64 68, !22, i64 72, !15, i64 104, !6, i64 112, !15, i64 120, !6, i64 128}
!34 = !{!"", !15, i64 0}
!35 = !{!"", !19, i64 0, !19, i64 16, !10, i64 32}
!36 = !{!"_EFI_IP6_CONFIG_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!37 = !{!"_IP6_FORM_CALLBACK_INFO", !15, i64 0, !6, i64 8, !38, i64 16, !6, i64 40, !6, i64 48}
!38 = !{!"_EFI_HII_CONFIG_ACCESS_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"", !15, i64 0, !34, i64 4, !22, i64 8, !19, i64 16, !15, i64 32, !19, i64 40, !15, i64 56, !19, i64 64, !15, i64 80}
!40 = !{!21, !7, i64 7}


; 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_IP6_HEADER = type { i16, i16, i16, i8, i8, %struct.EFI_IPv6_ADDRESS, %struct.EFI_IPv6_ADDRESS }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }

; Function Attrs: nounwind uwtable
define dso_local i64 @Ip6IcmpReplyEcho(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct._EFI_IP6_HEADER, align 1
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #3
  %5 = tail call ptr @NetbufDuplicate(ptr noundef %2, ptr noundef null, i32 noundef 120) #3
  %6 = icmp eq ptr %5, null
  br i1 %6, label %33, label %7

7:                                                ; preds = %3
  %8 = tail call ptr @NetbufGetByte(ptr noundef nonnull %5, i32 noundef 0, ptr noundef null) #3
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %11

10:                                               ; preds = %7
  tail call void @NetbufFree(ptr noundef nonnull %5) #3
  br label %33

11:                                               ; preds = %7
  store i8 -127, ptr %8, align 1, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %8, i64 2
  store i16 0, ptr %12, align 1, !tbaa !12
  %13 = call ptr @ZeroMem(ptr noundef nonnull %4, i64 noundef 40) #3
  %14 = getelementptr inbounds i8, ptr %2, i64 132
  %15 = load i32, ptr %14, align 4, !tbaa !13
  %16 = trunc i32 %15 to i16
  %17 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %16) #3
  %18 = getelementptr inbounds i8, ptr %4, i64 4
  store i16 %17, ptr %18, align 1, !tbaa !18
  %19 = getelementptr inbounds i8, ptr %4, i64 6
  store i8 58, ptr %19, align 1, !tbaa !21
  %20 = getelementptr inbounds i8, ptr %0, i64 2212
  %21 = load i8, ptr %20, align 4, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %4, i64 7
  store i8 %21, ptr %22, align 1, !tbaa !38
  %23 = getelementptr inbounds i8, ptr %4, i64 24
  %24 = getelementptr inbounds i8, ptr %1, i64 8
  %25 = call ptr @CopyMem(ptr noundef nonnull %23, ptr noundef nonnull %24, i64 noundef 16) #3
  %26 = getelementptr inbounds i8, ptr %1, i64 24
  %27 = call zeroext i8 @Ip6IsOneOfSetAddress(ptr noundef %0, ptr noundef nonnull %26, ptr noundef null, ptr noundef null) #3
  %.not = icmp eq i8 %27, 0
  br i1 %.not, label %31, label %28

28:                                               ; preds = %11
  %29 = getelementptr inbounds i8, ptr %4, i64 8
  %30 = call ptr @CopyMem(ptr noundef nonnull %29, ptr noundef nonnull %26, i64 noundef 16) #3
  br label %31

31:                                               ; preds = %28, %11
  %32 = call i64 @Ip6Output(ptr noundef nonnull %0, ptr noundef null, ptr noundef null, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef null, i32 noundef 0, ptr noundef nonnull @Ip6SysPacketSent, ptr noundef null) #3
  br label %33

33:                                               ; preds = %3, %31, %10
  %.0 = phi i64 [ -9223372036854775799, %3 ], [ -9223372036854775799, %10 ], [ %32, %31 ]
  call void @NetbufFree(ptr noundef %2) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #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

declare ptr @NetbufDuplicate(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare ptr @NetbufGetByte(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @NetbufFree(ptr noundef) local_unnamed_addr #2

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

declare zeroext i16 @SwapBytes16(i16 noundef zeroext) local_unnamed_addr #2

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

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

declare i64 @Ip6Output(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @Ip6SysPacketSent(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #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 = { 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, !8, i64 0}
!6 = !{!"", !7, i64 0, !11, i64 4}
!7 = !{!"", !8, i64 0, !8, i64 1, !10, i64 2}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 2}
!13 = !{!14, !11, i64 132}
!14 = !{!"", !11, i64 0, !15, i64 8, !16, i64 16, !8, i64 32, !17, i64 40, !17, i64 48, !8, i64 56, !17, i64 120, !11, i64 128, !11, i64 132, !8, i64 136}
!15 = !{!"long long", !8, i64 0}
!16 = !{!"_LIST_ENTRY", !17, i64 0, !17, i64 8}
!17 = !{!"any pointer", !8, i64 0}
!18 = !{!19, !10, i64 4}
!19 = !{!"_EFI_IP6_HEADER", !8, i64 0, !8, i64 0, !8, i64 1, !8, i64 1, !10, i64 2, !10, i64 4, !8, i64 6, !8, i64 7, !20, i64 8, !20, i64 24}
!20 = !{!"", !8, i64 0}
!21 = !{!19, !8, i64 6}
!22 = !{!23, !8, i64 2212}
!23 = !{!"_IP6_SERVICE", !11, i64 0, !24, i64 8, !15, i64 24, !15, i64 32, !16, i64 40, !16, i64 56, !17, i64 72, !17, i64 80, !25, i64 88, !20, i64 136, !27, i64 2168, !20, i64 2192, !8, i64 2208, !8, i64 2209, !8, i64 2210, !8, i64 2211, !8, i64 2212, !11, i64 2216, !11, i64 2220, !11, i64 2224, !11, i64 2228, !16, i64 2232, !16, i64 2248, !16, i64 2264, !16, i64 2280, !11, i64 2296, !8, i64 2300, !17, i64 2304, !8, i64 2312, !8, i64 2313, !11, i64 2316, !17, i64 2320, !17, i64 2328, !17, i64 2336, !17, i64 2344, !28, i64 2352, !29, i64 2372, !17, i64 3032, !17, i64 3040, !30, i64 3048, !17, i64 4176, !11, i64 4184, !11, i64 4188}
!24 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !17, i64 0, !17, i64 8}
!25 = !{!"", !11, i64 0, !17, i64 8, !17, i64 16, !26, i64 24}
!26 = !{!"", !17, i64 0, !15, i64 8, !8, i64 16}
!27 = !{!"", !15, i64 0, !16, i64 8}
!28 = !{!"", !11, i64 0, !11, i64 4, !10, i64 8, !8, i64 10, !8, i64 11, !8, i64 12, !8, i64 13, !8, i64 14, !8, i64 15, !8, i64 16}
!29 = !{!"", !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, !8, i64 40, !20, i64 552, !20, i64 584, !20, i64 616, !8, i64 648, !8, i64 649, !8, i64 650, !8, i64 651, !8, i64 652}
!30 = !{!"_IP6_CONFIG_INSTANCE", !11, i64 0, !8, i64 4, !16, i64 8, !10, i64 24, !31, i64 32, !20, i64 168, !11, i64 176, !32, i64 180, !8, i64 184, !33, i64 800, !33, i64 840, !34, i64 880, !17, i64 912, !17, i64 920, !17, i64 928, !17, i64 936, !8, i64 944, !11, i64 948, !17, i64 952, !11, i64 960, !17, i64 968, !11, i64 976, !35, i64 984, !37, i64 1040}
!31 = !{!"", !8, i64 0, !8, i64 64, !11, i64 68, !20, i64 72, !11, i64 104, !17, i64 112, !11, i64 120, !17, i64 128}
!32 = !{!"", !11, i64 0}
!33 = !{!"", !16, i64 0, !16, i64 16, !15, i64 32}
!34 = !{!"_EFI_IP6_CONFIG_PROTOCOL", !17, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!35 = !{!"_IP6_FORM_CALLBACK_INFO", !11, i64 0, !17, i64 8, !36, i64 16, !17, i64 40, !17, i64 48}
!36 = !{!"_EFI_HII_CONFIG_ACCESS_PROTOCOL", !17, i64 0, !17, i64 8, !17, i64 16}
!37 = !{!"", !11, i64 0, !32, i64 4, !20, i64 8, !16, i64 16, !11, i64 32, !16, i64 40, !11, i64 56, !16, i64 64, !11, i64 80}
!38 = !{!19, !8, i64 7}


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