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

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

%union.PXEBC_DHCP6_OPTION_ENTRY = type { ptr }
%struct.EFI_DHCP6_PACKET_OPTION = type <{ i16, i16, [1 x i8] }>
%struct.PXEBC_DHCP6_OPTION_ORO = type { [256 x i16] }
%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_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL = type { i64, i64, i64, i32, [4 x i8], i8, i8, i8, i8, i16 }
%struct.PXEBC_DHCP6_OPTION_UNDI = type { i8, i8, i8 }
%struct.PXEBC_DHCP6_OPTION_ARCH = type { i16 }
%struct.PXEBC_DHCP6_OPTION_VENDOR_CLASS = type <{ i32, i16, %struct.PXEBC_CLASS_ID }>
%struct.PXEBC_CLASS_ID = type { [10 x i8], [5 x i8], [5 x i8], [1 x i8], [4 x i8], [1 x i8], [3 x i8], [3 x i8] }

@.str = external hidden unnamed_addr constant [33 x i8], align 1

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

declare zeroext 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

; Function Attrs: nounwind uwtable
define dso_local i32 @PxeBcBuildDhcp6Options(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %union.PXEBC_DHCP6_OPTION_ENTRY, align 8
  %8 = alloca i32, align 4
  %9 = alloca i16, align 2
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  %10 = load ptr, ptr %6, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds ptr, ptr %11, i64 0
  store ptr %10, ptr %12, align 8, !tbaa !5
  %13 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 6)
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = load i32, ptr %8, align 4, !tbaa !9
  %16 = zext i32 %15 to i64
  %17 = getelementptr inbounds ptr, ptr %14, i64 %16
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %18, i32 0, i32 0
  store i16 %13, ptr %19, align 1, !tbaa !11
  %20 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 4)
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = getelementptr inbounds ptr, ptr %21, i64 %23
  %25 = load ptr, ptr %24, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %25, i32 0, i32 1
  store i16 %20, ptr %26, align 1, !tbaa !14
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = getelementptr inbounds ptr, ptr %27, i64 %29
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %31, i32 0, i32 2
  %33 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store ptr %33, ptr %7, align 8, !tbaa !15
  %34 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 59)
  %35 = load ptr, ptr %7, align 8, !tbaa !15
  %36 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_ORO, ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds [256 x i16], ptr %36, i64 0, i64 0
  store i16 %34, ptr %37, align 1, !tbaa !16
  %38 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 60)
  %39 = load ptr, ptr %7, align 8, !tbaa !15
  %40 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_ORO, ptr %39, i32 0, i32 0
  %41 = getelementptr inbounds [256 x i16], ptr %40, i64 0, i64 1
  store i16 %38, ptr %41, align 1, !tbaa !16
  %42 = load i32, ptr %8, align 4, !tbaa !9
  %43 = add i32 %42, 1
  store i32 %43, ptr %8, align 4, !tbaa !9
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = sub i32 %45, 1
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds ptr, ptr %44, i64 %47
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = sub i32 %52, 1
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds ptr, ptr %51, i64 %54
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %56, i32 0, i32 1
  %58 = load i16, ptr %57, align 1, !tbaa !14
  %59 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %58)
  %60 = zext i16 %59 to i32
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds i8, ptr %50, i64 %61
  %63 = getelementptr inbounds i8, ptr %62, i64 -1
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds ptr, ptr %64, i64 %66
  store ptr %63, ptr %67, align 8, !tbaa !5
  %68 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 62)
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = load i32, ptr %8, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds ptr, ptr %69, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %73, i32 0, i32 0
  store i16 %68, ptr %74, align 1, !tbaa !11
  %75 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 3)
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = load i32, ptr %8, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds ptr, ptr %76, i64 %78
  %80 = load ptr, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %80, i32 0, i32 1
  store i16 %75, ptr %81, align 1, !tbaa !14
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = getelementptr inbounds ptr, ptr %82, i64 %84
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %86, i32 0, i32 2
  %88 = getelementptr inbounds [1 x i8], ptr %87, i64 0, i64 0
  store ptr %88, ptr %7, align 8, !tbaa !15
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %89, i32 0, i32 30
  %91 = load ptr, ptr %90, align 8, !tbaa !17
  %92 = icmp ne ptr %91, null
  br i1 %92, label %93, label %115

