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

; 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._PXEBC_PRIVATE_DATA = type { i32, ptr, ptr, %struct._PXEBC_PRIVATE_PROTOCOL, 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_PXE_BASE_CODE_PROTOCOL, %struct._EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL, ptr, ptr, %struct.EFI_PXE_BASE_CODE_MODE, i32, i32, i32, i64, %struct.EFI_UDP4_CONFIG_DATA, %struct.EFI_UDP6_CONFIG_DATA, %struct.EFI_IP4_CONFIG_DATA, %struct.EFI_IP6_CONFIG_DATA, ptr, ptr, %struct.EFI_IP4_COMPLETION_TOKEN, %struct.EFI_IP6_COMPLETION_TOKEN, i8, i8, i8, i8, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, i16, i32, i32, i32, ptr, i64, i64, %union.PXEBC_DHCP_PACKET_CACHE, %union.PXEBC_DHCP_PACKET_CACHE, %union.PXEBC_DHCP_PACKET_CACHE, ptr, %struct.EFI_DHCP4_PACKET, i32, i32, [16 x %union.PXEBC_DHCP_PACKET_CACHE], i32, [8 x i32], [8 x [16 x i32]] }
%struct._PXEBC_PRIVATE_PROTOCOL = type { i64 }
%struct._EFI_PXE_BASE_CODE_PROTOCOL = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL = type { i64, ptr }
%struct.EFI_PXE_BASE_CODE_MODE = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %struct.EFI_PXE_BASE_CODE_IP_FILTER, i32, [8 x %struct.EFI_PXE_BASE_CODE_ARP_ENTRY], i32, [8 x %struct.EFI_PXE_BASE_CODE_ROUTE_ENTRY], %struct.EFI_PXE_BASE_CODE_ICMP_ERROR, %struct.EFI_PXE_BASE_CODE_TFTP_ERROR }
%union.EFI_PXE_BASE_CODE_PACKET = type { %struct.EFI_PXE_BASE_CODE_DHCPV6_PACKET, [444 x i8] }
%struct.EFI_PXE_BASE_CODE_DHCPV6_PACKET = type { i32, [1024 x i8] }
%struct.EFI_PXE_BASE_CODE_IP_FILTER = type { i8, i8, i16, [8 x %union.EFI_IP_ADDRESS] }
%struct.EFI_PXE_BASE_CODE_ARP_ENTRY = type { %union.EFI_IP_ADDRESS, %struct.EFI_MAC_ADDRESS }
%struct.EFI_MAC_ADDRESS = type { [32 x i8] }
%struct.EFI_PXE_BASE_CODE_ROUTE_ENTRY = type { %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS }
%struct.EFI_PXE_BASE_CODE_ICMP_ERROR = type { i8, i8, i16, %union.anon, [494 x i8] }
%union.anon = type { i32 }
%struct.EFI_PXE_BASE_CODE_TFTP_ERROR = type { i8, [127 x i8] }
%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.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] }
%struct.EFI_IP4_CONFIG_DATA = type { i8, i8, i8, i8, i8, i8, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i8, i8, i8, i8, i32, i32 }
%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_IP4_COMPLETION_TOKEN = type { ptr, i64, %union.anon.0 }
%union.anon.0 = type { ptr }
%struct.EFI_IP6_COMPLETION_TOKEN = type { ptr, i64, %union.anon.1 }
%union.anon.1 = type { ptr }
%union.EFI_IP_ADDRESS = type { [4 x i32] }
%union.PXEBC_DHCP_PACKET_CACHE = type { %struct.PXEBC_DHCP4_PACKET_CACHE }
%struct.PXEBC_DHCP4_PACKET_CACHE = type { %union.PXEBC_DHCP4_PACKET, i32, [7 x ptr], %struct.PXEBC_VENDOR_OPTION }
%union.PXEBC_DHCP4_PACKET = type { [1472 x i8] }
%struct.PXEBC_VENDOR_OPTION = type { [8 x i32], %struct.EFI_IPv4_ADDRESS, i16, i16, i8, i8, i8, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i16, i16, i16, i16, ptr, i8, ptr, i8, ptr, i8, ptr, i8 }
%struct.EFI_DHCP4_PACKET = type <{ i32, i32, %struct.anon.2 }>
%struct.anon.2 = 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.PXEBC_DHCP6_PACKET_CACHE = type { %union.PXEBC_DHCP6_PACKET, i32, [4 x ptr] }
%union.PXEBC_DHCP6_PACKET = type { [1472 x i8] }

@.str.1 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.16 = 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

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

declare zeroext i8 @DebugAssertEnabled() #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @PxeBcCopyDhcp6Ack(ptr noundef, ptr noundef, i8 noundef zeroext) #2

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

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

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

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

