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

; 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_IPv4_ADDRESS = type { [4 x i8] }
%struct._PXEBC_PRIVATE_DATA = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct._EFI_PXE_BASE_CODE_PROTOCOL, %struct._EFI_LOAD_FILE_PROTOCOL, %struct._EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL, ptr, ptr, ptr, ptr, %struct.EFI_IP4_CONFIG_DATA, ptr, ptr, ptr, i16, %struct.EFI_UDP4_CONFIG_DATA, %struct.EFI_PXE_BASE_CODE_MODE, i32, ptr, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, i8, i32, i64, i64, [312 x i8], %struct.EFI_DHCP4_PACKET, %struct.EFI_MAC_ADDRESS, i8, i8, i8, i32, i32, i32, %struct.PXEBC_CACHED_DHCP4_PACKET, %struct.PXEBC_CACHED_DHCP4_PACKET, %struct.PXEBC_CACHED_DHCP4_PACKET, [16 x %struct.PXEBC_CACHED_DHCP4_PACKET], [5 x i32], [5 x [16 x i32]], i32, [5 x i32], [16 x i32], ptr, %struct.EFI_IP4_COMPLETION_TOKEN }
%struct._EFI_PXE_BASE_CODE_PROTOCOL = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._EFI_LOAD_FILE_PROTOCOL = type { ptr }
%struct._EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL = type { i64, ptr }
%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_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_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_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] }
%union.EFI_IP_ADDRESS = type { [4 x i32] }
%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.EFI_MAC_ADDRESS = type { [32 x i8] }
%struct.PXEBC_CACHED_DHCP4_PACKET = type { %union.PXEBC_DHCP4_PACKET, i8, i8, [7 x ptr], %struct.PXEBC_VENDOR_OPTION }
%union.PXEBC_DHCP4_PACKET = type { [1480 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_IP4_COMPLETION_TOKEN = type { ptr, i64, %union.anon.1 }
%union.anon.1 = type { ptr }

@.str = external hidden unnamed_addr constant [157 x i8], align 1
@mZeroIp4Addr = external global %struct.EFI_IPv4_ADDRESS, align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 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 ptr @CopyMem(ptr noundef, ptr noundef, i64 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 @PxeBcCopyEfiDhcp4Packet(ptr noundef, ptr noundef) #2

declare zeroext i8 @DebugAssertEnabled() #1

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @PxeBcCheckSelectedOffer(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  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 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  br label %11

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

14:                                               ; preds = %11
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %15, i32 0, i32 41
  %17 = load i32, ptr %16, align 8, !tbaa !9
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %20, label %19

19:                                               ; preds = %14
  call void @DebugAssert(ptr noundef @.str, i64 noundef 428, ptr noundef @.str.7)
  br label %20

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

21:                                               ; preds = %20, %11
  br label %22

22:                                               ; preds = %21
  br label %23

23:                                               ; preds = %22
  store i64 0, ptr %8, align 8, !tbaa !30
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %24, i32 0, i32 46
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %26, i32 0, i32 41
  %28 = load i32, ptr %27, align 8, !tbaa !9
  %29 = sub i32 %28, 1
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds [16 x %struct.PXEBC_CACHED_DHCP4_PACKET], ptr %25, i64 0, i64 %30
  store ptr %31, ptr %3, align 8, !tbaa !5
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.PXEBC_CACHED_DHCP4_PACKET, ptr %32, i32 0, i32 3
  %34 = getelementptr inbounds [7 x ptr], ptr %33, i64 0, i64 0
  store ptr %34, ptr %4, align 8, !tbaa !5
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.PXEBC_CACHED_DHCP4_PACKET, ptr %35, i32 0, i32 2
  %37 = load i8, ptr %36, align 1, !tbaa !31
  %38 = zext i8 %37 to i32
  %39 = icmp eq i32 %38, 2
  br i1 %39, label %40, label %50

40:                                               ; preds = %23
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %42, i32 0, i32 41
  %44 = load i32, ptr %43, align 8, !tbaa !9
  %45 = sub i32 %44, 1
  %46 = call zeroext i8 @PxeBcTryBinl(ptr noundef %41, i32 noundef %45)
  %47 = icmp ne i8 %46, 0
  br i1 %47, label %49, label %48

48:                                               ; preds = %40
  store i64 -9223372036854775792, ptr %8, align 8, !tbaa !30
  br label %49

49:                                               ; preds = %48, %40
  br label %201

50:                                               ; preds = %23
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.PXEBC_CACHED_DHCP4_PACKET, ptr %51, i32 0, i32 2
  %53 = load i8, ptr %52, align 1, !tbaa !31
  %54 = zext i8 %53 to i32
  %55 = icmp eq i32 %54, 3
  br i1 %55, label %56, label %200

56:                                               ; preds = %50
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %57, i32 0, i32 39
  %59 = load i8, ptr %58, align 1, !tbaa !32
  %60 = icmp ne i8 %59, 0
  br i1 %60, label %61, label %185

61:                                               ; preds = %56
  store i32 0, ptr %7, align 4, !tbaa !33
  %62 = load ptr, ptr %2, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %62, i32 0, i32 38
  %64 = load i8, ptr %63, align 2, !tbaa !34
  %65 = icmp ne i8 %64, 0
  br i1 %65, label %66, label %106

66:                                               ; preds = %61
  br label %67

67:                                               ; preds = %66
  %68 = call zeroext i8 @DebugAssertEnabled()
  %69 = icmp ne i8 %68, 0
  br i1 %69, label %70, label %82

70:                                               ; preds = %67
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %71, i32 0, i32 50
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %73, i32 0, i32 42
  %75 = load i32, ptr %74, align 4, !tbaa !35
  %76 = zext i32 %75 to i64
  %77 = getelementptr inbounds [5 x i32], ptr %72, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !33
  %79 = icmp ugt i32 %78, 0
  br i1 %79, label %81, label %80

80:                                               ; preds = %70
  call void @DebugAssert(ptr noundef @.str, i64 noundef 458, ptr noundef @.str.8)
  br label %81

81:                                               ; preds = %80, %70
  br label %82

82:                                               ; preds = %81, %67
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  %85 = load ptr, ptr %2, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %85, i32 0, i32 42
  %87 = load i32, ptr %86, align 4, !tbaa !35
  %88 = icmp eq i32 %87, 2
  br i1 %88, label %89, label %95

89:                                               ; preds = %84
  %90 = load ptr, ptr %2, align 8, !tbaa !5
  %91 = call zeroext i8 @PxeBcTryBinlProxy(ptr noundef %90, ptr noundef %7)
  %92 = icmp ne i8 %91, 0
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  store i64 -9223372036854775792, ptr %8, align 8, !tbaa !30
  br label %94

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

95:                                               ; preds = %84
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %96, i32 0, i32 50
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %98, i32 0, i32 42
  %100 = load i32, ptr %99, align 4, !tbaa !35
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds [5 x i32], ptr %97, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !33
  %104 = sub i32 %103, 1
  store i32 %104, ptr %7, align 4, !tbaa !33
  br label %105

105:                                              ; preds = %95, %94
  br label %173

106:                                              ; preds = %61
  store i64 -9223372036854775792, ptr %8, align 8, !tbaa !30
  br label %107

107:                                              ; preds = %106
  %108 = call zeroext i8 @DebugAssertEnabled()
  %109 = icmp ne i8 %108, 0
  br i1 %109, label %110, label %117

110:                                              ; preds = %107
  %111 = load ptr, ptr %2, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %111, i32 0, i32 40
  %113 = load i32, ptr %112, align 4, !tbaa !36
  %114 = icmp ult i32 %113, 16
  br i1 %114, label %116, label %115

115:                                              ; preds = %110
  call void @DebugAssert(ptr noundef @.str, i64 noundef 480, ptr noundef @.str.9)
  br label %116

116:                                              ; preds = %115, %110
  br label %117

117:                                              ; preds = %116, %107
  br label %118

118:                                              ; preds = %117
  br label %119

119:                                              ; preds = %118
  store i32 0, ptr %5, align 4, !tbaa !33
  br label %120

120:                                              ; preds = %169, %119
  %121 = load i32, ptr %5, align 4, !tbaa !33
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %122, i32 0, i32 40
  %124 = load i32, ptr %123, align 4, !tbaa !36
  %125 = icmp ult i32 %121, %124
  br i1 %125, label %126, label %172

126:                                              ; preds = %120
  %127 = load ptr, ptr %2, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %127, i32 0, i32 46
  %129 = load i32, ptr %5, align 4, !tbaa !33
  %130 = zext i32 %129 to i64
  %131 = getelementptr inbounds [16 x %struct.PXEBC_CACHED_DHCP4_PACKET], ptr %128, i64 0, i64 %130
  %132 = getelementptr inbounds %struct.PXEBC_CACHED_DHCP4_PACKET, ptr %131, i32 0, i32 0
  store ptr %132, ptr %6, align 8, !tbaa !5
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.EFI_DHCP4_PACKET, ptr %133, i32 0, i32 2
  %135 = getelementptr inbounds %struct.anon, ptr %134, i32 0, i32 0
  %136 = getelementptr inbounds %struct.EFI_DHCP4_HEADER, ptr %135, i32 0, i32 8
  %137 = call i64 @CompareMem(ptr noundef %136, ptr noundef @mZeroIp4Addr, i64 noundef 4)
  %138 = icmp eq i64 %137, 0
  br i1 %138, label %140, label %139

139:                                              ; preds = %126
  br label %169

140:                                              ; preds = %126
  %141 = load ptr, ptr %2, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %141, i32 0, i32 46
  %143 = load i32, ptr %5, align 4, !tbaa !33
  %144 = zext i32 %143 to i64
  %145 = getelementptr inbounds [16 x %struct.PXEBC_CACHED_DHCP4_PACKET], ptr %142, i64 0, i64 %144
  %146 = getelementptr inbounds %struct.PXEBC_CACHED_DHCP4_PACKET, ptr %145, i32 0, i32 2
  %147 = load i8, ptr %146, align 1, !tbaa !31
  %148 = zext i8 %147 to i32
  %149 = icmp eq i32 %148, 2
  br i1 %149, label %150, label %157

150:                                              ; preds = %140
  %151 = load ptr, ptr %2, align 8, !tbaa !5
  %152 = load i32, ptr %5, align 4, !tbaa !33
  %153 = call zeroext i8 @PxeBcTryBinl(ptr noundef %151, i32 noundef %152)
  %154 = icmp ne i8 %153, 0
  br i1 %154, label %156, label %155

155:                                              ; preds = %150
  br label %169

156:                                              ; preds = %150
  br label %157

157:                                              ; preds = %156, %140
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %158, i32 0, i32 46
  %160 = load i32, ptr %5, align 4, !tbaa !33
  %161 = zext i32 %160 to i64
  %162 = getelementptr inbounds [16 x %struct.PXEBC_CACHED_DHCP4_PACKET], ptr %159, i64 0, i64 %161
  %163 = getelementptr inbounds %struct.PXEBC_CACHED_DHCP4_PACKET, ptr %162, i32 0, i32 2
  %164 = load i8, ptr %163, align 1, !tbaa !31
  %165 = zext i8 %164 to i32
  %166 = load ptr, ptr %2, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %166, i32 0, i32 42
  store i32 %165, ptr %167, align 4, !tbaa !35
  %168 = load i32, ptr %5, align 4, !tbaa !33
  store i32 %168, ptr %7, align 4, !tbaa !33
  store i64 0, ptr %8, align 8, !tbaa !30
  br label %172

169:                                              ; preds = %155, %139
  %170 = load i32, ptr %5, align 4, !tbaa !33
  %171 = add i32 %170, 1
  store i32 %171, ptr %5, align 4, !tbaa !33
  br label %120, !llvm.loop !37

172:                                              ; preds = %157, %120
  br label %173

173:                                              ; preds = %172, %105
  %174 = load i64, ptr %8, align 8, !tbaa !30
  %175 = icmp slt i64 %174, 0
  br i1 %175, label %184, label %176

176:                                              ; preds = %173
  %177 = load ptr, ptr %2, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %177, i32 0, i32 42
  %179 = load i32, ptr %178, align 4, !tbaa !35
  %180 = icmp ne i32 %179, 2
  br i1 %180, label %181, label %184

181:                                              ; preds = %176
  %182 = load ptr, ptr %2, align 8, !tbaa !5
  %183 = load i32, ptr %7, align 4, !tbaa !33
  call void @PxeBcCopyProxyOffer(ptr noundef %182, i32 noundef %183)
  br label %184

184:                                              ; preds = %181, %176, %173
  br label %199

185:                                              ; preds = %56
  br label %186

186:                                              ; preds = %185
  %187 = call zeroext i8 @DebugAssertEnabled()
  %188 = icmp ne i8 %187, 0
  br i1 %188, label %189, label %196

189:                                              ; preds = %186
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds ptr, ptr %190, i64 6
  %192 = load ptr, ptr %191, align 8, !tbaa !5
  %193 = icmp ne ptr %192, null
  br i1 %193, label %195, label %194

194:                                              ; preds = %189
  call void @DebugAssert(ptr noundef @.str, i64 noundef 520, ptr noundef @.str.10)
  br label %195

195:                                              ; preds = %194, %189
  br label %196

196:                                              ; preds = %195, %186
  br label %197

197:                                              ; preds = %196
  br label %198

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198, %184
  br label %200

200:                                              ; preds = %199, %50
  br label %201

201:                                              ; preds = %200, %49
  %202 = load i64, ptr %8, align 8, !tbaa !30
  %203 = icmp slt i64 %202, 0
  br i1 %203, label %241, label %204

204:                                              ; preds = %201
  %205 = load ptr, ptr %2, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %205, i32 0, i32 10
  %207 = getelementptr inbounds %struct._EFI_PXE_BASE_CODE_PROTOCOL, ptr %206, i32 0, i32 13
  %208 = load ptr, ptr %207, align 8, !tbaa !39
  store ptr %208, ptr %9, align 8, !tbaa !5
  %209 = load ptr, ptr %3, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.PXEBC_CACHED_DHCP4_PACKET, ptr %209, i32 0, i32 0
  store ptr %210, ptr %6, align 8, !tbaa !5
  %211 = load ptr, ptr %9, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_MODE, ptr %211, i32 0, i32 8
  store i8 1, ptr %212, align 4, !tbaa !40
  %213 = load ptr, ptr %2, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %213, i32 0, i32 44
  %215 = getelementptr inbounds %struct.PXEBC_CACHED_DHCP4_PACKET, ptr %214, i32 0, i32 0
  store ptr %215, ptr %10, align 8, !tbaa !5
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.PXEBC_CACHED_DHCP4_PACKET, ptr %216, i32 0, i32 2
  %218 = load i8, ptr %217, align 1, !tbaa !31
  %219 = zext i8 %218 to i32
  %220 = icmp eq i32 %219, 4
  br i1 %220, label %221, label %226

221:                                              ; preds = %204
  %222 = load ptr, ptr %2, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %222, i32 0, i32 44
  %224 = getelementptr inbounds %struct.PXEBC_CACHED_DHCP4_PACKET, ptr %223, i32 0, i32 0
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  call void @PxeBcCopyEfiDhcp4Packet(ptr noundef %224, ptr noundef %225)
  br label %226

226:                                              ; preds = %221, %204
  %227 = load ptr, ptr %2, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %227, i32 0, i32 44
  %229 = call zeroext i8 @PxeBcParseCachedDhcpPacket(ptr noundef %228)
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_MODE, ptr %230, i32 0, i32 9
  store i8 1, ptr %231, align 1, !tbaa !41
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_MODE, ptr %232, i32 0, i32 22
  %234 = load ptr, ptr %10, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.EFI_DHCP4_PACKET, ptr %234, i32 0, i32 2
  %236 = load ptr, ptr %10, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.EFI_DHCP4_PACKET, ptr %236, i32 0, i32 1
  %238 = load i32, ptr %237, align 1, !tbaa !42
  %239 = zext i32 %238 to i64
  %240 = call ptr @CopyMem(ptr noundef %233, ptr noundef %235, i64 noundef %239)
  br label %241

241:                                              ; preds = %226, %201
  %242 = load i64, ptr %8, align 8, !tbaa !30
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, 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 %242
}

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 11472}
!10 = !{!"_PXEBC_PRIVATE_DATA", !11, 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, !12, i64 80, !14, i64 192, !15, i64 200, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !16, i64 248, !6, i64 280, !6, i64 288, !6, i64 296, !18, i64 304, !19, i64 308, !20, i64 344, !11, i64 10768, !6, i64 10776, !7, i64 10784, !7, i64 10800, !7, i64 10816, !7, i64 10832, !7, i64 10848, !11, i64 10852, !13, i64 10856, !13, i64 10864, !7, i64 10872, !24, i64 11184, !17, i64 11433, !7, i64 11465, !7, i64 11466, !7, i64 11467, !11, i64 11468, !11, i64 11472, !11, i64 11476, !27, i64 11480, !27, i64 13152, !27, i64 14824, !7, i64 16496, !7, i64 43248, !7, i64 43268, !11, i64 43588, !7, i64 43592, !7, i64 43612, !6, i64 43680, !29, i64 43688}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_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}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"_EFI_LOAD_FILE_PROTOCOL", !6, i64 0}
!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, !17, i64 6, !17, i64 10, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !11, i64 20, !11, i64 24}
!17 = !{!"", !7, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{!"", !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}
!20 = !{!"", !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, !21, i64 8884, !11, i64 9016, !7, i64 9020, !11, i64 9404, !7, i64 9408, !22, i64 9792, !23, i64 10296}
!21 = !{!"", !7, i64 0, !7, i64 1, !18, i64 2, !7, i64 4}
!22 = !{!"", !7, i64 0, !7, i64 1, !18, i64 2, !7, i64 4, !7, i64 8}
!23 = !{!"", !7, i64 0, !7, i64 1}
!24 = !{!"", !11, i64 0, !11, i64 4, !25, i64 8}
!25 = !{!"", !26, i64 0, !11, i64 236, !7, i64 240}
!26 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !11, i64 4, !18, i64 8, !18, i64 10, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !7, i64 28, !7, i64 44, !7, i64 108}
!27 = !{!"", !7, i64 0, !7, i64 1480, !7, i64 1481, !7, i64 1488, !28, i64 1544}
!28 = !{!"", !7, i64 0, !17, i64 32, !18, i64 36, !18, i64 38, !7, i64 40, !7, i64 41, !7, i64 42, !17, i64 43, !17, i64 47, !18, i64 52, !18, i64 54, !18, i64 56, !18, i64 58, !6, i64 64, !7, i64 72, !6, i64 80, !7, i64 88, !6, i64 96, !7, i64 104, !6, i64 112, !7, i64 120}
!29 = !{!"", !6, i64 0, !13, i64 8, !7, i64 16}
!30 = !{!13, !13, i64 0}
!31 = !{!27, !7, i64 1481}
!32 = !{!10, !7, i64 11467}
!33 = !{!11, !11, i64 0}
!34 = !{!10, !7, i64 11466}
!35 = !{!10, !11, i64 11476}
!36 = !{!10, !11, i64 11468}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!10, !6, i64 184}
!40 = !{!20, !7, i64 8}
!41 = !{!20, !7, i64 9}
!42 = !{!24, !11, i64 4}


; 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_IPv4_ADDRESS = type { [4 x i8] }
%struct.PXEBC_CACHED_DHCP4_PACKET = type { %union.PXEBC_DHCP4_PACKET, i8, i8, [7 x ptr], %struct.PXEBC_VENDOR_OPTION }
%union.PXEBC_DHCP4_PACKET = type { [1480 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 }

@.str = external hidden unnamed_addr constant [157 x i8], align 1
@mZeroIp4Addr = external global %struct.EFI_IPv4_ADDRESS, align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 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 ptr @CopyMem(ptr noundef, ptr noundef, i64 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 @PxeBcCopyEfiDhcp4Packet(ptr noundef, ptr noundef) local_unnamed_addr #2

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @PxeBcParseCachedDhcpPacket(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @PxeBcTryBinl(ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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

7:                                                ; preds = %4
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 428, ptr noundef nonnull @.str.7) #3
  br label %8

8:                                                ; preds = %4, %7, %1
  %9 = getelementptr inbounds i8, ptr %0, i64 16496
  %10 = getelementptr inbounds i8, ptr %0, i64 11472
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = add i32 %11, -1
  %13 = zext i32 %12 to i64
  %14 = getelementptr inbounds [16 x %struct.PXEBC_CACHED_DHCP4_PACKET], ptr %9, i64 0, i64 %13
  %15 = getelementptr inbounds i8, ptr %14, i64 1481
  %16 = load i8, ptr %15, align 1, !tbaa !29
  switch i8 %16, label %.thread69 [
    i8 2, label %17
    i8 3, label %19
  ]

17:                                               ; preds = %8
  %18 = tail call zeroext i8 @PxeBcTryBinl(ptr noundef nonnull %0, i32 noundef %12)
  %.not62 = icmp eq i8 %18, 0
  br i1 %.not62, label %.thread74, label %.thread69thread-pre-split

19:                                               ; preds = %8
  %20 = getelementptr inbounds i8, ptr %0, i64 11467
  %21 = load i8, ptr %20, align 1, !tbaa !30
  %.not52 = icmp eq i8 %21, 0
  br i1 %.not52, label %77, label %22

22:                                               ; preds = %19
  store i32 0, ptr %2, align 4, !tbaa !31
  %23 = getelementptr inbounds i8, ptr %0, i64 11466
  %24 = load i8, ptr %23, align 2, !tbaa !32
  %.not55 = icmp eq i8 %24, 0
  %25 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not56 = icmp eq i8 %25, 0
  br i1 %.not55, label %44, label %26

26:                                               ; preds = %22
  br i1 %.not56, label %35, label %27

27:                                               ; preds = %26
  %28 = getelementptr inbounds i8, ptr %0, i64 43592
  %29 = getelementptr inbounds i8, ptr %0, i64 11476
  %30 = load i32, ptr %29, align 4, !tbaa !33
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [5 x i32], ptr %28, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !31
  %.not59 = icmp eq i32 %33, 0
  br i1 %.not59, label %34, label %35

34:                                               ; preds = %27
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 458, ptr noundef nonnull @.str.8) #3
  br label %35

35:                                               ; preds = %27, %34, %26
  %36 = getelementptr inbounds i8, ptr %0, i64 11476
  %37 = load i32, ptr %36, align 4, !tbaa !33
  %38 = icmp eq i32 %37, 2
  br i1 %38, label %72, label %.thread.thread

.thread.thread:                                   ; preds = %35
  %39 = getelementptr inbounds i8, ptr %0, i64 43592
  %40 = zext i32 %37 to i64
  %41 = getelementptr inbounds [5 x i32], ptr %39, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !31
  %43 = add i32 %42, -1
  store i32 %43, ptr %2, align 4, !tbaa !31
  br label %75

44:                                               ; preds = %22
  br i1 %.not56, label %50, label %45

45:                                               ; preds = %44
  %46 = getelementptr inbounds i8, ptr %0, i64 11468
  %47 = load i32, ptr %46, align 4, !tbaa !34
  %48 = icmp ult i32 %47, 16
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 480, ptr noundef nonnull @.str.9) #3
  br label %50

50:                                               ; preds = %45, %49, %44
  %51 = getelementptr inbounds i8, ptr %0, i64 11468
  %52 = load i32, ptr %51, align 4, !tbaa !34
  %.not79 = icmp eq i32 %52, 0
  br i1 %.not79, label %.thread74, label %.lr.ph

.lr.ph:                                           ; preds = %50, %68
  %indvars.iv = phi i64 [ %indvars.iv.next, %68 ], [ 0, %50 ]
  %53 = getelementptr inbounds [16 x %struct.PXEBC_CACHED_DHCP4_PACKET], ptr %9, i64 0, i64 %indvars.iv
  %54 = getelementptr inbounds i8, ptr %53, i64 24
  %55 = tail call i64 @CompareMem(ptr noundef nonnull %54, ptr noundef nonnull @mZeroIp4Addr, i64 noundef 4) #3
  %56 = icmp eq i64 %55, 0
  br i1 %56, label %57, label %68

57:                                               ; preds = %.lr.ph
  %58 = getelementptr inbounds i8, ptr %53, i64 1481
  %59 = load i8, ptr %58, align 1, !tbaa !29
  %60 = icmp eq i8 %59, 2
  %61 = trunc nuw i64 %indvars.iv to i32
  br i1 %60, label %62, label %split

62:                                               ; preds = %57
  %63 = tail call zeroext i8 @PxeBcTryBinl(ptr noundef nonnull %0, i32 noundef %61)
  %.not57 = icmp eq i8 %63, 0
  br i1 %.not57, label %68, label %._crit_edge

._crit_edge:                                      ; preds = %62
  %64 = getelementptr inbounds i8, ptr %53, i64 1481
  %.pre = load i8, ptr %64, align 1, !tbaa !29
  br label %split

split:                                            ; preds = %57, %._crit_edge
  %65 = phi i8 [ %.pre, %._crit_edge ], [ %59, %57 ]
  %66 = zext i8 %65 to i32
  %67 = getelementptr inbounds i8, ptr %0, i64 11476
  store i32 %66, ptr %67, align 4, !tbaa !33
  store i32 %61, ptr %2, align 4, !tbaa !31
  br label %.thread

68:                                               ; preds = %62, %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %69 = load i32, ptr %51, align 4, !tbaa !34
  %70 = zext i32 %69 to i64
  %71 = icmp ult i64 %indvars.iv.next, %70
  br i1 %71, label %.lr.ph, label %.thread74, !llvm.loop !35

72:                                               ; preds = %35
  %73 = call zeroext i8 @PxeBcTryBinlProxy(ptr noundef nonnull %0, ptr noundef nonnull %2)
  %.not60 = icmp eq i8 %73, 0
  br i1 %.not60, label %.thread74, label %..thread_crit_edge

..thread_crit_edge:                               ; preds = %72
  %.pre83 = load i32, ptr %36, align 4, !tbaa !33
  br label %.thread

.thread:                                          ; preds = %..thread_crit_edge, %split
  %74 = phi i32 [ %.pre83, %..thread_crit_edge ], [ %66, %split ]
  %.not61 = icmp eq i32 %74, 2
  br i1 %.not61, label %.thread69thread-pre-split, label %75

75:                                               ; preds = %.thread.thread, %.thread
  %76 = load i32, ptr %2, align 4, !tbaa !31
  call void @PxeBcCopyProxyOffer(ptr noundef nonnull %0, i32 noundef %76)
  br label %.thread69thread-pre-split

77:                                               ; preds = %19
  %78 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not53 = icmp eq i8 %78, 0
  br i1 %.not53, label %.thread69thread-pre-split, label %79

79:                                               ; preds = %77
  %80 = getelementptr inbounds i8, ptr %14, i64 1536
  %81 = load ptr, ptr %80, align 8, !tbaa !37
  %.not54 = icmp eq ptr %81, null
  br i1 %.not54, label %82, label %.thread69thread-pre-split

82:                                               ; preds = %79
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 520, ptr noundef nonnull @.str.10) #3
  br label %.thread69thread-pre-split

.thread69thread-pre-split:                        ; preds = %75, %.thread, %79, %82, %77, %17
  %.pr = load i8, ptr %15, align 1, !tbaa !29
  br label %.thread69

.thread69:                                        ; preds = %.thread69thread-pre-split, %8
  %83 = phi i8 [ %.pr, %.thread69thread-pre-split ], [ %16, %8 ]
  %84 = getelementptr inbounds i8, ptr %0, i64 184
  %85 = load ptr, ptr %84, align 8, !tbaa !38
  %86 = getelementptr inbounds i8, ptr %85, i64 8
  store i8 1, ptr %86, align 4, !tbaa !39
  %87 = getelementptr inbounds i8, ptr %0, i64 13152
  %88 = icmp eq i8 %83, 4
  br i1 %88, label %89, label %90

89:                                               ; preds = %.thread69
  call void @PxeBcCopyEfiDhcp4Packet(ptr noundef nonnull %87, ptr noundef nonnull %14)
  br label %90

90:                                               ; preds = %89, %.thread69
  %91 = call zeroext i8 @PxeBcParseCachedDhcpPacket(ptr noundef nonnull %87)
  %92 = getelementptr inbounds i8, ptr %85, i64 9
  store i8 1, ptr %92, align 1, !tbaa !40
  %93 = getelementptr inbounds i8, ptr %85, i64 1524
  %94 = getelementptr inbounds i8, ptr %0, i64 13160
  %95 = getelementptr inbounds i8, ptr %0, i64 13156
  %96 = load i32, ptr %95, align 1, !tbaa !41
  %97 = zext i32 %96 to i64
  %98 = call ptr @CopyMem(ptr noundef nonnull %93, ptr noundef nonnull %94, i64 noundef %97) #3
  br label %.thread74

.thread74:                                        ; preds = %68, %50, %72, %17, %90
  %.172 = phi i64 [ 0, %90 ], [ -9223372036854775792, %17 ], [ -9223372036854775792, %72 ], [ -9223372036854775792, %50 ], [ -9223372036854775792, %68 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  ret i64 %.172
}

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, !7, i64 11472}
!6 = !{!"_PXEBC_PRIVATE_DATA", !7, 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, !11, i64 80, !13, i64 192, !14, i64 200, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !15, i64 248, !10, i64 280, !10, i64 288, !10, i64 296, !17, i64 304, !18, i64 308, !19, i64 344, !7, i64 10768, !10, i64 10776, !8, i64 10784, !8, i64 10800, !8, i64 10816, !8, i64 10832, !8, i64 10848, !7, i64 10852, !12, i64 10856, !12, i64 10864, !8, i64 10872, !23, i64 11184, !16, i64 11433, !8, i64 11465, !8, i64 11466, !8, i64 11467, !7, i64 11468, !7, i64 11472, !7, i64 11476, !26, i64 11480, !26, i64 13152, !26, i64 14824, !8, i64 16496, !8, i64 43248, !8, i64 43268, !7, i64 43588, !8, i64 43592, !8, i64 43612, !10, i64 43680, !28, i64 43688}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_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}
!12 = !{!"long long", !8, i64 0}
!13 = !{!"_EFI_LOAD_FILE_PROTOCOL", !10, i64 0}
!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, !16, i64 6, !16, i64 10, !8, i64 14, !8, i64 15, !8, i64 16, !8, i64 17, !7, i64 20, !7, i64 24}
!16 = !{!"", !8, i64 0}
!17 = !{!"short", !8, i64 0}
!18 = !{!"", !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, !16, i64 17, !16, i64 21, !17, i64 26, !16, i64 28, !17, i64 32}
!19 = !{!"", !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, !20, i64 8884, !7, i64 9016, !8, i64 9020, !7, i64 9404, !8, i64 9408, !21, i64 9792, !22, i64 10296}
!20 = !{!"", !8, i64 0, !8, i64 1, !17, i64 2, !8, i64 4}
!21 = !{!"", !8, i64 0, !8, i64 1, !17, i64 2, !8, i64 4, !8, i64 8}
!22 = !{!"", !8, i64 0, !8, i64 1}
!23 = !{!"", !7, i64 0, !7, i64 4, !24, i64 8}
!24 = !{!"", !25, i64 0, !7, i64 236, !8, i64 240}
!25 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !7, i64 4, !17, i64 8, !17, i64 10, !16, i64 12, !16, i64 16, !16, i64 20, !16, i64 24, !8, i64 28, !8, i64 44, !8, i64 108}
!26 = !{!"", !8, i64 0, !8, i64 1480, !8, i64 1481, !8, i64 1488, !27, i64 1544}
!27 = !{!"", !8, i64 0, !16, i64 32, !17, i64 36, !17, i64 38, !8, i64 40, !8, i64 41, !8, i64 42, !16, i64 43, !16, i64 47, !17, i64 52, !17, i64 54, !17, i64 56, !17, i64 58, !10, i64 64, !8, i64 72, !10, i64 80, !8, i64 88, !10, i64 96, !8, i64 104, !10, i64 112, !8, i64 120}
!28 = !{!"", !10, i64 0, !12, i64 8, !8, i64 16}
!29 = !{!26, !8, i64 1481}
!30 = !{!6, !8, i64 11467}
!31 = !{!7, !7, i64 0}
!32 = !{!6, !8, i64 11466}
!33 = !{!6, !7, i64 11476}
!34 = !{!6, !7, i64 11468}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!10, !10, i64 0}
!38 = !{!6, !10, i64 184}
!39 = !{!19, !8, i64 8}
!40 = !{!19, !8, i64 9}
!41 = !{!23, !7, i64 4}


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