93:                                               ; preds = %3
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %94, i32 0, i32 30
  %96 = load ptr, ptr %95, align 8, !tbaa !17
  %97 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %96, i32 0, i32 5
  %98 = load i8, ptr %97, align 8, !tbaa !36
  %99 = load ptr, ptr %7, align 8, !tbaa !15
  %100 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_UNDI, ptr %99, i32 0, i32 0
  store i8 %98, ptr %100, align 1, !tbaa !38
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %101, i32 0, i32 30
  %103 = load ptr, ptr %102, align 8, !tbaa !17
  %104 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %103, i32 0, i32 6
  %105 = load i8, ptr %104, align 1, !tbaa !40
  %106 = load ptr, ptr %7, align 8, !tbaa !15
  %107 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_UNDI, ptr %106, i32 0, i32 1
  store i8 %105, ptr %107, align 1, !tbaa !41
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %108, i32 0, i32 30
  %110 = load ptr, ptr %109, align 8, !tbaa !17
  %111 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %110, i32 0, i32 7
  %112 = load i8, ptr %111, align 2, !tbaa !42
  %113 = load ptr, ptr %7, align 8, !tbaa !15
  %114 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_UNDI, ptr %113, i32 0, i32 2
  store i8 %112, ptr %114, align 1, !tbaa !43
  br label %122

115:                                              ; preds = %3
  %116 = load ptr, ptr %7, align 8, !tbaa !15
  %117 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_UNDI, ptr %116, i32 0, i32 0
  store i8 1, ptr %117, align 1, !tbaa !38
  %118 = load ptr, ptr %7, align 8, !tbaa !15
  %119 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_UNDI, ptr %118, i32 0, i32 1
  store i8 3, ptr %119, align 1, !tbaa !41
  %120 = load ptr, ptr %7, align 8, !tbaa !15
  %121 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_UNDI, ptr %120, i32 0, i32 2
  store i8 0, ptr %121, align 1, !tbaa !43
  br label %122