12:                                               ; preds = %9
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %13, i32 0, i32 68
  %15 = load i32, ptr %14, align 4, !tbaa !9
  %16 = icmp ugt i32 %15, 0
  br i1 %16, label %18, label %17

17:                                               ; preds = %12
  call void @DebugAssert(ptr noundef @.str.1, i64 noundef 1113, ptr noundef @.str.13)
  br label %18

18:                                               ; preds = %17, %12
  br label %19

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

20:                                               ; preds = %19
  br label %21

21:                                               ; preds = %20
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %22, i32 0, i32 68
  %24 = load i32, ptr %23, align 4, !tbaa !9
  %25 = sub i32 %24, 1
  store i32 %25, ptr %7, align 4, !tbaa !30
  br label %26

26:                                               ; preds = %21
  %27 = call zeroext i8 @DebugAssertEnabled()
  %28 = icmp ne i8 %27, 0
  br i1 %28, label %29, label %34

29:                                               ; preds = %26
  %30 = load i32, ptr %7, align 4, !tbaa !30
  %31 = icmp ult i32 %30, 16
  br i1 %31, label %33, label %32

32:                                               ; preds = %29
  call void @DebugAssert(ptr noundef @.str.1, i64 noundef 1115, ptr noundef @.str.14)
  br label %33

33:                                               ; preds = %32, %29
  br label %34

34:                                               ; preds = %33, %26
  br label %35

35:                                               ; preds = %34
  br label %36

36:                                               ; preds = %35
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %37, i32 0, i32 70
  %39 = load i32, ptr %7, align 4, !tbaa !30
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds [16 x %union.PXEBC_DHCP_PACKET_CACHE], ptr %38, i64 0, i64 %40
  store ptr %41, ptr %3, align 8, !tbaa !5
  store i64 0, ptr %4, align 8, !tbaa !31
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.PXEBC_DHCP6_PACKET_CACHE, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 8, !tbaa !32
  %45 = icmp eq i32 %44, 3
  br i1 %45, label %46, label %53

46:                                               ; preds = %36
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = load i32, ptr %7, align 4, !tbaa !30
  %49 = call i64 @PxeBcRetryDhcp6Binl(ptr noundef %47, i32 noundef %48)
  %50 = icmp slt i64 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %46
  store i64 -9223372036854775792, ptr %4, align 8, !tbaa !31
  br label %52

52:                                               ; preds = %51, %46
  br label %220

53:                                               ; preds = %36
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.PXEBC_DHCP6_PACKET_CACHE, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !32
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %58, label %219

58:                                               ; preds = %53
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %59, i32 0, i32 50
  %61 = load i8, ptr %60, align 2, !tbaa !34
  %62 = icmp ne i8 %61, 0
  br i1 %62, label %63, label %203

63:                                               ; preds = %58
  store i32 0, ptr %6, align 4, !tbaa !30
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %64, i32 0, i32 49
  %66 = load i8, ptr %65, align 1, !tbaa !35
  %67 = icmp ne i8 %66, 0
  br i1 %67, label %68, label %148

68:                                               ; preds = %63
  br label %69

69:                                               ; preds = %68
  %70 = call zeroext i8 @DebugAssertEnabled()
  %71 = icmp ne i8 %70, 0
  br i1 %71, label %72, label %84

72:                                               ; preds = %69
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %73, i32 0, i32 72
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %75, i32 0, i32 69
  %77 = load i32, ptr %76, align 8, !tbaa !36
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds [8 x i32], ptr %74, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !30
  %81 = icmp ugt i32 %80, 0
  br i1 %81, label %83, label %82

82:                                               ; preds = %72
  call void @DebugAssert(ptr noundef @.str.1, i64 noundef 1138, ptr noundef @.str.15)
  br label %83

83:                                               ; preds = %82, %72
  br label %84

84:                                               ; preds = %83, %69
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  %87 = load ptr, ptr %2, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %87, i32 0, i32 69
  %89 = load i32, ptr %88, align 8, !tbaa !36
  %90 = icmp eq i32 %89, 6
  br i1 %90, label %91, label %137

91:                                               ; preds = %86
  store i32 0, ptr %8, align 4, !tbaa !30
  br label %92

92:                                               ; preds = %121, %91
  %93 = load i32, ptr %8, align 4, !tbaa !30
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %94, i32 0, i32 72
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %96, i32 0, i32 69
  %98 = load i32, ptr %97, align 8, !tbaa !36
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds [8 x i32], ptr %95, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !30
  %102 = icmp ult i32 %93, %101
  br i1 %102, label %103, label %124

103:                                              ; preds = %92
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %104, i32 0, i32 73
  %106 = load ptr, ptr %2, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %106, i32 0, i32 69
  %108 = load i32, ptr %107, align 8, !tbaa !36
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds [8 x [16 x i32]], ptr %105, i64 0, i64 %109
  %111 = load i32, ptr %8, align 4, !tbaa !30
  %112 = zext i32 %111 to i64
  %113 = getelementptr inbounds [16 x i32], ptr %110, i64 0, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !30
  store i32 %114, ptr %6, align 4, !tbaa !30
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = load i32, ptr %6, align 4, !tbaa !30
  %117 = call i64 @PxeBcRetryDhcp6Binl(ptr noundef %115, i32 noundef %116)
  %118 = icmp slt i64 %117, 0
  br i1 %118, label %120, label %119

119:                                              ; preds = %103
  br label %124

120:                                              ; preds = %103
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %8, align 4, !tbaa !30
  %123 = add i32 %122, 1
  store i32 %123, ptr %8, align 4, !tbaa !30
  br label %92, !llvm.loop !37

124:                                              ; preds = %119, %92
  %125 = load i32, ptr %8, align 4, !tbaa !30
  %126 = load ptr, ptr %2, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %126, i32 0, i32 72
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %128, i32 0, i32 69
  %130 = load i32, ptr %129, align 8, !tbaa !36
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds [8 x i32], ptr %127, i64 0, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !30
  %134 = icmp eq i32 %125, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %124
  store i64 -9223372036854775792, ptr %4, align 8, !tbaa !31
  br label %136

136:                                              ; preds = %135, %124
  br label %147

137:                                              ; preds = %86
  %138 = load ptr, ptr %2, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %138, i32 0, i32 73
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %140, i32 0, i32 69
  %142 = load i32, ptr %141, align 8, !tbaa !36
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds [8 x [16 x i32]], ptr %139, i64 0, i64 %143
  %145 = getelementptr inbounds [16 x i32], ptr %144, i64 0, i64 0
  %146 = load i32, ptr %145, align 4, !tbaa !30
  store i32 %146, ptr %6, align 4, !tbaa !30
  br label %147

147:                                              ; preds = %137, %136
  br label %191

148:                                              ; preds = %63
  store i64 -9223372036854775792, ptr %4, align 8, !tbaa !31
  store i32 0, ptr %8, align 4, !tbaa !30
  br label %149

149:                                              ; preds = %187, %148
  %150 = load i32, ptr %8, align 4, !tbaa !30
  %151 = load ptr, ptr %2, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %151, i32 0, i32 71
  %153 = load i32, ptr %152, align 8, !tbaa !39
  %154 = icmp ult i32 %150, %153
  br i1 %154, label %155, label %190

155:                                              ; preds = %149
  %156 = load ptr, ptr %2, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %156, i32 0, i32 70
  %158 = load i32, ptr %8, align 4, !tbaa !30
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds [16 x %union.PXEBC_DHCP_PACKET_CACHE], ptr %157, i64 0, i64 %159
  %161 = getelementptr inbounds %struct.PXEBC_DHCP6_PACKET_CACHE, ptr %160, i32 0, i32 1
  %162 = load i32, ptr %161, align 8, !tbaa !40
  store i32 %162, ptr %5, align 4, !tbaa !30
  %163 = load i32, ptr %5, align 4, !tbaa !30
  %164 = icmp eq i32 %163, 6
  br i1 %164, label %172, label %165

165:                                              ; preds = %155
  %166 = load i32, ptr %5, align 4, !tbaa !30
  %167 = icmp eq i32 %166, 4
  br i1 %167, label %172, label %168

168:                                              ; preds = %165
  %169 = load i32, ptr %5, align 4, !tbaa !30
  %170 = icmp eq i32 %169, 5
  br i1 %170, label %172, label %171

171:                                              ; preds = %168
  br label %187

172:                                              ; preds = %168, %165, %155
  %173 = load i32, ptr %5, align 4, !tbaa !30
  %174 = icmp eq i32 %173, 6
  br i1 %174, label %175, label %182

175:                                              ; preds = %172
  %176 = load ptr, ptr %2, align 8, !tbaa !5
  %177 = load i32, ptr %8, align 4, !tbaa !30
  %178 = call i64 @PxeBcRetryDhcp6Binl(ptr noundef %176, i32 noundef %177)
  %179 = icmp slt i64 %178, 0
  br i1 %179, label %180, label %181

180:                                              ; preds = %175
  br label %187

181:                                              ; preds = %175
  br label %182

182:                                              ; preds = %181, %172
  %183 = load i32, ptr %5, align 4, !tbaa !30
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %184, i32 0, i32 69
  store i32 %183, ptr %185, align 8, !tbaa !36
  %186 = load i32, ptr %8, align 4, !tbaa !30
  store i32 %186, ptr %6, align 4, !tbaa !30
  store i64 0, ptr %4, align 8, !tbaa !31
  br label %190

187:                                              ; preds = %180, %171
  %188 = load i32, ptr %8, align 4, !tbaa !30
  %189 = add i32 %188, 1
  store i32 %189, ptr %8, align 4, !tbaa !30
  br label %149, !llvm.loop !41

190:                                              ; preds = %182, %149
  br label %191

191:                                              ; preds = %190, %147
  %192 = load i64, ptr %4, align 8, !tbaa !31
  %193 = icmp slt i64 %192, 0
  br i1 %193, label %202, label %194

194:                                              ; preds = %191
  %195 = load ptr, ptr %2, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %195, i32 0, i32 69
  %197 = load i32, ptr %196, align 8, !tbaa !36
  %198 = icmp ne i32 %197, 6
  br i1 %198, label %199, label %202

199:                                              ; preds = %194
  %200 = load ptr, ptr %2, align 8, !tbaa !5
  %201 = load i32, ptr %6, align 4, !tbaa !30
  call void @PxeBcCopyDhcp6Proxy(ptr noundef %200, i32 noundef %201)
  br label %202

202:                                              ; preds = %199, %194, %191
  br label %218

203:                                              ; preds = %58
  br label %204

204:                                              ; preds = %203
  %205 = call zeroext i8 @DebugAssertEnabled()
  %206 = icmp ne i8 %205, 0
  br i1 %206, label %207, label %215

207:                                              ; preds = %204
  %208 = load ptr, ptr %3, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.PXEBC_DHCP6_PACKET_CACHE, ptr %208, i32 0, i32 2
  %210 = getelementptr inbounds [4 x ptr], ptr %209, i64 0, i64 1
  %211 = load ptr, ptr %210, align 8, !tbaa !5
  %212 = icmp ne ptr %211, null
  br i1 %212, label %214, label %213

213:                                              ; preds = %207
  call void @DebugAssert(ptr noundef @.str.1, i64 noundef 1203, ptr noundef @.str.16)
  br label %214

214:                                              ; preds = %213, %207
  br label %215

215:                                              ; preds = %214, %204
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216
  br label %218

218:                                              ; preds = %217, %202
  br label %219

219:                                              ; preds = %218, %53
  br label %220

220:                                              ; preds = %219, %52
  %221 = load i64, ptr %4, align 8, !tbaa !31
  %222 = icmp slt i64 %221, 0
  br i1 %222, label %233, label %223

223:                                              ; preds = %220
  %224 = load ptr, ptr %2, align 8, !tbaa !5
  %225 = load ptr, ptr %2, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %225, i32 0, i32 64
  %227 = getelementptr inbounds %struct.PXEBC_DHCP6_PACKET_CACHE, ptr %226, i32 0, i32 0
  call void @PxeBcCopyDhcp6Ack(ptr noundef %224, ptr noundef %227, i8 noundef zeroext 1)
  %228 = load ptr, ptr %2, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %228, i32 0, i32 31
  %230 = getelementptr inbounds %struct._EFI_PXE_BASE_CODE_PROTOCOL, ptr %229, i32 0, i32 13
  %231 = load ptr, ptr %230, align 8, !tbaa !42
  %232 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_MODE, ptr %231, i32 0, i32 8
  store i8 1, ptr %232, align 4, !tbaa !43
  br label %233

233:                                              ; preds = %223, %220
  %234 = load i64, ptr %4, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret i64 %234
}

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, !11, i64 16436}
!10 = !{!"_PXEBC_PRIVATE_DATA", !11, i64 0, !6, i64 8, !6, i64 16, !12, 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, !14, i64 248, !15, i64 360, !6, i64 376, !6, i64 384, !16, i64 392, !11, i64 10816, !11, i64 10820, !11, i64 10824, !13, i64 10832, !21, i64 10840, !23, i64 10876, !24, i64 10928, !25, i64 10956, !6, i64 11008, !6, i64 11016, !26, i64 11024, !26, i64 11048, !7, i64 11072, !7, i64 11073, !7, i64 11074, !7, i64 11075, !7, i64 11076, !7, i64 11092, !7, i64 11108, !7, i64 11124, !18, i64 11140, !11, i64 11144, !11, i64 11148, !11, i64 11152, !6, i64 11160, !13, i64 11168, !13, i64 11176, !7, i64 11184, !7, i64 12848, !7, i64 14512, !6, i64 16176, !27, i64 16184, !11, i64 16436, !11, i64 16440, !7, i64 16448, !11, i64 43072, !7, i64 43076, !7, i64 43108}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_PXEBC_PRIVATE_PROTOCOL", !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"_EFI_PXE_BASE_CODE_PROTOCOL", !13, i64 0, !6, i64 8, !6, i64 16, !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}
!15 = !{!"_EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL", !13, i64 0, !6, i64 8}
!16 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 20, !7, i64 36, !7, i64 52, !7, i64 1524, !7, i64 2996, !7, i64 4468, !7, i64 5940, !7, i64 7412, !17, i64 8884, !11, i64 9016, !7, i64 9020, !11, i64 9404, !7, i64 9408, !19, i64 9792, !20, i64 10296}
!17 = !{!"", !7, i64 0, !7, i64 1, !18, i64 2, !7, i64 4}
!18 = !{!"short", !7, i64 0}
!19 = !{!"", !7, i64 0, !7, i64 1, !18, i64 2, !7, i64 4, !7, i64 8}
!20 = !{!"", !7, i64 0, !7, i64 1}
!21 = !{!"", !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, !22, i64 17, !22, i64 21, !18, i64 26, !22, i64 28, !18, i64 32}
!22 = !{!"", !7, i64 0}
!23 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !11, i64 8, !11, i64 12, !22, i64 16, !18, i64 32, !22, i64 34, !18, i64 50}
!24 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !22, i64 6, !22, i64 10, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !11, i64 20, !11, i64 24}
!25 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !22, i64 4, !22, i64 20, !7, i64 36, !7, i64 37, !11, i64 40, !11, i64 44, !11, i64 48}
!26 = !{!"", !6, i64 0, !13, i64 8, !7, i64 16}
!27 = !{!"", !11, i64 0, !11, i64 4, !28, i64 8}
!28 = !{!"", !29, i64 0, !11, i64 236, !7, i64 240}
!29 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !11, i64 4, !18, i64 8, !18, i64 10, !22, i64 12, !22, i64 16, !22, i64 20, !22, i64 24, !7, i64 28, !7, i64 44, !7, i64 108}
!30 = !{!11, !11, i64 0}
!31 = !{!13, !13, i64 0}
!32 = !{!33, !11, i64 1472}
!33 = !{!"", !7, i64 0, !11, i64 1472, !7, i64 1480}
!34 = !{!10, !7, i64 11074}
!35 = !{!10, !7, i64 11073}
!36 = !{!10, !11, i64 16440}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!10, !11, i64 43072}
!40 = !{!7, !7, i64 0}
!41 = distinct !{!41, !38}
!42 = !{!10, !6, i64 352}
!43 = !{!16, !7, i64 8}


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

%union.PXEBC_DHCP_PACKET_CACHE = type { %struct.PXEBC_DHCP4_PACKET_CACHE }
%struct.PXEBC_DHCP4_PACKET_CACHE = type { %union.PXEBC_DHCP4_PACKET, i32, [7 x ptr], %struct.PXEBC_VENDOR_OPTION }
%union.PXEBC_DHCP4_PACKET = type { [1472 x i8] }
%struct.PXEBC_VENDOR_OPTION = type { [8 x i32], %struct.EFI_IPv4_ADDRESS, i16, i16, i8, i8, i8, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i16, i16, i16, i16, ptr, i8, ptr, i8, ptr, i8, ptr, i8 }
%struct.EFI_IPv4_ADDRESS = type { [4 x i8] }

@.str.1 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [35 x i8], align 1

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @PxeBcCopyDhcp6Ack(ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @PxeBcCopyDhcp6Proxy(ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775792, 1) i64 @PxeBcHandleDhcp6Offer(ptr noundef %0) local_unnamed_addr #1 {
  %2 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not = icmp eq i8 %2, 0
  br i1 %.not, label %7, label %3

3:                                                ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 16436
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %.not62 = icmp eq i32 %5, 0
  br i1 %.not62, label %6, label %7

6:                                                ; preds = %3
  tail call void @DebugAssert(ptr noundef nonnull @.str.1, i64 noundef 1113, ptr noundef nonnull @.str.13) #2
  br label %7

7:                                                ; preds = %3, %6, %1
  %8 = getelementptr inbounds i8, ptr %0, i64 16436
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = add i32 %9, -1
  %11 = tail call zeroext i8 @DebugAssertEnabled() #2
  %12 = icmp eq i8 %11, 0
  %13 = icmp ult i32 %10, 16
  %or.cond5 = select i1 %12, i1 true, i1 %13
  br i1 %or.cond5, label %15, label %14

14:                                               ; preds = %7
  tail call void @DebugAssert(ptr noundef nonnull @.str.1, i64 noundef 1115, ptr noundef nonnull @.str.14) #2
  br label %15

15:                                               ; preds = %14, %7
  %16 = getelementptr inbounds i8, ptr %0, i64 16448
  %17 = zext i32 %10 to i64
  %18 = getelementptr inbounds [16 x %union.PXEBC_DHCP_PACKET_CACHE], ptr %16, i64 0, i64 %17
  %19 = getelementptr inbounds i8, ptr %18, i64 1472
  %20 = load i32, ptr %19, align 8, !tbaa !29
  switch i32 %20, label %.thread79 [
    i32 3, label %21
    i32 0, label %24
  ]

21:                                               ; preds = %15
  %22 = tail call i64 @PxeBcRetryDhcp6Binl(ptr noundef nonnull %0, i32 noundef %10)
  %23 = icmp slt i64 %22, 0
  br i1 %23, label %.thread84, label %.thread79

24:                                               ; preds = %15
  %25 = getelementptr inbounds i8, ptr %0, i64 11074
  %26 = load i8, ptr %25, align 2, !tbaa !31
  %.not63 = icmp eq i8 %26, 0
  br i1 %.not63, label %83, label %27

27:                                               ; preds = %24
  %28 = getelementptr inbounds i8, ptr %0, i64 11073
  %29 = load i8, ptr %28, align 1, !tbaa !32
  %.not66 = icmp eq i8 %29, 0
  br i1 %.not66, label %.preheader, label %32

.preheader:                                       ; preds = %27
  %30 = getelementptr inbounds i8, ptr %0, i64 43072
  %31 = load i32, ptr %30, align 8, !tbaa !33
  %.not99 = icmp eq i32 %31, 0
  br i1 %.not99, label %.thread84, label %.lr.ph97

32:                                               ; preds = %27
  %33 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not67 = icmp eq i8 %33, 0
  br i1 %.not67, label %42, label %34

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %0, i64 43076
  %36 = getelementptr inbounds i8, ptr %0, i64 16440
  %37 = load i32, ptr %36, align 8, !tbaa !34
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds [8 x i32], ptr %35, i64 0, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !35
  %.not68 = icmp eq i32 %40, 0
  br i1 %.not68, label %41, label %42

41:                                               ; preds = %34
  tail call void @DebugAssert(ptr noundef nonnull @.str.1, i64 noundef 1138, ptr noundef nonnull @.str.15) #2
  br label %42

42:                                               ; preds = %34, %41, %32
  %43 = getelementptr inbounds i8, ptr %0, i64 16440
  %44 = load i32, ptr %43, align 8, !tbaa !34
  %45 = icmp eq i32 %44, 6
  %46 = getelementptr inbounds i8, ptr %0, i64 43108
  br i1 %45, label %.preheader86, label %.thread.thread

.preheader86:                                     ; preds = %42
  %47 = getelementptr inbounds i8, ptr %0, i64 43076
  %48 = getelementptr inbounds i8, ptr %0, i64 43100
  %49 = load i32, ptr %48, align 4, !tbaa !35
  %.not98 = icmp eq i32 %49, 0
  br i1 %.not98, label %.thread84, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader86, %55
  %indvars.iv = phi i64 [ %indvars.iv.next, %55 ], [ 0, %.preheader86 ]
  %50 = phi i64 [ %56, %55 ], [ 6, %.preheader86 ]
  %51 = getelementptr inbounds [8 x [16 x i32]], ptr %46, i64 0, i64 %50, i64 %indvars.iv
  %52 = load i32, ptr %51, align 4, !tbaa !35
  %53 = tail call i64 @PxeBcRetryDhcp6Binl(ptr noundef nonnull %0, i32 noundef %52)
  %54 = icmp slt i64 %53, 0
  %.pre.pre = load i32, ptr %43, align 8, !tbaa !34
  br i1 %54, label %55, label %.lr.ph.._crit_edge.loopexit_crit_edge

.lr.ph.._crit_edge.loopexit_crit_edge:            ; preds = %.lr.ph
  %.phi.trans.insert.phi.trans.insert = zext i32 %.pre.pre to i64
  %.phi.trans.insert108.phi.trans.insert = getelementptr inbounds [8 x i32], ptr %47, i64 0, i64 %.phi.trans.insert.phi.trans.insert
  %.pre109.pre = load i32, ptr %.phi.trans.insert108.phi.trans.insert, align 4, !tbaa !35
  br label %._crit_edge

55:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %56 = zext i32 %.pre.pre to i64
  %57 = getelementptr inbounds [8 x i32], ptr %47, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !35
  %59 = zext i32 %58 to i64
  %60 = icmp ult i64 %indvars.iv.next, %59
  br i1 %60, label %.lr.ph, label %._crit_edge, !llvm.loop !36

.thread.thread:                                   ; preds = %42
  %61 = zext i32 %44 to i64
  %62 = getelementptr inbounds [8 x [16 x i32]], ptr %46, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !35
  br label %82

.lr.ph97:                                         ; preds = %.preheader, %76
  %64 = phi i32 [ %77, %76 ], [ %31, %.preheader ]
  %indvars.iv104 = phi i64 [ %indvars.iv.next105, %76 ], [ 0, %.preheader ]
  %65 = getelementptr inbounds [16 x %union.PXEBC_DHCP_PACKET_CACHE], ptr %16, i64 0, i64 %indvars.iv104, i32 0, i32 1
  %66 = load i32, ptr %65, align 8, !tbaa !38
  %67 = add i32 %66, -4
  %or.cond3 = icmp ult i32 %67, 3
  br i1 %or.cond3, label %68, label %76

68:                                               ; preds = %.lr.ph97
  %69 = icmp eq i32 %66, 6
  %70 = trunc nuw i64 %indvars.iv104 to i32
  br i1 %69, label %71, label %74

71:                                               ; preds = %68
  %72 = tail call i64 @PxeBcRetryDhcp6Binl(ptr noundef nonnull %0, i32 noundef %70)
  %73 = icmp slt i64 %72, 0
  br i1 %73, label %._crit_edge110, label %74

._crit_edge110:                                   ; preds = %71
  %.pre111 = load i32, ptr %30, align 8, !tbaa !33
  br label %76

74:                                               ; preds = %71, %68
  %75 = getelementptr inbounds i8, ptr %0, i64 16440
  store i32 %66, ptr %75, align 8, !tbaa !34
  br label %.thread

76:                                               ; preds = %._crit_edge110, %.lr.ph97
  %77 = phi i32 [ %.pre111, %._crit_edge110 ], [ %64, %.lr.ph97 ]
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %78 = zext i32 %77 to i64
  %79 = icmp ult i64 %indvars.iv.next105, %78
  br i1 %79, label %.lr.ph97, label %.thread84, !llvm.loop !39

._crit_edge:                                      ; preds = %55, %.lr.ph.._crit_edge.loopexit_crit_edge
  %.pre109 = phi i32 [ %.pre109.pre, %.lr.ph.._crit_edge.loopexit_crit_edge ], [ %58, %55 ]
  %.0.lcssa.ph.in = phi i64 [ %indvars.iv, %.lr.ph.._crit_edge.loopexit_crit_edge ], [ %indvars.iv.next, %55 ]
  %.0.lcssa.ph = trunc i64 %.0.lcssa.ph.in to i32
  %80 = icmp eq i32 %.pre109, %.0.lcssa.ph
  br i1 %80, label %.thread84, label %.thread

.thread:                                          ; preds = %74, %._crit_edge
  %81 = phi i32 [ %.pre.pre, %._crit_edge ], [ %66, %74 ]
  %.274 = phi i32 [ %52, %._crit_edge ], [ %70, %74 ]
  %.not69 = icmp eq i32 %81, 6
  br i1 %.not69, label %.thread79, label %82

82:                                               ; preds = %.thread.thread, %.thread
  %.274117 = phi i32 [ %63, %.thread.thread ], [ %.274, %.thread ]
  tail call void @PxeBcCopyDhcp6Proxy(ptr noundef nonnull %0, i32 noundef %.274117)
  br label %.thread79

83:                                               ; preds = %24
  %84 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not64 = icmp eq i8 %84, 0
  br i1 %.not64, label %.thread79, label %85

85:                                               ; preds = %83
  %86 = getelementptr inbounds i8, ptr %18, i64 1488
  %87 = load ptr, ptr %86, align 8, !tbaa !40
  %.not65 = icmp eq ptr %87, null
  br i1 %.not65, label %88, label %.thread79

88:                                               ; preds = %85
  tail call void @DebugAssert(ptr noundef nonnull @.str.1, i64 noundef 1203, ptr noundef nonnull @.str.16) #2
  br label %.thread79

.thread79:                                        ; preds = %15, %21, %83, %88, %85, %.thread, %82
  %89 = getelementptr inbounds i8, ptr %0, i64 12848
  tail call void @PxeBcCopyDhcp6Ack(ptr noundef nonnull %0, ptr noundef nonnull %89, i8 noundef zeroext 1)
  %90 = getelementptr inbounds i8, ptr %0, i64 352
  %91 = load ptr, ptr %90, align 8, !tbaa !41
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  store i8 1, ptr %92, align 4, !tbaa !42
  br label %.thread84

.thread84:                                        ; preds = %76, %.preheader86, %.preheader, %._crit_edge, %21, %.thread79
  %.15782 = phi i64 [ 0, %.thread79 ], [ -9223372036854775792, %21 ], [ -9223372036854775792, %._crit_edge ], [ -9223372036854775792, %.preheader ], [ -9223372036854775792, %.preheader86 ], [ -9223372036854775792, %76 ]
  ret i64 %.15782
}

attributes #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 = { 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 = { 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 16436}
!6 = !{!"_PXEBC_PRIVATE_DATA", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !13, i64 248, !14, i64 360, !10, i64 376, !10, i64 384, !15, i64 392, !7, i64 10816, !7, i64 10820, !7, i64 10824, !12, i64 10832, !20, i64 10840, !22, i64 10876, !23, i64 10928, !24, i64 10956, !10, i64 11008, !10, i64 11016, !25, i64 11024, !25, i64 11048, !8, i64 11072, !8, i64 11073, !8, i64 11074, !8, i64 11075, !8, i64 11076, !8, i64 11092, !8, i64 11108, !8, i64 11124, !17, i64 11140, !7, i64 11144, !7, i64 11148, !7, i64 11152, !10, i64 11160, !12, i64 11168, !12, i64 11176, !8, i64 11184, !8, i64 12848, !8, i64 14512, !10, i64 16176, !26, i64 16184, !7, i64 16436, !7, i64 16440, !8, i64 16448, !7, i64 43072, !8, i64 43076, !8, i64 43108}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_PXEBC_PRIVATE_PROTOCOL", !12, i64 0}
!12 = !{!"long long", !8, i64 0}
!13 = !{!"_EFI_PXE_BASE_CODE_PROTOCOL", !12, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104}
!14 = !{!"_EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL", !12, i64 0, !10, i64 8}
!15 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !8, i64 4, !8, i64 5, !8, i64 6, !8, i64 7, !8, i64 8, !8, i64 9, !8, i64 10, !8, i64 11, !8, i64 12, !8, i64 13, !8, i64 14, !8, i64 15, !8, i64 16, !8, i64 17, !8, i64 18, !8, i64 20, !8, i64 36, !8, i64 52, !8, i64 1524, !8, i64 2996, !8, i64 4468, !8, i64 5940, !8, i64 7412, !16, i64 8884, !7, i64 9016, !8, i64 9020, !7, i64 9404, !8, i64 9408, !18, i64 9792, !19, i64 10296}
!16 = !{!"", !8, i64 0, !8, i64 1, !17, i64 2, !8, i64 4}
!17 = !{!"short", !8, i64 0}
!18 = !{!"", !8, i64 0, !8, i64 1, !17, i64 2, !8, i64 4, !8, i64 8}
!19 = !{!"", !8, i64 0, !8, i64 1}
!20 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !8, i64 4, !8, i64 5, !8, i64 6, !7, i64 8, !7, i64 12, !8, i64 16, !21, i64 17, !21, i64 21, !17, i64 26, !21, i64 28, !17, i64 32}
!21 = !{!"", !8, i64 0}
!22 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !8, i64 4, !7, i64 8, !7, i64 12, !21, i64 16, !17, i64 32, !21, i64 34, !17, i64 50}
!23 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !8, i64 4, !8, i64 5, !21, i64 6, !21, i64 10, !8, i64 14, !8, i64 15, !8, i64 16, !8, i64 17, !7, i64 20, !7, i64 24}
!24 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !21, i64 4, !21, i64 20, !8, i64 36, !8, i64 37, !7, i64 40, !7, i64 44, !7, i64 48}
!25 = !{!"", !10, i64 0, !12, i64 8, !8, i64 16}
!26 = !{!"", !7, i64 0, !7, i64 4, !27, i64 8}
!27 = !{!"", !28, i64 0, !7, i64 236, !8, i64 240}
!28 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !7, i64 4, !17, i64 8, !17, i64 10, !21, i64 12, !21, i64 16, !21, i64 20, !21, i64 24, !8, i64 28, !8, i64 44, !8, i64 108}
!29 = !{!30, !7, i64 1472}
!30 = !{!"", !8, i64 0, !7, i64 1472, !8, i64 1480}
!31 = !{!6, !8, i64 11074}
!32 = !{!6, !8, i64 11073}
!33 = !{!6, !7, i64 43072}
!34 = !{!6, !7, i64 16440}
!35 = !{!7, !7, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!8, !8, i64 0}
!39 = distinct !{!39, !37}
!40 = !{!10, !10, i64 0}
!41 = !{!6, !10, i64 352}
!42 = !{!15, !8, i64 8}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass