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

; 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._UDP4_INSTANCE_DATA_ = type { i32, %struct._LIST_ENTRY, ptr, %struct._EFI_UDP4_PROTOCOL, %struct.EFI_UDP4_CONFIG_DATA, ptr, i8, i8, %struct.NET_MAP, %struct.NET_MAP, %struct.NET_MAP, %struct._LIST_ENTRY, %struct._LIST_ENTRY, i16, i64, ptr, i8 }
%struct._EFI_UDP4_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_UDP4_CONFIG_DATA = type { i8, i8, i8, i8, i8, i8, i8, i32, i32, i8, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i16, %struct.EFI_IPv4_ADDRESS, i16 }
%struct.EFI_IPv4_ADDRESS = type { [4 x i8] }
%struct.NET_MAP = type { %struct._LIST_ENTRY, %struct._LIST_ENTRY, i64 }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct._IP_IO_IP_INFO = type { %union.EFI_IP_ADDRESS, %union.IP_IO_IP_MASK, %struct._LIST_ENTRY, ptr, %union.IP_IO_IP_PROTOCOL, %union.IP_IO_IP_COMPLETION_TOKEN, i64, i8 }
%union.EFI_IP_ADDRESS = type { [4 x i32] }
%union.IP_IO_IP_MASK = type { i32 }
%union.IP_IO_IP_PROTOCOL = type { ptr }
%union.IP_IO_IP_COMPLETION_TOKEN = type { %struct.EFI_IP4_COMPLETION_TOKEN }
%struct.EFI_IP4_COMPLETION_TOKEN = type { ptr, i64, %union.anon }
%union.anon = type { 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_IP4_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [151 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@gBS = external global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i64 @Udp4Groups(ptr noundef %0, i8 noundef zeroext %1, ptr noundef %2) #0 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i8 %1, ptr %6, align 1, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  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 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %23, label %16

16:                                               ; preds = %3
  %17 = load i8, ptr %6, align 1, !tbaa !9
  %18 = zext i8 %17 to i32
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %24

20:                                               ; preds = %16
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %20, %3
  store i64 -9223372036854775806, ptr %4, align 8
  store i32 1, ptr %13, align 4
  br label %110

24:                                               ; preds = %20, %16
  store i32 0, ptr %12, align 4, !tbaa !10
  %25 = load i8, ptr %6, align 1, !tbaa !9
  %26 = icmp ne i8 %25, 0
  br i1 %26, label %27, label %36

27:                                               ; preds = %24
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = call ptr @CopyMem(ptr noundef %12, ptr noundef %28, i64 noundef 4)
  %30 = load i32, ptr %12, align 4, !tbaa !10
  %31 = call i32 @SwapBytes32(i32 noundef %30)
  %32 = and i32 %31, -268435456
  %33 = icmp eq i32 %32, -536870912
  br i1 %33, label %35, label %34

34:                                               ; preds = %27
  store i64 -9223372036854775806, ptr %4, align 8
  store i32 1, ptr %13, align 4
  br label %110

35:                                               ; preds = %27
  br label %36

36:                                               ; preds = %35, %24
  %37 = call zeroext i8 @DebugAssertEnabled()
  %38 = zext i8 %37 to i32
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %50

40:                                               ; preds = %36
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = ptrtoint ptr %41 to i64
  %43 = sub i64 %42, ptrtoint (ptr getelementptr inbounds (%struct._UDP4_INSTANCE_DATA_, ptr null, i32 0, i32 3) to i64)
  %44 = inttoptr i64 %43 to ptr
  %45 = getelementptr inbounds %struct._UDP4_INSTANCE_DATA_, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !12
  %47 = icmp ne i32 %46, 1232102485
  br i1 %47, label %48, label %50

48:                                               ; preds = %40
  call void @DebugAssert(ptr noundef @.str, i64 noundef 348, ptr noundef @.str.1)
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  br label %55

50:                                               ; preds = %40, %36
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = ptrtoint ptr %51 to i64
  %53 = sub i64 %52, ptrtoint (ptr getelementptr inbounds (%struct._UDP4_INSTANCE_DATA_, ptr null, i32 0, i32 3) to i64)
  %54 = inttoptr i64 %53 to ptr
  br label %55

55:                                               ; preds = %50, %48
  %56 = phi ptr [ %49, %48 ], [ %54, %50 ]
  store ptr %56, ptr %9, align 8, !tbaa !5
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct._UDP4_INSTANCE_DATA_, ptr %57, i32 0, i32 7
  %59 = load i8, ptr %58, align 1, !tbaa !21
  %60 = icmp ne i8 %59, 0
  br i1 %60, label %61, label %62

61:                                               ; preds = %55
  store i64 -9223372036854775791, ptr %4, align 8
  store i32 1, ptr %13, align 4
  br label %110

62:                                               ; preds = %55
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct._UDP4_INSTANCE_DATA_, ptr %63, i32 0, i32 6
  %65 = load i8, ptr %64, align 8, !tbaa !22
  %66 = icmp ne i8 %65, 0
  br i1 %66, label %68, label %67

67:                                               ; preds = %62
  store i64 -9223372036854775789, ptr %4, align 8
  store i32 1, ptr %13, align 4
  br label %110

68:                                               ; preds = %62
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct._UDP4_INSTANCE_DATA_, ptr %69, i32 0, i32 15
  %71 = load ptr, ptr %70, align 8, !tbaa !23
  %72 = getelementptr inbounds %struct._IP_IO_IP_INFO, ptr %71, i32 0, i32 4
  %73 = load ptr, ptr %72, align 8, !tbaa !9
  store ptr %73, ptr %10, align 8, !tbaa !5
  %74 = load ptr, ptr @gBS, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %74, i32 0, i32 1
  %76 = load ptr, ptr %75, align 8, !tbaa !24
  %77 = call i64 %76(i64 noundef 8)
  store i64 %77, ptr %11, align 8, !tbaa !27
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._EFI_IP4_PROTOCOL, ptr %78, i32 0, i32 2
  %80 = load ptr, ptr %79, align 8, !tbaa !28
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = load i8, ptr %6, align 1, !tbaa !9
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = call i64 %80(ptr noundef %81, i8 noundef zeroext %82, ptr noundef %83)
  store i64 %84, ptr %8, align 8, !tbaa !27
  %85 = load i64, ptr %8, align 8, !tbaa !27
  %86 = icmp slt i64 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %68
  br label %104

88:                                               ; preds = %68
  %89 = load i8, ptr %6, align 1, !tbaa !9
  %90 = icmp ne i8 %89, 0
  br i1 %90, label %91, label %98

91:                                               ; preds = %88
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._UDP4_INSTANCE_DATA_, ptr %92, i32 0, i32 10
  %94 = load i32, ptr %12, align 4, !tbaa !10
  %95 = zext i32 %94 to i64
  %96 = inttoptr i64 %95 to ptr
  %97 = call i64 @NetMapInsertTail(ptr noundef %93, ptr noundef %96, ptr noundef null)
  br label %103

98:                                               ; preds = %88
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct._UDP4_INSTANCE_DATA_, ptr %99, i32 0, i32 10
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = call i64 @NetMapIterate(ptr noundef %100, ptr noundef @Udp4LeaveGroup, ptr noundef %101)
  br label %103

103:                                              ; preds = %98, %91
  br label %104

104:                                              ; preds = %103, %87
  %105 = load ptr, ptr @gBS, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %105, i32 0, i32 2
  %107 = load ptr, ptr %106, align 8, !tbaa !30
  %108 = load i64, ptr %11, align 8, !tbaa !27
  call void %107(i64 noundef %108)
  %109 = load i64, ptr %8, align 8, !tbaa !27
  store i64 %109, ptr %4, align 8
  store i32 1, ptr %13, align 4
  br label %110

110:                                              ; preds = %104, %67, %61, %34, %23
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %111 = load i64, ptr %4, align 8
  ret i64 %111
}

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

declare zeroext i8 @DebugAssertEnabled() #2

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

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

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

declare i32 @SwapBytes32(i32 noundef) #2

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

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

declare i64 @Udp4LeaveGroup(ptr noundef, ptr noundef, 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"_UDP4_INSTANCE_DATA_", !11, i64 0, !14, i64 8, !6, i64 24, !15, i64 32, !16, i64 96, !6, i64 136, !7, i64 144, !7, i64 145, !19, i64 152, !19, i64 192, !19, i64 232, !14, i64 272, !14, i64 288, !18, i64 304, !20, i64 312, !6, i64 320, !7, i64 328}
!14 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!15 = !{!"_EFI_UDP4_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}
!16 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !11, i64 8, !11, i64 12, !7, i64 16, !17, i64 17, !17, i64 21, !18, i64 26, !17, i64 28, !18, i64 32}
!17 = !{!"", !7, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{!"", !14, i64 0, !14, i64 16, !20, i64 32}
!20 = !{!"long long", !7, i64 0}
!21 = !{!13, !7, i64 145}
!22 = !{!13, !7, i64 144}
!23 = !{!13, !6, i64 320}
!24 = !{!25, !6, i64 24}
!25 = !{!"", !26, 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}
!26 = !{!"", !20, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!27 = !{!20, !20, i64 0}
!28 = !{!29, !6, i64 16}
!29 = !{!"_EFI_IP4_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}
!30 = !{!25, !6, i64 32}


; 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 = external hidden unnamed_addr constant [151 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@gBS = external local_unnamed_addr global ptr, align 8

; Function Attrs: nounwind uwtable
define dso_local i64 @Udp4Groups(ptr noundef %0, i8 noundef zeroext %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  %5 = icmp eq ptr %0, null
  br i1 %5, label %53, label %6

6:                                                ; preds = %3
  %7 = icmp ne i8 %1, 0
  %8 = icmp eq ptr %2, null
  %or.cond = and i1 %7, %8
  br i1 %or.cond, label %53, label %9

9:                                                ; preds = %6
  store i32 0, ptr %4, align 4, !tbaa !5
  %.not = icmp eq i8 %1, 0
  br i1 %.not, label %16, label %10

10:                                               ; preds = %9
  %11 = call ptr @CopyMem(ptr noundef nonnull %4, ptr noundef %2, i64 noundef 4) #3
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = call i32 @SwapBytes32(i32 noundef %12) #3
  %14 = and i32 %13, -268435456
  %15 = icmp eq i32 %14, -536870912
  br i1 %15, label %16, label %53

16:                                               ; preds = %10, %9
  %17 = call zeroext i8 @DebugAssertEnabled() #3
  %.not24 = icmp eq i8 %17, 0
  %.pre = ptrtoint ptr %0 to i64
  %.pre28 = add i64 %.pre, -32
  %.pre30 = inttoptr i64 %.pre28 to ptr
  br i1 %.not24, label %._crit_edge, label %18

18:                                               ; preds = %16
  %19 = load i32, ptr %.pre30, align 8, !tbaa !9
  %.not25 = icmp eq i32 %19, 1232102485
  br i1 %.not25, label %._crit_edge, label %20

20:                                               ; preds = %18
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 348, ptr noundef nonnull @.str.1) #3
  br label %._crit_edge

._crit_edge:                                      ; preds = %16, %18, %20
  %21 = phi ptr [ %0, %20 ], [ %.pre30, %18 ], [ %.pre30, %16 ]
  %22 = getelementptr inbounds i8, ptr %21, i64 145
  %23 = load i8, ptr %22, align 1, !tbaa !19
  %.not26 = icmp eq i8 %23, 0
  br i1 %.not26, label %24, label %53

24:                                               ; preds = %._crit_edge
  %25 = getelementptr inbounds i8, ptr %21, i64 144
  %26 = load i8, ptr %25, align 8, !tbaa !20
  %.not27 = icmp eq i8 %26, 0
  br i1 %.not27, label %53, label %27

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %21, i64 320
  %29 = load ptr, ptr %28, align 8, !tbaa !21
  %30 = getelementptr inbounds i8, ptr %29, i64 48
  %31 = load ptr, ptr %30, align 8, !tbaa !22
  %32 = load ptr, ptr @gBS, align 8, !tbaa !23
  %33 = getelementptr inbounds i8, ptr %32, i64 24
  %34 = load ptr, ptr %33, align 8, !tbaa !24
  %35 = call i64 %34(i64 noundef 8) #3
  %36 = getelementptr inbounds i8, ptr %31, i64 16
  %37 = load ptr, ptr %36, align 8, !tbaa !27
  %38 = call i64 %37(ptr noundef %31, i8 noundef zeroext %1, ptr noundef %2) #3
  %39 = icmp slt i64 %38, 0
  br i1 %39, label %49, label %40

40:                                               ; preds = %27
  %41 = getelementptr inbounds i8, ptr %21, i64 232
  br i1 %.not, label %47, label %42

42:                                               ; preds = %40
  %43 = load i32, ptr %4, align 4, !tbaa !5
  %44 = zext i32 %43 to i64
  %45 = inttoptr i64 %44 to ptr
  %46 = call i64 @NetMapInsertTail(ptr noundef nonnull %41, ptr noundef %45, ptr noundef null) #3
  br label %49

47:                                               ; preds = %40
  %48 = call i64 @NetMapIterate(ptr noundef nonnull %41, ptr noundef nonnull @Udp4LeaveGroup, ptr noundef %2) #3
  br label %49

49:                                               ; preds = %42, %47, %27
  %50 = load ptr, ptr @gBS, align 8, !tbaa !23
  %51 = getelementptr inbounds i8, ptr %50, i64 32
  %52 = load ptr, ptr %51, align 8, !tbaa !29
  call void %52(i64 noundef %35) #3
  br label %53

53:                                               ; preds = %24, %._crit_edge, %10, %3, %6, %49
  %.0 = phi i64 [ %38, %49 ], [ -9223372036854775806, %6 ], [ -9223372036854775806, %3 ], [ -9223372036854775806, %10 ], [ -9223372036854775791, %._crit_edge ], [ -9223372036854775789, %24 ]
  call void @llvm.lifetime.end.p0(i64 4, 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 zeroext i8 @DebugAssertEnabled() local_unnamed_addr #2

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

declare ptr @CopyMem(ptr noundef, ptr noundef, i64 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

declare i32 @SwapBytes32(i32 noundef) local_unnamed_addr #2

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

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

declare i64 @Udp4LeaveGroup(ptr noundef, ptr noundef, 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_UDP4_INSTANCE_DATA_", !6, i64 0, !11, i64 8, !12, i64 24, !13, i64 32, !14, i64 96, !12, i64 136, !7, i64 144, !7, i64 145, !17, i64 152, !17, i64 192, !17, i64 232, !11, i64 272, !11, i64 288, !16, i64 304, !18, i64 312, !12, i64 320, !7, i64 328}
!11 = !{!"_LIST_ENTRY", !12, i64 0, !12, i64 8}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"_EFI_UDP4_PROTOCOL", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56}
!14 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !6, i64 8, !6, i64 12, !7, i64 16, !15, i64 17, !15, i64 21, !16, i64 26, !15, i64 28, !16, i64 32}
!15 = !{!"", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"", !11, i64 0, !11, i64 16, !18, i64 32}
!18 = !{!"long long", !7, i64 0}
!19 = !{!10, !7, i64 145}
!20 = !{!10, !7, i64 144}
!21 = !{!10, !12, i64 320}
!22 = !{!7, !7, i64 0}
!23 = !{!12, !12, i64 0}
!24 = !{!25, !12, i64 24}
!25 = !{!"", !26, i64 0, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !12, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !12, i64 360, !12, i64 368}
!26 = !{!"", !18, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!27 = !{!28, !12, i64 16}
!28 = !{!"_EFI_IP4_PROTOCOL", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56}
!29 = !{!25, !12, i64 32}


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