122:                                              ; preds = %115, %93
  %123 = load i32, ptr %8, align 4, !tbaa !9
  %124 = add i32 %123, 1
  store i32 %124, ptr %8, align 4, !tbaa !9
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = load i32, ptr %8, align 4, !tbaa !9
  %127 = sub i32 %126, 1
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds ptr, ptr %125, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %130, i64 5
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = load i32, ptr %8, align 4, !tbaa !9
  %134 = sub i32 %133, 1
  %135 = zext i32 %134 to i64
  %136 = getelementptr inbounds ptr, ptr %132, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %137, i32 0, i32 1
  %139 = load i16, ptr %138, align 1, !tbaa !14
  %140 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %139)
  %141 = zext i16 %140 to i32
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds i8, ptr %131, i64 %142
  %144 = getelementptr inbounds i8, ptr %143, i64 -1
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load i32, ptr %8, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds ptr, ptr %145, i64 %147
  store ptr %144, ptr %148, align 8, !tbaa !5
  %149 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 61)
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = load i32, ptr %8, align 4, !tbaa !9
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds ptr, ptr %150, i64 %152
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %154, i32 0, i32 0
  store i16 %149, ptr %155, align 1, !tbaa !11
  %156 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 2)
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = load i32, ptr %8, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds ptr, ptr %157, i64 %159
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %161, i32 0, i32 1
  store i16 %156, ptr %162, align 1, !tbaa !14
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  %164 = load i32, ptr %8, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds ptr, ptr %163, i64 %165
  %167 = load ptr, ptr %166, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %167, i32 0, i32 2
  %169 = getelementptr inbounds [1 x i8], ptr %168, i64 0, i64 0
  store ptr %169, ptr %7, align 8, !tbaa !15
  %170 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 11)
  store i16 %170, ptr %9, align 2, !tbaa !16
  %171 = load ptr, ptr %7, align 8, !tbaa !15
  %172 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_ARCH, ptr %171, i32 0, i32 0
  %173 = call ptr @CopyMem(ptr noundef %172, ptr noundef %9, i64 noundef 2)
  %174 = load i32, ptr %8, align 4, !tbaa !9
  %175 = add i32 %174, 1
  store i32 %175, ptr %8, align 4, !tbaa !9
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = load i32, ptr %8, align 4, !tbaa !9
  %178 = sub i32 %177, 1
  %179 = zext i32 %178 to i64
  %180 = getelementptr inbounds ptr, ptr %176, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !5
  %182 = getelementptr inbounds i8, ptr %181, i64 5
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = load i32, ptr %8, align 4, !tbaa !9
  %185 = sub i32 %184, 1
  %186 = zext i32 %185 to i64
  %187 = getelementptr inbounds ptr, ptr %183, i64 %186
  %188 = load ptr, ptr %187, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %188, i32 0, i32 1
  %190 = load i16, ptr %189, align 1, !tbaa !14
  %191 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %190)
  %192 = zext i16 %191 to i32
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i8, ptr %182, i64 %193
  %195 = getelementptr inbounds i8, ptr %194, i64 -1
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = load i32, ptr %8, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = getelementptr inbounds ptr, ptr %196, i64 %198
  store ptr %195, ptr %199, align 8, !tbaa !5
  %200 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 16)
  %201 = load ptr, ptr %5, align 8, !tbaa !5
  %202 = load i32, ptr %8, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds ptr, ptr %201, i64 %203
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %205, i32 0, i32 0
  store i16 %200, ptr %206, align 1, !tbaa !11
  %207 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 38)
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = load i32, ptr %8, align 4, !tbaa !9
  %210 = zext i32 %209 to i64
  %211 = getelementptr inbounds ptr, ptr %208, i64 %210
  %212 = load ptr, ptr %211, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %212, i32 0, i32 1
  store i16 %207, ptr %213, align 1, !tbaa !14
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  %215 = load i32, ptr %8, align 4, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = getelementptr inbounds ptr, ptr %214, i64 %216
  %218 = load ptr, ptr %217, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %218, i32 0, i32 2
  %220 = getelementptr inbounds [1 x i8], ptr %219, i64 0, i64 0
  store ptr %220, ptr %7, align 8, !tbaa !15
  %221 = call i32 @SwapBytes32(i32 noundef 343)
  %222 = load ptr, ptr %7, align 8, !tbaa !15
  %223 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_VENDOR_CLASS, ptr %222, i32 0, i32 0
  store i32 %221, ptr %223, align 1, !tbaa !44
  %224 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 32)
  %225 = load ptr, ptr %7, align 8, !tbaa !15
  %226 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_VENDOR_CLASS, ptr %225, i32 0, i32 1
  store i16 %224, ptr %226, align 1, !tbaa !47
  %227 = load ptr, ptr %7, align 8, !tbaa !15
  %228 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_VENDOR_CLASS, ptr %227, i32 0, i32 2
  %229 = call ptr @CopyMem(ptr noundef %228, ptr noundef @.str, i64 noundef 32)
  %230 = load ptr, ptr %7, align 8, !tbaa !15
  %231 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_VENDOR_CLASS, ptr %230, i32 0, i32 2
  %232 = getelementptr inbounds %struct.PXEBC_CLASS_ID, ptr %231, i32 0, i32 2
  %233 = getelementptr inbounds [5 x i8], ptr %232, i64 0, i64 0
  call void @PxeBcUintnToAscDecWithFormat(i64 noundef 11, ptr noundef %233, i64 noundef 5)
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %234, i32 0, i32 30
  %236 = load ptr, ptr %235, align 8, !tbaa !17
  %237 = icmp ne ptr %236, null
  br i1 %237, label %238, label %269

238:                                              ; preds = %122
  %239 = load ptr, ptr %7, align 8, !tbaa !15
  %240 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_VENDOR_CLASS, ptr %239, i32 0, i32 2
  %241 = getelementptr inbounds %struct.PXEBC_CLASS_ID, ptr %240, i32 0, i32 4
  %242 = getelementptr inbounds [4 x i8], ptr %241, i64 0, i64 0
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %243, i32 0, i32 30
  %245 = load ptr, ptr %244, align 8, !tbaa !17
  %246 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %245, i32 0, i32 4
  %247 = getelementptr inbounds [4 x i8], ptr %246, i64 0, i64 0
  %248 = call ptr @CopyMem(ptr noundef %242, ptr noundef %247, i64 noundef 4)
  %249 = load ptr, ptr %4, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %249, i32 0, i32 30
  %251 = load ptr, ptr %250, align 8, !tbaa !17
  %252 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %251, i32 0, i32 6
  %253 = load i8, ptr %252, align 1, !tbaa !40
  %254 = zext i8 %253 to i64
  %255 = load ptr, ptr %7, align 8, !tbaa !15
  %256 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_VENDOR_CLASS, ptr %255, i32 0, i32 2
  %257 = getelementptr inbounds %struct.PXEBC_CLASS_ID, ptr %256, i32 0, i32 6
  %258 = getelementptr inbounds [3 x i8], ptr %257, i64 0, i64 0
  call void @PxeBcUintnToAscDecWithFormat(i64 noundef %254, ptr noundef %258, i64 noundef 3)
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %259, i32 0, i32 30
  %261 = load ptr, ptr %260, align 8, !tbaa !17
  %262 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %261, i32 0, i32 7
  %263 = load i8, ptr %262, align 2, !tbaa !42
  %264 = zext i8 %263 to i64
  %265 = load ptr, ptr %7, align 8, !tbaa !15
  %266 = getelementptr inbounds %struct.PXEBC_DHCP6_OPTION_VENDOR_CLASS, ptr %265, i32 0, i32 2
  %267 = getelementptr inbounds %struct.PXEBC_CLASS_ID, ptr %266, i32 0, i32 7
  %268 = getelementptr inbounds [3 x i8], ptr %267, i64 0, i64 0
  call void @PxeBcUintnToAscDecWithFormat(i64 noundef %264, ptr noundef %268, i64 noundef 3)
  br label %269

269:                                              ; preds = %238, %122
  %270 = load i32, ptr %8, align 4, !tbaa !9
  %271 = add i32 %270, 1
  store i32 %271, ptr %8, align 4, !tbaa !9
  %272 = load i32, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret i32 %272
}

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

declare i32 @SwapBytes32(i32 noundef) #1

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

@.str = external hidden unnamed_addr constant [33 x i8], align 1

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

declare zeroext 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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @PxeBcBuildDhcp6Options(ptr nocapture noundef readonly %0, ptr nocapture noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca i16, align 2
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %4) #3
  store ptr %2, ptr %1, align 8, !tbaa !5
  %5 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext 6) #3
  %6 = load ptr, ptr %1, align 8, !tbaa !5
  store i16 %5, ptr %6, align 1, !tbaa !9
  %7 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext 4) #3
  %8 = load ptr, ptr %1, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 2
  store i16 %7, ptr %9, align 1, !tbaa !12
  %10 = getelementptr inbounds i8, ptr %8, i64 4
  %11 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext 59) #3
  store i16 %11, ptr %10, align 1, !tbaa !13
  %12 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext 60) #3
  %13 = getelementptr inbounds i8, ptr %8, i64 6
  store i16 %12, ptr %13, align 1, !tbaa !13
  %14 = load ptr, ptr %1, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 5
  %16 = getelementptr inbounds i8, ptr %14, i64 2
  %17 = load i16, ptr %16, align 1, !tbaa !12
  %18 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext %17) #3
  %19 = zext i16 %18 to i64
  %20 = getelementptr inbounds i8, ptr %15, i64 %19
  %21 = getelementptr inbounds i8, ptr %20, i64 -1
  %22 = getelementptr inbounds i8, ptr %1, i64 8
  store ptr %21, ptr %22, align 8, !tbaa !5
  %23 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext 62) #3
  %24 = load ptr, ptr %22, align 8, !tbaa !5
  store i16 %23, ptr %24, align 1, !tbaa !9
  %25 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext 3) #3
  %26 = load ptr, ptr %22, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 2
  store i16 %25, ptr %27, align 1, !tbaa !12
  %28 = getelementptr inbounds i8, ptr %26, i64 4
  %29 = getelementptr inbounds i8, ptr %0, i64 240
  %30 = load ptr, ptr %29, align 8, !tbaa !14
  %.not = icmp eq ptr %30, null
  br i1 %.not, label %38, label %31

31:                                               ; preds = %3
  %32 = getelementptr inbounds i8, ptr %30, i64 32
  %33 = load i8, ptr %32, align 8, !tbaa !34
  %34 = getelementptr inbounds i8, ptr %30, i64 33
  %35 = load i8, ptr %34, align 1, !tbaa !36
  %36 = getelementptr inbounds i8, ptr %30, i64 34
  %37 = load i8, ptr %36, align 2, !tbaa !37
  br label %38

38:                                               ; preds = %3, %31
  %.sink74 = phi i8 [ %33, %31 ], [ 1, %3 ]
  %.sink73 = phi i8 [ %35, %31 ], [ 3, %3 ]
  %.sink = phi i8 [ %37, %31 ], [ 0, %3 ]
  store i8 %.sink74, ptr %28, align 1
  %39 = getelementptr inbounds i8, ptr %26, i64 5
  store i8 %.sink73, ptr %39, align 1
  %40 = getelementptr inbounds i8, ptr %26, i64 6
  store i8 %.sink, ptr %40, align 1
  %41 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext %25) #3
  %42 = zext i16 %41 to i64
  %43 = getelementptr inbounds i8, ptr %39, i64 %42
  %44 = getelementptr inbounds i8, ptr %43, i64 -1
  %45 = getelementptr inbounds i8, ptr %1, i64 16
  store ptr %44, ptr %45, align 8, !tbaa !5
  %46 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext 61) #3
  %47 = load ptr, ptr %45, align 8, !tbaa !5
  store i16 %46, ptr %47, align 1, !tbaa !9
  %48 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext 2) #3
  %49 = load ptr, ptr %45, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 2
  store i16 %48, ptr %50, align 1, !tbaa !12
  %51 = getelementptr inbounds i8, ptr %49, i64 4
  %52 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext 11) #3
  store i16 %52, ptr %4, align 2, !tbaa !13
  %53 = call ptr @CopyMem(ptr noundef nonnull %51, ptr noundef nonnull %4, i64 noundef 2) #3
  %54 = load ptr, ptr %45, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 5
  %56 = getelementptr inbounds i8, ptr %54, i64 2
  %57 = load i16, ptr %56, align 1, !tbaa !12
  %58 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %57) #3
  %59 = zext i16 %58 to i64
  %60 = getelementptr inbounds i8, ptr %55, i64 %59
  %61 = getelementptr inbounds i8, ptr %60, i64 -1
  %62 = getelementptr inbounds i8, ptr %1, i64 24
  store ptr %61, ptr %62, align 8, !tbaa !5
  %63 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 16) #3
  %64 = load ptr, ptr %62, align 8, !tbaa !5
  store i16 %63, ptr %64, align 1, !tbaa !9
  %65 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 38) #3
  %66 = load ptr, ptr %62, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i64 2
  store i16 %65, ptr %67, align 1, !tbaa !12
  %68 = getelementptr inbounds i8, ptr %66, i64 4
  %69 = call i32 @SwapBytes32(i32 noundef 343) #3
  store i32 %69, ptr %68, align 1, !tbaa !38
  %70 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 32) #3
  %71 = getelementptr inbounds i8, ptr %66, i64 8
  store i16 %70, ptr %71, align 1, !tbaa !41
  %72 = getelementptr inbounds i8, ptr %66, i64 10
  %73 = call ptr @CopyMem(ptr noundef nonnull %72, ptr noundef nonnull @.str, i64 noundef 32) #3
  %74 = getelementptr inbounds i8, ptr %66, i64 25
  call void @PxeBcUintnToAscDecWithFormat(i64 noundef 11, ptr noundef nonnull %74, i64 noundef 5) #3
  %75 = load ptr, ptr %29, align 8, !tbaa !14
  %.not72 = icmp eq ptr %75, null
  br i1 %.not72, label %90, label %76

76:                                               ; preds = %38
  %77 = getelementptr inbounds i8, ptr %66, i64 31
  %78 = getelementptr inbounds i8, ptr %75, i64 28
  %79 = call ptr @CopyMem(ptr noundef nonnull %77, ptr noundef nonnull %78, i64 noundef 4) #3
  %80 = load ptr, ptr %29, align 8, !tbaa !14
  %81 = getelementptr inbounds i8, ptr %80, i64 33
  %82 = load i8, ptr %81, align 1, !tbaa !36
  %83 = zext i8 %82 to i64
  %84 = getelementptr inbounds i8, ptr %66, i64 36
  call void @PxeBcUintnToAscDecWithFormat(i64 noundef %83, ptr noundef nonnull %84, i64 noundef 3) #3
  %85 = load ptr, ptr %29, align 8, !tbaa !14
  %86 = getelementptr inbounds i8, ptr %85, i64 34
  %87 = load i8, ptr %86, align 2, !tbaa !37
  %88 = zext i8 %87 to i64
  %89 = getelementptr inbounds i8, ptr %66, i64 39
  call void @PxeBcUintnToAscDecWithFormat(i64 noundef %88, ptr noundef nonnull %89, i64 noundef 3) #3
  br label %90

90:                                               ; preds = %76, %38
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %4) #3
  ret i32 4
}

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

declare i32 @SwapBytes32(i32 noundef) local_unnamed_addr #1

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

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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 2, !7, i64 4}
!11 = !{!"short", !7, i64 0}
!12 = !{!10, !11, i64 2}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !6, i64 240}
!15 = !{!"_PXEBC_PRIVATE_DATA", !16, i64 0, !6, i64 8, !6, i64 16, !17, 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, !19, i64 248, !20, i64 360, !6, i64 376, !6, i64 384, !21, i64 392, !16, i64 10816, !16, i64 10820, !16, i64 10824, !18, i64 10832, !25, i64 10840, !27, i64 10876, !28, i64 10928, !29, i64 10956, !6, i64 11008, !6, i64 11016, !30, i64 11024, !30, 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, !11, i64 11140, !16, i64 11144, !16, i64 11148, !16, i64 11152, !6, i64 11160, !18, i64 11168, !18, i64 11176, !7, i64 11184, !7, i64 12848, !7, i64 14512, !6, i64 16176, !31, i64 16184, !16, i64 16436, !16, i64 16440, !7, i64 16448, !16, i64 43072, !7, i64 43076, !7, i64 43108}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_PXEBC_PRIVATE_PROTOCOL", !18, i64 0}
!18 = !{!"long long", !7, i64 0}
!19 = !{!"_EFI_PXE_BASE_CODE_PROTOCOL", !18, 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}
!20 = !{!"_EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL", !18, i64 0, !6, i64 8}
!21 = !{!"", !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, !22, i64 8884, !16, i64 9016, !7, i64 9020, !16, i64 9404, !7, i64 9408, !23, i64 9792, !24, i64 10296}
!22 = !{!"", !7, i64 0, !7, i64 1, !11, i64 2, !7, i64 4}
!23 = !{!"", !7, i64 0, !7, i64 1, !11, i64 2, !7, i64 4, !7, i64 8}
!24 = !{!"", !7, i64 0, !7, i64 1}
!25 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !16, i64 8, !16, i64 12, !7, i64 16, !26, i64 17, !26, i64 21, !11, i64 26, !26, i64 28, !11, i64 32}
!26 = !{!"", !7, i64 0}
!27 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !16, i64 8, !16, i64 12, !26, i64 16, !11, i64 32, !26, i64 34, !11, i64 50}
!28 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !26, i64 6, !26, i64 10, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !16, i64 20, !16, i64 24}
!29 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !26, i64 4, !26, i64 20, !7, i64 36, !7, i64 37, !16, i64 40, !16, i64 44, !16, i64 48}
!30 = !{!"", !6, i64 0, !18, i64 8, !7, i64 16}
!31 = !{!"", !16, i64 0, !16, i64 4, !32, i64 8}
!32 = !{!"", !33, i64 0, !16, i64 236, !7, i64 240}
!33 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !16, i64 4, !11, i64 8, !11, i64 10, !26, i64 12, !26, i64 16, !26, i64 20, !26, i64 24, !7, i64 28, !7, i64 44, !7, i64 108}
!34 = !{!35, !7, i64 32}
!35 = !{!"_EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL", !18, i64 0, !18, i64 8, !18, i64 16, !16, i64 24, !7, i64 28, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !11, i64 36}
!36 = !{!35, !7, i64 33}
!37 = !{!35, !7, i64 34}
!38 = !{!39, !16, i64 0}
!39 = !{!"", !16, i64 0, !11, i64 4, !40, i64 6}
!40 = !{!"", !7, i64 0, !7, i64 10, !7, i64 15, !7, i64 20, !7, i64 21, !7, i64 25, !7, i64 26, !7, i64 29}
!41 = !{!39, !11, i64 4}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass