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

; 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._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._LIST_ENTRY = type { ptr, ptr }
%struct.EFI_MAC_ADDRESS = type { [32 x i8] }
%struct.EFI_DHCP4_CONFIG_DATA = type { i32, ptr, i32, ptr, %struct.EFI_IPv4_ADDRESS, ptr, 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 }
%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] }

@mDhcp4ServiceBindingTemplate = external dso_local global %struct._EFI_SERVICE_BINDING_PROTOCOL, align 8
@gBS = external global ptr, align 8

; 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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @Dhcp4CloseService(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @Dhcp4CreateService(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca i64, 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 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) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %11 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr null, ptr %11, align 8, !tbaa !5
  %12 = call ptr @AllocateZeroPool(i64 noundef 360)
  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
  store i64 -9223372036854775799, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %99

16:                                               ; preds = %3
  %17 = load ptr, ptr %8, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %17, i32 0, i32 0
  store i32 1346586692, ptr %18, align 8, !tbaa !9
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %19, i32 0, i32 2
  store i64 0, ptr %20, align 8, !tbaa !17
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %22, i32 0, i32 3
  store ptr %21, ptr %23, align 8, !tbaa !18
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %25, i32 0, i32 4
  store ptr %24, ptr %26, align 8, !tbaa !19
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %27, i32 0, i32 5
  %29 = call ptr @InitializeListHead(ptr noundef %28)
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %30, i32 0, i32 7
  store i64 0, ptr %31, align 8, !tbaa !20
  %32 = call i32 @NetRandomInitSeed()
  %33 = zext i32 %32 to i64
  %34 = mul i64 %33, 1103515245
  %35 = add i64 %34, 12345
  %36 = trunc i64 %35 to i32
  %37 = zext i32 %36 to i64
  %38 = urem i64 %37, 4294967295
  %39 = trunc i64 %38 to i32
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %40, i32 0, i32 9
  store i32 %39, ptr %41, align 8, !tbaa !21
  %42 = load ptr, ptr %8, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %42, i32 0, i32 1
  %44 = call ptr @CopyMem(ptr noundef %43, ptr noundef @mDhcp4ServiceBindingTemplate, i64 noundef 16)
  %45 = load ptr, ptr @gBS, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %45, i32 0, i32 8
  %47 = load ptr, ptr %46, align 8, !tbaa !22
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %49, i32 0, i32 30
  %51 = call i64 %47(i32 noundef -2147483136, i64 noundef 8, ptr noundef @DhcpOnTimerTick, ptr noundef %48, ptr noundef %50)
  store i64 %51, ptr %9, align 8, !tbaa !25
  %52 = load i64, ptr %9, align 8, !tbaa !25
  %53 = icmp slt i64 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %16
  br label %94

55:                                               ; preds = %16
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = call ptr @UdpIoCreateIo(ptr noundef %56, ptr noundef %57, ptr noundef @DhcpConfigUdpIo, i8 noundef zeroext 4, ptr noundef null)
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %59, i32 0, i32 20
  store ptr %58, ptr %60, align 8, !tbaa !26
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %61, i32 0, i32 20
  %63 = load ptr, ptr %62, align 8, !tbaa !26
  %64 = icmp eq ptr %63, null
  br i1 %64, label %65, label %66

65:                                               ; preds = %55
  store i64 -9223372036854775799, ptr %9, align 8, !tbaa !25
  br label %94

66:                                               ; preds = %55
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %67, i32 0, i32 20
  %69 = load ptr, ptr %68, align 8, !tbaa !26
  %70 = getelementptr inbounds %struct._UDP_IO, ptr %69, i32 0, i32 7
  %71 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_MODE, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 4, !tbaa !27
  %73 = trunc i32 %72 to i8
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %74, i32 0, i32 25
  store i8 %73, ptr %75, align 1, !tbaa !30
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %76, i32 0, i32 20
  %78 = load ptr, ptr %77, align 8, !tbaa !26
  %79 = getelementptr inbounds %struct._UDP_IO, ptr %78, i32 0, i32 7
  %80 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_MODE, ptr %79, i32 0, i32 14
  %81 = load i8, ptr %80, align 8, !tbaa !31
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %82, i32 0, i32 24
  store i8 %81, ptr %83, align 8, !tbaa !32
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %84, i32 0, i32 23
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %86, i32 0, i32 20
  %88 = load ptr, ptr %87, align 8, !tbaa !26
  %89 = getelementptr inbounds %struct._UDP_IO, ptr %88, i32 0, i32 7
  %90 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_MODE, ptr %89, i32 0, i32 11
  %91 = call ptr @CopyMem(ptr noundef %85, ptr noundef %90, i64 noundef 32)
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %92, ptr %93, align 8, !tbaa !5
  store i64 0, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %99

94:                                               ; preds = %65, %54
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = call i64 @Dhcp4CloseService(ptr noundef %95)
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  call void @FreePool(ptr noundef %97)
  %98 = load i64, ptr %9, align 8, !tbaa !25
  store i64 %98, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %99

99:                                               ; preds = %94, %66, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %100 = load i64, ptr %4, align 8
  ret i64 %100
}

declare ptr @AllocateZeroPool(i64 noundef) #2

declare ptr @InitializeListHead(ptr noundef) #2

declare i32 @NetRandomInitSeed() #2

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

declare void @DhcpOnTimerTick(ptr noundef, ptr noundef) #2

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

declare void @FreePool(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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, !11, i64 0}
!10 = !{!"_DHCP_SERVICE", !11, i64 0, !12, i64 8, !13, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !13, i64 64, !13, i64 72, !13, 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, !13, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !15, i64 176, !7, i64 208, !7, i64 209, !7, i64 210, !6, i64 232, !16, i64 240, !11, i64 312, !6, i64 320, !11, i64 328, !11, i64 332, !13, i64 336, !13, i64 344, !11, i64 352}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!15 = !{!"", !7, i64 0}
!16 = !{!"", !11, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !15, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64}
!17 = !{!10, !13, i64 24}
!18 = !{!10, !6, i64 32}
!19 = !{!10, !6, i64 40}
!20 = !{!10, !13, i64 72}
!21 = !{!10, !11, i64 88}
!22 = !{!23, !6, i64 80}
!23 = !{!"", !24, 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}
!24 = !{!"", !13, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!25 = !{!13, !13, i64 0}
!26 = !{!10, !6, i64 152}
!27 = !{!28, !11, i64 68}
!28 = !{!"_UDP_IO", !11, i64 0, !14, i64 8, !13, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !29, i64 64, !14, i64 720, !6, i64 736, !7, i64 744, !7, i64 752}
!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, !7, i64 40, !15, i64 552, !15, i64 584, !15, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!30 = !{!10, !7, i64 209}
!31 = !{!28, !7, i64 712}
!32 = !{!10, !7, i64 208}


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

@mDhcp4ServiceBindingTemplate = external dso_local global %struct._EFI_SERVICE_BINDING_PROTOCOL, align 8
@gBS = external local_unnamed_addr global ptr, align 8

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775808, 1) i64 @Dhcp4CreateService(ptr noundef %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  store ptr null, ptr %2, align 8, !tbaa !5
  %4 = tail call ptr @AllocateZeroPool(i64 noundef 360) #2
  %5 = icmp eq ptr %4, null
  br i1 %5, label %44, label %6

6:                                                ; preds = %3
  store i32 1346586692, ptr %4, align 8, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %4, i64 24
  store i64 0, ptr %7, align 8, !tbaa !17
  %8 = getelementptr inbounds i8, ptr %4, i64 32
  store ptr %0, ptr %8, align 8, !tbaa !18
  %9 = getelementptr inbounds i8, ptr %4, i64 40
  store ptr %1, ptr %9, align 8, !tbaa !19
  %10 = getelementptr inbounds i8, ptr %4, i64 48
  %11 = tail call ptr @InitializeListHead(ptr noundef nonnull %10) #2
  %12 = getelementptr inbounds i8, ptr %4, i64 72
  store i64 0, ptr %12, align 8, !tbaa !20
  %13 = tail call i32 @NetRandomInitSeed() #2
  %.fr = freeze i32 %13
  %14 = mul i32 %.fr, 1103515245
  %15 = add i32 %14, 12345
  %.not = icmp eq i32 %15, -1
  %16 = add nsw i32 %14, 12346
  %17 = select i1 %.not, i32 %16, i32 %15
  %18 = getelementptr inbounds i8, ptr %4, i64 88
  store i32 %17, ptr %18, align 8, !tbaa !21
  %19 = getelementptr inbounds i8, ptr %4, i64 8
  %20 = tail call ptr @CopyMem(ptr noundef nonnull %19, ptr noundef nonnull @mDhcp4ServiceBindingTemplate, i64 noundef 16) #2
  %21 = load ptr, ptr @gBS, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %21, i64 80
  %23 = load ptr, ptr %22, align 8, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %4, i64 320
  %25 = tail call i64 %23(i32 noundef -2147483136, i64 noundef 8, ptr noundef nonnull @DhcpOnTimerTick, ptr noundef nonnull %4, ptr noundef nonnull %24) #2
  %26 = icmp slt i64 %25, 0
  br i1 %26, label %42, label %27

27:                                               ; preds = %6
  %28 = tail call ptr @UdpIoCreateIo(ptr noundef %0, ptr noundef %1, ptr noundef nonnull @DhcpConfigUdpIo, i8 noundef zeroext 4, ptr noundef null) #2
  %29 = getelementptr inbounds i8, ptr %4, i64 152
  store ptr %28, ptr %29, align 8, !tbaa !25
  %30 = icmp eq ptr %28, null
  br i1 %30, label %42, label %31

31:                                               ; preds = %27
  %32 = getelementptr inbounds i8, ptr %28, i64 68
  %33 = load i32, ptr %32, align 4, !tbaa !26
  %34 = trunc i32 %33 to i8
  %35 = getelementptr inbounds i8, ptr %4, i64 209
  store i8 %34, ptr %35, align 1, !tbaa !29
  %36 = getelementptr inbounds i8, ptr %28, i64 712
  %37 = load i8, ptr %36, align 8, !tbaa !30
  %38 = getelementptr inbounds i8, ptr %4, i64 208
  store i8 %37, ptr %38, align 8, !tbaa !31
  %39 = getelementptr inbounds i8, ptr %4, i64 176
  %40 = getelementptr inbounds i8, ptr %28, i64 616
  %41 = tail call ptr @CopyMem(ptr noundef nonnull %39, ptr noundef nonnull %40, i64 noundef 32) #2
  store ptr %4, ptr %2, align 8, !tbaa !5
  br label %44

42:                                               ; preds = %27, %6
  %.0 = phi i64 [ %25, %6 ], [ -9223372036854775799, %27 ]
  %43 = tail call i64 @Dhcp4CloseService(ptr noundef nonnull %4)
  tail call void @FreePool(ptr noundef nonnull %4) #2
  br label %44

44:                                               ; preds = %3, %42, %31
  %.030 = phi i64 [ %.0, %42 ], [ 0, %31 ], [ -9223372036854775799, %3 ]
  ret i64 %.030
}

declare ptr @AllocateZeroPool(i64 noundef) local_unnamed_addr #1

declare ptr @InitializeListHead(ptr noundef) local_unnamed_addr #1

declare i32 @NetRandomInitSeed() local_unnamed_addr #1

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

declare void @DhcpOnTimerTick(ptr noundef, ptr noundef) #1

declare ptr @UdpIoCreateIo(ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext, ptr noundef) local_unnamed_addr #1

declare void @FreePool(ptr noundef) local_unnamed_addr #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 = { "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 }

!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 = !{!"_DHCP_SERVICE", !11, i64 0, !12, i64 8, !13, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !13, i64 64, !13, i64 72, !13, 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, !13, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !15, i64 176, !7, i64 208, !7, i64 209, !7, i64 210, !6, i64 232, !16, i64 240, !11, i64 312, !6, i64 320, !11, i64 328, !11, i64 332, !13, i64 336, !13, i64 344, !11, i64 352}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!15 = !{!"", !7, i64 0}
!16 = !{!"", !11, i64 0, !6, i64 8, !11, i64 16, !6, i64 24, !15, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64}
!17 = !{!10, !13, i64 24}
!18 = !{!10, !6, i64 32}
!19 = !{!10, !6, i64 40}
!20 = !{!10, !13, i64 72}
!21 = !{!10, !11, i64 88}
!22 = !{!23, !6, i64 80}
!23 = !{!"", !24, 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}
!24 = !{!"", !13, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!25 = !{!10, !6, i64 152}
!26 = !{!27, !11, i64 68}
!27 = !{!"_UDP_IO", !11, i64 0, !14, i64 8, !13, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !28, i64 64, !14, i64 720, !6, i64 736, !7, i64 744, !7, i64 752}
!28 = !{!"", !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, !15, i64 552, !15, i64 584, !15, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!29 = !{!10, !7, i64 209}
!30 = !{!27, !7, i64 712}
!31 = !{!10, !7, i64 208}


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