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

; 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.UDP_END_POINT = type { %union.EFI_IP_ADDRESS, i16, %union.EFI_IP_ADDRESS, i16 }
%union.EFI_IP_ADDRESS = type { [4 x i32] }
%struct.NET_FRAGMENT = type { i32, 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._EFI_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%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_DHCP4_PACKET = type <{ i32, i32, %struct.anon }>
%struct.anon = type <{ %struct.EFI_DHCP4_HEADER, i32, [1 x i8] }>
%struct.EFI_DHCP4_HEADER = type { i8, i8, i8, i8, i32, i16, i16, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, [16 x i8], [64 x i8], [128 x i8] }
%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] }
%union.NET_IP_HEAD = type { ptr }
%struct.NET_BLOCK_OP = type { ptr, ptr, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [151 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [35 x i8], align 1

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

declare zeroext i8 @DebugAssertEnabled() #1

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

; 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 void @DhcpReleasePacket(ptr noundef) #2

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

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

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

declare i64 @UdpIoSendDatagram(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @DhcpRetransmit(ptr noundef %0) #2 {
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.UDP_END_POINT, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct.NET_FRAGMENT, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  br label %10

10:                                               ; preds = %1
  %11 = call zeroext i8 @DebugAssertEnabled()
  %12 = icmp ne i8 %11, 0
  br i1 %12, label %13, label %20

13:                                               ; preds = %10
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %14, i32 0, i32 22
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = icmp ne ptr %16, null
  br i1 %17, label %19, label %18

18:                                               ; preds = %13
  call void @DebugAssert(ptr noundef @.str, i64 noundef 1447, ptr noundef @.str.14)
  br label %19

19:                                               ; preds = %18, %13
  br label %20

20:                                               ; preds = %19, %10
  br label %21

21:                                               ; preds = %20
  br label %22

22:                                               ; preds = %21
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %23, i32 0, i32 7
  %25 = load i64, ptr %24, align 8, !tbaa !17
  %26 = icmp ne i64 %25, 3
  br i1 %26, label %27, label %37

27:                                               ; preds = %22
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %28, i32 0, i32 22
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.EFI_DHCP4_PACKET, ptr %30, i32 0, i32 2
  %32 = getelementptr inbounds %struct.anon, ptr %31, i32 0, i32 0
  %33 = getelementptr inbounds %struct.EFI_DHCP4_HEADER, ptr %32, i32 0, i32 5
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %34, i32 0, i32 27
  %36 = load ptr, ptr %35, align 8, !tbaa !18
  call void @SetElapsedTime(ptr noundef %33, ptr noundef %36)
  br label %37

37:                                               ; preds = %27, %22
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %38, i32 0, i32 22
  %40 = load ptr, ptr %39, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.EFI_DHCP4_PACKET, ptr %40, i32 0, i32 2
  %42 = getelementptr inbounds %struct.anon, ptr %41, i32 0, i32 0
  %43 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %7, i32 0, i32 1
  store ptr %42, ptr %43, align 8, !tbaa !19
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %44, i32 0, i32 22
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = getelementptr inbounds %struct.EFI_DHCP4_PACKET, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 1, !tbaa !21
  %49 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %7, i32 0, i32 0
  store i32 %48, ptr %49, align 8, !tbaa !26
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %50, i32 0, i32 22
  %52 = load ptr, ptr %51, align 8, !tbaa !9
  %53 = call ptr @NetbufFromExt(ptr noundef %7, i32 noundef 1, i32 noundef 0, i32 noundef 0, ptr noundef @DhcpReleasePacket, ptr noundef %52)
  store ptr %53, ptr %6, align 8, !tbaa !5
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = icmp eq ptr %54, null
  br i1 %55, label %56, label %57

56:                                               ; preds = %37
  store i64 -9223372036854775799, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %113

57:                                               ; preds = %37
  %58 = getelementptr inbounds %struct.UDP_END_POINT, ptr %5, i32 0, i32 3
  store i16 67, ptr %58, align 4, !tbaa !27
  %59 = getelementptr inbounds %struct.UDP_END_POINT, ptr %5, i32 0, i32 1
  store i16 68, ptr %59, align 4, !tbaa !29
  %60 = getelementptr inbounds %struct.UDP_END_POINT, ptr %5, i32 0, i32 2
  %61 = getelementptr inbounds [4 x i32], ptr %60, i64 0, i64 0
  store i32 -1, ptr %61, align 4, !tbaa !30
  %62 = getelementptr inbounds %struct.UDP_END_POINT, ptr %5, i32 0, i32 0
  %63 = getelementptr inbounds [4 x i32], ptr %62, i64 0, i64 0
  store i32 0, ptr %63, align 4, !tbaa !30
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %64, i32 0, i32 20
  %66 = load ptr, ptr %65, align 8, !tbaa !31
  store ptr %66, ptr %4, align 8, !tbaa !5
  %67 = load ptr, ptr %3, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %67, i32 0, i32 7
  %69 = load i64, ptr %68, align 8, !tbaa !17
  %70 = icmp eq i64 %69, 5
  br i1 %70, label %71, label %85

71:                                               ; preds = %57
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %72, i32 0, i32 12
  %74 = load i32, ptr %73, align 4, !tbaa !32
  %75 = getelementptr inbounds %struct.UDP_END_POINT, ptr %5, i32 0, i32 2
  %76 = getelementptr inbounds [4 x i32], ptr %75, i64 0, i64 0
  store i32 %74, ptr %76, align 4, !tbaa !30
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %77, i32 0, i32 10
  %79 = load i32, ptr %78, align 4, !tbaa !33
  %80 = getelementptr inbounds %struct.UDP_END_POINT, ptr %5, i32 0, i32 0
  %81 = getelementptr inbounds [4 x i32], ptr %80, i64 0, i64 0
  store i32 %79, ptr %81, align 4, !tbaa !30
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._DHCP_SERVICE, ptr %82, i32 0, i32 21
  %84 = load ptr, ptr %83, align 8, !tbaa !34
  store ptr %84, ptr %4, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %71, %57
  br label %86

86:                                               ; preds = %85
  %87 = call zeroext i8 @DebugAssertEnabled()
  %88 = icmp ne i8 %87, 0
  br i1 %88, label %89, label %94

89:                                               ; preds = %86
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = icmp ne ptr %90, null
  br i1 %91, label %93, label %92

92:                                               ; preds = %89
  call void @DebugAssert(ptr noundef @.str, i64 noundef 1482, ptr noundef @.str.13)
  br label %93

93:                                               ; preds = %92, %89
  br label %94

94:                                               ; preds = %93, %86
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.NET_BUF, ptr %97, i32 0, i32 1
  %99 = load i64, ptr %98, align 8, !tbaa !35
  %100 = add nsw i64 %99, 1
  store i64 %100, ptr %98, align 8, !tbaa !35
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = call i64 @UdpIoSendDatagram(ptr noundef %101, ptr noundef %102, ptr noundef %5, ptr noundef null, ptr noundef @DhcpOnPacketSent, ptr noundef %103)
  store i64 %104, ptr %8, align 8, !tbaa !37
  %105 = load i64, ptr %8, align 8, !tbaa !37
  %106 = icmp slt i64 %105, 0
  br i1 %106, label %107, label %112

107:                                              ; preds = %96
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.NET_BUF, ptr %108, i32 0, i32 1
  %110 = load i64, ptr %109, align 8, !tbaa !35
  %111 = add nsw i64 %110, -1
  store i64 %111, ptr %109, align 8, !tbaa !35
  store i64 -9223372036854775793, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %113

112:                                              ; preds = %96
  store i64 0, ptr %2, align 8
  store i32 1, ptr %9, align 4
  br label %113

113:                                              ; preds = %112, %107, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %114 = load i64, ptr %2, align 8
  ret i64 %114
}

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 168}
!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 72}
!18 = !{!10, !6, i64 232}
!19 = !{!20, !6, i64 8}
!20 = !{!"", !11, i64 0, !6, i64 8}
!21 = !{!22, !11, i64 4}
!22 = !{!"", !11, i64 0, !11, i64 4, !23, i64 8}
!23 = !{!"", !24, i64 0, !11, i64 236, !7, i64 240}
!24 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !11, i64 4, !25, i64 8, !25, i64 10, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !7, i64 28, !7, i64 44, !7, i64 108}
!25 = !{!"short", !7, i64 0}
!26 = !{!20, !11, i64 0}
!27 = !{!28, !25, i64 36}
!28 = !{!"", !7, i64 0, !25, i64 16, !7, i64 20, !25, i64 36}
!29 = !{!28, !25, i64 16}
!30 = !{!7, !7, i64 0}
!31 = !{!10, !6, i64 152}
!32 = !{!10, !11, i64 100}
!33 = !{!10, !11, i64 92}
!34 = !{!10, !6, i64 160}
!35 = !{!36, !13, i64 8}
!36 = !{!"", !11, i64 0, !13, i64 8, !14, i64 16, !7, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !6, i64 120, !11, i64 128, !11, i64 132, !7, i64 136}
!37 = !{!13, !13, i64 0}


; 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.UDP_END_POINT = type { %union.EFI_IP_ADDRESS, i16, %union.EFI_IP_ADDRESS, i16 }
%union.EFI_IP_ADDRESS = type { [4 x i32] }
%struct.NET_FRAGMENT = type { i32, ptr }

@.str = external hidden unnamed_addr constant [151 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [35 x i8], align 1

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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

; Function Attrs: mustprogress 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 void @DhcpReleasePacket(ptr noundef) #2

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

declare void @SetElapsedTime(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @NetbufFromExt(ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775799, 1) i64 @DhcpRetransmit(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca %struct.UDP_END_POINT, align 4
  %3 = alloca %struct.NET_FRAGMENT, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  %4 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not = icmp eq i8 %4, 0
  br i1 %.not, label %9, label %5

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 168
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %.not23 = icmp eq ptr %7, null
  br i1 %.not23, label %8, label %9

8:                                                ; preds = %5
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1447, ptr noundef nonnull @.str.14) #3
  br label %9

9:                                                ; preds = %5, %8, %1
  %10 = getelementptr inbounds i8, ptr %0, i64 72
  %11 = load i64, ptr %10, align 8, !tbaa !16
  %.not24 = icmp eq i64 %11, 3
  br i1 %.not24, label %18, label %12

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %0, i64 168
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 16
  %16 = getelementptr inbounds i8, ptr %0, i64 232
  %17 = load ptr, ptr %16, align 8, !tbaa !17
  tail call void @SetElapsedTime(ptr noundef nonnull %15, ptr noundef %17) #3
  br label %18

18:                                               ; preds = %12, %9
  %19 = getelementptr inbounds i8, ptr %0, i64 168
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = getelementptr inbounds i8, ptr %3, i64 8
  store ptr %21, ptr %22, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %20, i64 4
  %24 = load i32, ptr %23, align 1, !tbaa !20
  store i32 %24, ptr %3, align 8, !tbaa !25
  %25 = call ptr @NetbufFromExt(ptr noundef nonnull %3, i32 noundef 1, i32 noundef 0, i32 noundef 0, ptr noundef nonnull @DhcpReleasePacket, ptr noundef %20) #3
  %26 = icmp eq ptr %25, null
  br i1 %26, label %54, label %27

27:                                               ; preds = %18
  %28 = getelementptr inbounds i8, ptr %2, i64 36
  store i16 67, ptr %28, align 4, !tbaa !26
  %29 = getelementptr inbounds i8, ptr %2, i64 16
  store i16 68, ptr %29, align 4, !tbaa !28
  %30 = getelementptr inbounds i8, ptr %2, i64 20
  store i32 -1, ptr %30, align 4, !tbaa !29
  store i32 0, ptr %2, align 4, !tbaa !29
  %31 = getelementptr inbounds i8, ptr %0, i64 152
  %32 = load i64, ptr %10, align 8, !tbaa !16
  %33 = icmp eq i64 %32, 5
  br i1 %33, label %34, label %40

34:                                               ; preds = %27
  %35 = getelementptr inbounds i8, ptr %0, i64 100
  %36 = load i32, ptr %35, align 4, !tbaa !30
  store i32 %36, ptr %30, align 4, !tbaa !29
  %37 = getelementptr inbounds i8, ptr %0, i64 92
  %38 = load i32, ptr %37, align 4, !tbaa !31
  store i32 %38, ptr %2, align 4, !tbaa !29
  %39 = getelementptr inbounds i8, ptr %0, i64 160
  br label %40

40:                                               ; preds = %27, %34
  %.021.in = phi ptr [ %39, %34 ], [ %31, %27 ]
  %.021 = load ptr, ptr %.021.in, align 8, !tbaa !32
  %41 = call zeroext i8 @DebugAssertEnabled() #3
  %42 = icmp eq i8 %41, 0
  %43 = icmp ne ptr %.021, null
  %or.cond = select i1 %42, i1 true, i1 %43
  br i1 %or.cond, label %45, label %44

44:                                               ; preds = %40
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1482, ptr noundef nonnull @.str.13) #3
  br label %45

45:                                               ; preds = %44, %40
  %46 = getelementptr inbounds i8, ptr %25, i64 8
  %47 = load i64, ptr %46, align 8, !tbaa !33
  %48 = add nsw i64 %47, 1
  store i64 %48, ptr %46, align 8, !tbaa !33
  %49 = call i64 @UdpIoSendDatagram(ptr noundef %.021, ptr noundef nonnull %25, ptr noundef nonnull %2, ptr noundef null, ptr noundef nonnull @DhcpOnPacketSent, ptr noundef nonnull %0) #3
  %50 = icmp slt i64 %49, 0
  br i1 %50, label %51, label %54

51:                                               ; preds = %45
  %52 = load i64, ptr %46, align 8, !tbaa !33
  %53 = add nsw i64 %52, -1
  store i64 %53, ptr %46, align 8, !tbaa !33
  br label %54

54:                                               ; preds = %45, %18, %51
  %.0 = phi i64 [ -9223372036854775793, %51 ], [ -9223372036854775799, %18 ], [ 0, %45 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #3
  ret i64 %.0
}

attributes #0 = { mustprogress 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, !11, i64 168}
!6 = !{!"_DHCP_SERVICE", !7, i64 0, !10, i64 8, !12, i64 24, !11, i64 32, !11, i64 40, !13, i64 48, !12, i64 64, !12, i64 72, !12, 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, !12, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !14, i64 176, !8, i64 208, !8, i64 209, !8, i64 210, !11, i64 232, !15, i64 240, !7, i64 312, !11, i64 320, !7, i64 328, !7, i64 332, !12, i64 336, !12, i64 344, !7, i64 352}
!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 = !{!"long long", !8, i64 0}
!13 = !{!"_LIST_ENTRY", !11, i64 0, !11, i64 8}
!14 = !{!"", !8, i64 0}
!15 = !{!"", !7, i64 0, !11, i64 8, !7, i64 16, !11, i64 24, !14, i64 32, !11, i64 40, !11, i64 48, !7, i64 56, !11, i64 64}
!16 = !{!6, !12, i64 72}
!17 = !{!6, !11, i64 232}
!18 = !{!19, !11, i64 8}
!19 = !{!"", !7, i64 0, !11, i64 8}
!20 = !{!21, !7, i64 4}
!21 = !{!"", !7, i64 0, !7, i64 4, !22, i64 8}
!22 = !{!"", !23, i64 0, !7, i64 236, !8, i64 240}
!23 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !7, i64 4, !24, i64 8, !24, i64 10, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !8, i64 28, !8, i64 44, !8, i64 108}
!24 = !{!"short", !8, i64 0}
!25 = !{!19, !7, i64 0}
!26 = !{!27, !24, i64 36}
!27 = !{!"", !8, i64 0, !24, i64 16, !8, i64 20, !24, i64 36}
!28 = !{!27, !24, i64 16}
!29 = !{!8, !8, i64 0}
!30 = !{!6, !7, i64 100}
!31 = !{!6, !7, i64 92}
!32 = !{!11, !11, i64 0}
!33 = !{!34, !12, i64 8}
!34 = !{!"", !7, i64 0, !12, i64 8, !13, i64 16, !8, i64 32, !11, i64 40, !11, i64 48, !8, i64 56, !11, i64 120, !7, i64 128, !7, i64 132, !8, i64 136}


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