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

; 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.EFI_DHCP6_PACKET = type <{ i32, i32, %struct.anon.3 }>
%struct.anon.3 = type <{ %struct.EFI_DHCP6_HEADER, [1 x i8] }>
%struct.EFI_DHCP6_HEADER = type { i32 }
%struct.EFI_DHCP6_PACKET_OPTION = type <{ i16, i16, [1 x i8] }>
%struct.PXEBC_DHCP6_PACKET_CACHE = type { %union.PXEBC_DHCP6_PACKET, i32, [4 x ptr] }
%union.PXEBC_DHCP6_PACKET = type { [1472 x i8] }
%struct._EFI_UDP6_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

declare zeroext i16 @SwapBytes16(i16 noundef zeroext) #1

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

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

declare i32 @SwapBytes32(i32 noundef) #1

declare ptr @AllocateZeroPool(i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @PxeBcDhcp6Discover(ptr noundef %0, i16 noundef zeroext %1, ptr noundef %2, i8 noundef zeroext %3, ptr noundef %4) #2 {
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i16, align 2
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca ptr, align 8
  %12 = alloca i16, align 2
  %13 = alloca i16, align 2
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  %24 = alloca i16, align 2
  %25 = alloca i16, align 2
  %26 = alloca i16, align 2
  %27 = alloca i32, align 4
  %28 = alloca i64, align 8
  %29 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i16 %1, ptr %8, align 2, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i8 %3, ptr %10, align 1, !tbaa !11
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %30, i32 0, i32 31
  store ptr %31, ptr %15, align 8, !tbaa !5
  %32 = load ptr, ptr %15, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct._EFI_PXE_BASE_CODE_PROTOCOL, ptr %32, i32 0, i32 13
  %34 = load ptr, ptr %33, align 8, !tbaa !12
  store ptr %34, ptr %14, align 8, !tbaa !5
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %35, i32 0, i32 66
  %37 = load ptr, ptr %36, align 8, !tbaa !15
  store ptr %37, ptr %18, align 8, !tbaa !5
  store i16 4011, ptr %12, align 2, !tbaa !9
  store i16 4011, ptr %13, align 2, !tbaa !9
  store i16 0, ptr %24, align 2, !tbaa !9
  %38 = load i8, ptr %10, align 1, !tbaa !11
  %39 = icmp ne i8 %38, 0
  br i1 %39, label %49, label %40

40:                                               ; preds = %5
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %49

43:                                               ; preds = %40
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load i16, ptr %44, align 2, !tbaa !9
  %46 = zext i16 %45 to i32
  %47 = and i32 %46, 32767
  %48 = trunc i32 %47 to i16
  store i16 %48, ptr %44, align 2, !tbaa !9
  br label %49

49:                                               ; preds = %43, %40, %5
  %50 = load ptr, ptr %18, align 8, !tbaa !5
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %53

52:                                               ; preds = %49
  store i64 -9223372036854775801, ptr %6, align 8
  store i32 1, ptr %29, align 4
  br label %230

53:                                               ; preds = %49
  %54 = call ptr @AllocateZeroPool(i64 noundef 1028)
  store ptr %54, ptr %16, align 8, !tbaa !5
  %55 = load ptr, ptr %16, align 8, !tbaa !5
  %56 = icmp eq ptr %55, null
  br i1 %56, label %57, label %58

57:                                               ; preds = %53
  store i64 -9223372036854775799, ptr %6, align 8
  store i32 1, ptr %29, align 4
  br label %230

58:                                               ; preds = %53
  %59 = call i32 @NetRandomInitSeed()
  %60 = zext i32 %59 to i64
  %61 = mul i64 %60, 1103515245
  %62 = add i64 %61, 12345
  %63 = trunc i64 %62 to i32
  %64 = zext i32 %63 to i64
  %65 = urem i64 %64, 4294967295
  %66 = trunc i64 %65 to i32
  store i32 %66, ptr %27, align 4, !tbaa !33
  %67 = load i32, ptr %27, align 4, !tbaa !33
  %68 = call i32 @SwapBytes32(i32 noundef %67)
  %69 = load ptr, ptr %16, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4
  %71 = and i32 %68, 16777215
  %72 = shl i32 %71, 8
  %73 = and i32 %70, 255
  %74 = or i32 %73, %72
  store i32 %74, ptr %69, align 4
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.EFI_DHCP6_PACKET, ptr %75, i32 0, i32 2
  %77 = getelementptr inbounds %struct.anon.3, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 1
  %79 = and i32 %78, 255
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = load i32, ptr %80, align 4
  %82 = and i32 %79, 255
  %83 = and i32 %81, -256
  %84 = or i32 %83, %82
  store i32 %84, ptr %80, align 4
  %85 = load ptr, ptr %18, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.EFI_DHCP6_PACKET, ptr %85, i32 0, i32 2
  %87 = getelementptr inbounds %struct.anon.3, ptr %86, i32 0, i32 1
  %88 = getelementptr inbounds [1 x i8], ptr %87, i64 0, i64 0
  store ptr %88, ptr %21, align 8, !tbaa !5
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_DHCPV6_PACKET, ptr %89, i32 0, i32 1
  %91 = getelementptr inbounds [1024 x i8], ptr %90, i64 0, i64 0
  store ptr %91, ptr %22, align 8, !tbaa !5
  store i64 4, ptr %17, align 8, !tbaa !34
  %92 = load i64, ptr %17, align 8, !tbaa !34
  store i64 %92, ptr %19, align 8, !tbaa !34
  br label %93

93:                                               ; preds = %136, %58
  %94 = load i64, ptr %19, align 8, !tbaa !34
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.EFI_DHCP6_PACKET, ptr %95, i32 0, i32 1
  %97 = load i32, ptr %96, align 1, !tbaa !35
  %98 = zext i32 %97 to i64
  %99 = icmp ult i64 %94, %98
  br i1 %99, label %100, label %149

100:                                              ; preds = %93
  %101 = load ptr, ptr %21, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %101, i32 0, i32 0
  %103 = load i16, ptr %102, align 1, !tbaa !39
  %104 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %103)
  store i16 %104, ptr %25, align 2, !tbaa !9
  %105 = load ptr, ptr %21, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %105, i32 0, i32 1
  %107 = load i16, ptr %106, align 1, !tbaa !41
  %108 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %107)
  store i16 %108, ptr %26, align 2, !tbaa !9
  %109 = load i16, ptr %25, align 2, !tbaa !9
  %110 = zext i16 %109 to i32
  %111 = icmp ne i32 %110, 3
  br i1 %111, label %112, label %136

112:                                              ; preds = %100
  %113 = load i16, ptr %25, align 2, !tbaa !9
  %114 = zext i16 %113 to i32
  %115 = icmp ne i32 %114, 4
  br i1 %115, label %116, label %136

116:                                              ; preds = %112
  %117 = load ptr, ptr %22, align 8, !tbaa !5
  %118 = load ptr, ptr %21, align 8, !tbaa !5
  %119 = load i16, ptr %26, align 2, !tbaa !9
  %120 = zext i16 %119 to i32
  %121 = add nsw i32 %120, 4
  %122 = sext i32 %121 to i64
  %123 = call ptr @CopyMem(ptr noundef %117, ptr noundef %118, i64 noundef %122)
  %124 = load i16, ptr %26, align 2, !tbaa !9
  %125 = zext i16 %124 to i32
  %126 = add nsw i32 %125, 4
  %127 = load ptr, ptr %22, align 8, !tbaa !5
  %128 = sext i32 %126 to i64
  %129 = getelementptr inbounds i8, ptr %127, i64 %128
  store ptr %129, ptr %22, align 8, !tbaa !5
  %130 = load i16, ptr %26, align 2, !tbaa !9
  %131 = zext i16 %130 to i32
  %132 = add nsw i32 %131, 4
  %133 = sext i32 %132 to i64
  %134 = load i64, ptr %17, align 8, !tbaa !34
  %135 = add i64 %134, %133
  store i64 %135, ptr %17, align 8, !tbaa !34
  br label %136

136:                                              ; preds = %116, %112, %100
  %137 = load i16, ptr %26, align 2, !tbaa !9
  %138 = zext i16 %137 to i32
  %139 = add nsw i32 %138, 4
  %140 = load ptr, ptr %21, align 8, !tbaa !5
  %141 = sext i32 %139 to i64
  %142 = getelementptr inbounds i8, ptr %140, i64 %141
  store ptr %142, ptr %21, align 8, !tbaa !5
  %143 = load i16, ptr %26, align 2, !tbaa !9
  %144 = zext i16 %143 to i32
  %145 = add nsw i32 %144, 4
  %146 = sext i32 %145 to i64
  %147 = load i64, ptr %19, align 8, !tbaa !34
  %148 = add i64 %147, %146
  store i64 %148, ptr %19, align 8, !tbaa !34
  br label %93, !llvm.loop !42

149:                                              ; preds = %93
  %150 = load ptr, ptr %15, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct._EFI_PXE_BASE_CODE_PROTOCOL, ptr %150, i32 0, i32 6
  %152 = load ptr, ptr %151, align 8, !tbaa !44
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = load i16, ptr %24, align 2, !tbaa !9
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %155, i32 0, i32 55
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %157, i32 0, i32 52
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = call i64 %152(ptr noundef %153, i16 noundef zeroext %154, ptr noundef %156, ptr noundef %13, ptr noundef null, ptr noundef %158, ptr noundef %12, ptr noundef null, ptr noundef null, ptr noundef %17, ptr noundef %159)
  store i64 %160, ptr %28, align 8, !tbaa !34
  %161 = load i64, ptr %28, align 8, !tbaa !34
  %162 = icmp slt i64 %161, 0
  br i1 %162, label %163, label %165

163:                                              ; preds = %149
  %164 = load i64, ptr %28, align 8, !tbaa !34
  store i64 %164, ptr %6, align 8
  store i32 1, ptr %29, align 4
  br label %230

165:                                              ; preds = %149
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %166, i32 0, i32 51
  %168 = load i8, ptr %167, align 1, !tbaa !45
  %169 = icmp ne i8 %168, 0
  br i1 %169, label %170, label %179

170:                                              ; preds = %165
  %171 = load ptr, ptr %14, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.EFI_PXE_BASE_CODE_MODE, ptr %171, i32 0, i32 24
  %173 = load ptr, ptr %16, align 8, !tbaa !5
  %174 = load i64, ptr %17, align 8, !tbaa !34
  %175 = call ptr @CopyMem(ptr noundef %172, ptr noundef %173, i64 noundef %174)
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %176, i32 0, i32 65
  %178 = getelementptr inbounds %struct.PXEBC_DHCP6_PACKET_CACHE, ptr %177, i32 0, i32 0
  store ptr %178, ptr %20, align 8, !tbaa !5
  br label %183

179:                                              ; preds = %165
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %180, i32 0, i32 63
  %182 = getelementptr inbounds %struct.PXEBC_DHCP6_PACKET_CACHE, ptr %181, i32 0, i32 0
  store ptr %182, ptr %20, align 8, !tbaa !5
  br label %183

183:                                              ; preds = %179, %170
  %184 = load ptr, ptr %20, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.EFI_DHCP6_PACKET, ptr %184, i32 0, i32 0
  %186 = load i32, ptr %185, align 1, !tbaa !46
  %187 = zext i32 %186 to i64
  store i64 %187, ptr %23, align 8, !tbaa !34
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %188, i32 0, i32 28
  %190 = load ptr, ptr %189, align 8, !tbaa !47
  %191 = getelementptr inbounds %struct._EFI_UDP6_PROTOCOL, ptr %190, i32 0, i32 1
  %192 = load ptr, ptr %191, align 8, !tbaa !48
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %193, i32 0, i32 28
  %195 = load ptr, ptr %194, align 8, !tbaa !47
  %196 = load ptr, ptr %7, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %196, i32 0, i32 41
  %198 = call i64 %192(ptr noundef %195, ptr noundef %197)
  store i64 %198, ptr %28, align 8, !tbaa !34
  %199 = load i64, ptr %28, align 8, !tbaa !34
  %200 = icmp slt i64 %199, 0
  br i1 %200, label %201, label %203

201:                                              ; preds = %183
  %202 = load i64, ptr %28, align 8, !tbaa !34
  store i64 %202, ptr %6, align 8
  store i32 1, ptr %29, align 4
  br label %230

203:                                              ; preds = %183
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct._EFI_PXE_BASE_CODE_PROTOCOL, ptr %204, i32 0, i32 7
  %206 = load ptr, ptr %205, align 8, !tbaa !50
  %207 = load ptr, ptr %15, align 8, !tbaa !5
  %208 = load i16, ptr %24, align 2, !tbaa !9
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %209, i32 0, i32 52
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %211, i32 0, i32 55
  %213 = load ptr, ptr %20, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.EFI_DHCP6_PACKET, ptr %213, i32 0, i32 2
  %215 = call i64 %206(ptr noundef %207, i16 noundef zeroext %208, ptr noundef %210, ptr noundef %12, ptr noundef %212, ptr noundef %13, ptr noundef null, ptr noundef null, ptr noundef %23, ptr noundef %214)
  store i64 %215, ptr %28, align 8, !tbaa !34
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %216, i32 0, i32 28
  %218 = load ptr, ptr %217, align 8, !tbaa !47
  %219 = getelementptr inbounds %struct._EFI_UDP6_PROTOCOL, ptr %218, i32 0, i32 1
  %220 = load ptr, ptr %219, align 8, !tbaa !48
  %221 = load ptr, ptr %7, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %221, i32 0, i32 28
  %223 = load ptr, ptr %222, align 8, !tbaa !47
  %224 = call i64 %220(ptr noundef %223, ptr noundef null)
  %225 = load i64, ptr %28, align 8, !tbaa !34
  %226 = icmp slt i64 %225, 0
  br i1 %226, label %227, label %229

227:                                              ; preds = %203
  %228 = load i64, ptr %28, align 8, !tbaa !34
  store i64 %228, ptr %6, align 8
  store i32 1, ptr %29, align 4
  br label %230

229:                                              ; preds = %203
  store i64 0, ptr %6, align 8
  store i32 1, ptr %29, align 4
  br label %230

230:                                              ; preds = %229, %227, %201, %163, %57, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #3
  %231 = load i64, ptr %6, align 8
  ret i64 %231
}

declare i32 @NetRandomInitSeed() #1

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


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

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

declare zeroext i16 @SwapBytes16(i16 noundef zeroext) 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

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

declare i32 @SwapBytes32(i32 noundef) local_unnamed_addr #1

declare ptr @AllocateZeroPool(i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775808, 1) i64 @PxeBcDhcp6Discover(ptr noundef %0, i16 noundef zeroext %1, ptr noundef %2, i8 noundef zeroext %3, ptr nocapture noundef readnone %4) local_unnamed_addr #2 {
  %6 = alloca i16, align 2
  %7 = alloca i16, align 2
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %10 = getelementptr inbounds i8, ptr %0, i64 248
  %11 = getelementptr inbounds i8, ptr %0, i64 352
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 16176
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  store i16 4011, ptr %6, align 2, !tbaa !30
  store i16 4011, ptr %7, align 2, !tbaa !30
  %15 = icmp eq i8 %3, 0
  %16 = icmp ne ptr %2, null
  %or.cond = and i1 %16, %15
  br i1 %or.cond, label %17, label %20

17:                                               ; preds = %5
  %18 = load i16, ptr %2, align 2, !tbaa !30
  %19 = and i16 %18, 32767
  store i16 %19, ptr %2, align 2, !tbaa !30
  br label %20

20:                                               ; preds = %17, %5
  %21 = icmp eq ptr %14, null
  br i1 %21, label %97, label %22

22:                                               ; preds = %20
  %23 = tail call ptr @AllocateZeroPool(i64 noundef 1028) #4
  %24 = icmp eq ptr %23, null
  br i1 %24, label %97, label %25

25:                                               ; preds = %22
  %26 = tail call i32 @NetRandomInitSeed() #4
  %.fr = freeze i32 %26
  %27 = mul i32 %.fr, 1103515245
  %28 = add i32 %27, 12345
  %.not = icmp eq i32 %28, -1
  %29 = add nsw i32 %27, 12346
  %30 = select i1 %.not, i32 %29, i32 %28
  %31 = tail call i32 @SwapBytes32(i32 noundef %30) #4
  %32 = load i32, ptr %23, align 4
  %33 = shl i32 %31, 8
  %34 = and i32 %32, 255
  %35 = or disjoint i32 %34, %33
  store i32 %35, ptr %23, align 4
  %36 = getelementptr inbounds i8, ptr %14, i64 8
  %37 = load i32, ptr %36, align 1
  %38 = and i32 %37, 255
  %39 = or disjoint i32 %38, %33
  store i32 %39, ptr %23, align 4
  %40 = getelementptr inbounds i8, ptr %14, i64 4
  %41 = load i32, ptr %40, align 1, !tbaa !31
  %42 = icmp ugt i32 %41, 4
  br i1 %42, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %25
  %43 = getelementptr inbounds i8, ptr %23, i64 4
  %44 = getelementptr inbounds i8, ptr %14, i64 12
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph._crit_edge
  %.06377 = phi i64 [ %60, %.lr.ph._crit_edge ], [ 4, %.lr.ph.preheader ]
  %.06576 = phi ptr [ %59, %.lr.ph._crit_edge ], [ %44, %.lr.ph.preheader ]
  %.06675 = phi ptr [ %.1, %.lr.ph._crit_edge ], [ %43, %.lr.ph.preheader ]
  %45 = phi i64 [ %58, %.lr.ph._crit_edge ], [ 4, %.lr.ph.preheader ]
  %46 = load i16, ptr %.06576, align 1, !tbaa !35
  %47 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext %46) #4
  %48 = getelementptr inbounds i8, ptr %.06576, i64 2
  %49 = load i16, ptr %48, align 1, !tbaa !37
  %50 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext %49) #4
  %51 = add i16 %47, -5
  %or.cond4 = icmp ult i16 %51, -2
  %52 = zext i16 %50 to i64
  %53 = add nuw nsw i64 %52, 4
  br i1 %or.cond4, label %54, label %.lr.ph._crit_edge

54:                                               ; preds = %.lr.ph
  %55 = tail call ptr @CopyMem(ptr noundef %.06675, ptr noundef nonnull %.06576, i64 noundef %53) #4
  %56 = getelementptr inbounds i8, ptr %.06675, i64 %53
  %57 = add i64 %45, %53
  br label %.lr.ph._crit_edge

.lr.ph._crit_edge:                                ; preds = %.lr.ph, %54
  %58 = phi i64 [ %57, %54 ], [ %45, %.lr.ph ]
  %.1 = phi ptr [ %56, %54 ], [ %.06675, %.lr.ph ]
  %59 = getelementptr inbounds i8, ptr %.06576, i64 %53
  %60 = add nuw nsw i64 %53, %.06377
  %61 = load i32, ptr %40, align 1, !tbaa !31
  %62 = zext i32 %61 to i64
  %63 = icmp ult i64 %60, %62
  br i1 %63, label %.lr.ph, label %._crit_edge, !llvm.loop !38

._crit_edge:                                      ; preds = %.lr.ph._crit_edge, %25
  %.lcssa = phi i64 [ 4, %25 ], [ %58, %.lr.ph._crit_edge ]
  store i64 %.lcssa, ptr %8, align 8, !tbaa !40
  %64 = getelementptr inbounds i8, ptr %0, i64 296
  %65 = load ptr, ptr %64, align 8, !tbaa !41
  %66 = getelementptr inbounds i8, ptr %0, i64 11124
  %67 = getelementptr inbounds i8, ptr %0, i64 11076
  %68 = call i64 %65(ptr noundef nonnull %10, i16 noundef zeroext 0, ptr noundef nonnull %66, ptr noundef nonnull %7, ptr noundef null, ptr noundef nonnull %67, ptr noundef nonnull %6, ptr noundef null, ptr noundef null, ptr noundef nonnull %8, ptr noundef nonnull %23) #4
  %69 = icmp slt i64 %68, 0
  br i1 %69, label %97, label %70

70:                                               ; preds = %._crit_edge
  %71 = getelementptr inbounds i8, ptr %0, i64 11075
  %72 = load i8, ptr %71, align 1, !tbaa !42
  %.not74 = icmp eq i8 %72, 0
  br i1 %.not74, label %77, label %73

73:                                               ; preds = %70
  %74 = getelementptr inbounds i8, ptr %12, i64 4468
  %75 = load i64, ptr %8, align 8, !tbaa !40
  %76 = call ptr @CopyMem(ptr noundef nonnull %74, ptr noundef nonnull %23, i64 noundef %75) #4
  br label %77

77:                                               ; preds = %70, %73
  %.sink = phi i64 [ 14512, %73 ], [ 11184, %70 ]
  %78 = getelementptr inbounds i8, ptr %0, i64 %.sink
  %79 = load i32, ptr %78, align 1, !tbaa !43
  %80 = zext i32 %79 to i64
  store i64 %80, ptr %9, align 8, !tbaa !40
  %81 = getelementptr inbounds i8, ptr %0, i64 224
  %82 = load ptr, ptr %81, align 8, !tbaa !44
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  %84 = load ptr, ptr %83, align 8, !tbaa !45
  %85 = getelementptr inbounds i8, ptr %0, i64 10876
  %86 = call i64 %84(ptr noundef %82, ptr noundef nonnull %85) #4
  %87 = icmp slt i64 %86, 0
  br i1 %87, label %97, label %88

88:                                               ; preds = %77
  %89 = getelementptr inbounds i8, ptr %0, i64 304
  %90 = load ptr, ptr %89, align 8, !tbaa !47
  %91 = getelementptr inbounds i8, ptr %78, i64 8
  %92 = call i64 %90(ptr noundef nonnull %10, i16 noundef zeroext 0, ptr noundef nonnull %67, ptr noundef nonnull %6, ptr noundef nonnull %66, ptr noundef nonnull %7, ptr noundef null, ptr noundef null, ptr noundef nonnull %9, ptr noundef nonnull %91) #4
  %93 = load ptr, ptr %81, align 8, !tbaa !44
  %94 = getelementptr inbounds i8, ptr %93, i64 8
  %95 = load ptr, ptr %94, align 8, !tbaa !45
  %96 = call i64 %95(ptr noundef %93, ptr noundef null) #4
  %. = call i64 @llvm.smin.i64(i64 %92, i64 0)
  br label %97

97:                                               ; preds = %88, %77, %._crit_edge, %22, %20
  %.0 = phi i64 [ -9223372036854775801, %20 ], [ -9223372036854775799, %22 ], [ %68, %._crit_edge ], [ %86, %77 ], [ %., %88 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #4
  ret i64 %.0
}

declare i32 @NetRandomInitSeed() local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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, !10, i64 104}
!6 = !{!"_EFI_PXE_BASE_CODE_PROTOCOL", !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, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 16176}
!12 = !{!"_PXEBC_PRIVATE_DATA", !13, i64 0, !10, i64 8, !10, i64 16, !14, 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, !6, i64 248, !15, i64 360, !10, i64 376, !10, i64 384, !16, i64 392, !13, i64 10816, !13, i64 10820, !13, i64 10824, !7, i64 10832, !21, i64 10840, !23, i64 10876, !24, i64 10928, !25, i64 10956, !10, i64 11008, !10, i64 11016, !26, i64 11024, !26, 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, !18, i64 11140, !13, i64 11144, !13, i64 11148, !13, i64 11152, !10, i64 11160, !7, i64 11168, !7, i64 11176, !8, i64 11184, !8, i64 12848, !8, i64 14512, !10, i64 16176, !27, i64 16184, !13, i64 16436, !13, i64 16440, !8, i64 16448, !13, i64 43072, !8, i64 43076, !8, i64 43108}
!13 = !{!"int", !8, i64 0}
!14 = !{!"_PXEBC_PRIVATE_PROTOCOL", !7, i64 0}
!15 = !{!"_EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL", !7, i64 0, !10, i64 8}
!16 = !{!"", !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, !17, i64 8884, !13, i64 9016, !8, i64 9020, !13, i64 9404, !8, i64 9408, !19, i64 9792, !20, i64 10296}
!17 = !{!"", !8, i64 0, !8, i64 1, !18, i64 2, !8, i64 4}
!18 = !{!"short", !8, i64 0}
!19 = !{!"", !8, i64 0, !8, i64 1, !18, i64 2, !8, i64 4, !8, i64 8}
!20 = !{!"", !8, i64 0, !8, i64 1}
!21 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !8, i64 4, !8, i64 5, !8, i64 6, !13, i64 8, !13, i64 12, !8, i64 16, !22, i64 17, !22, i64 21, !18, i64 26, !22, i64 28, !18, i64 32}
!22 = !{!"", !8, i64 0}
!23 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !8, i64 4, !13, i64 8, !13, i64 12, !22, i64 16, !18, i64 32, !22, i64 34, !18, i64 50}
!24 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !8, i64 4, !8, i64 5, !22, i64 6, !22, i64 10, !8, i64 14, !8, i64 15, !8, i64 16, !8, i64 17, !13, i64 20, !13, i64 24}
!25 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !22, i64 4, !22, i64 20, !8, i64 36, !8, i64 37, !13, i64 40, !13, i64 44, !13, i64 48}
!26 = !{!"", !10, i64 0, !7, i64 8, !8, i64 16}
!27 = !{!"", !13, i64 0, !13, i64 4, !28, i64 8}
!28 = !{!"", !29, i64 0, !13, i64 236, !8, i64 240}
!29 = !{!"", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !13, i64 4, !18, i64 8, !18, i64 10, !22, i64 12, !22, i64 16, !22, i64 20, !22, i64 24, !8, i64 28, !8, i64 44, !8, i64 108}
!30 = !{!18, !18, i64 0}
!31 = !{!32, !13, i64 4}
!32 = !{!"", !13, i64 0, !13, i64 4, !33, i64 8}
!33 = !{!"", !34, i64 0, !8, i64 4}
!34 = !{!"", !13, i64 0, !13, i64 1}
!35 = !{!36, !18, i64 0}
!36 = !{!"", !18, i64 0, !18, i64 2, !8, i64 4}
!37 = !{!36, !18, i64 2}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!7, !7, i64 0}
!41 = !{!6, !10, i64 48}
!42 = !{!12, !8, i64 11075}
!43 = !{!32, !13, i64 0}
!44 = !{!12, !10, i64 224}
!45 = !{!46, !10, i64 8}
!46 = !{!"_EFI_UDP6_PROTOCOL", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!47 = !{!6, !10, i64 56}


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