; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/OptionRomPkg (UndiDriverStart)

; 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.GUID = type { i32, i16, i16, [8 x i8] }
%struct.EFI_BOOT_SERVICES = type { %struct.EFI_TABLE_HEADER, 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, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_TABLE_HEADER = type { i64, i32, i32, i32, i32 }
%struct._EFI_DRIVER_BINDING_PROTOCOL = type { ptr, ptr, ptr, i32, ptr, ptr }
%struct._EFI_PCI_IO_PROTOCOL = type { ptr, ptr, %struct.EFI_PCI_IO_PROTOCOL_ACCESS, %struct.EFI_PCI_IO_PROTOCOL_ACCESS, %struct.EFI_PCI_IO_PROTOCOL_CONFIG_ACCESS, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr }
%struct.EFI_PCI_IO_PROTOCOL_ACCESS = type { ptr, ptr }
%struct.EFI_PCI_IO_PROTOCOL_CONFIG_ACCESS = type { ptr, ptr }
%struct.UNDI32_DEV = type { i64, %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr, ptr, ptr, %struct.s_data_instance }
%struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL = type { i64, i64, i64, i32, [4 x i8], i8, i8, i8, i8, i16 }
%struct.s_data_instance = type { i16, i16, i8, i8, i16, i16, i16, i16, i16, [32 x i8], [32 x i8], [32 x i8], [64 x i32], [128 x i32], i32, i32, i16, i16, i8, i8, i8, i8, i16, i16, i16, i16, i32, i32, i16, i16, [2 x i16], i8, i8, i16, i32, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, [64 x i64], i16, i16, i16, i16, i8, i8, i8, i8, i8, [3 x i8], %struct.mc, i64, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.mc = type { [3 x i16], i16, [8 x [32 x i8]] }
%struct.CONFIG_HEADER = type { i16, i16, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i8, i8, i16, i32, i8, i8, i8, i8 }
%struct.s_pxe_sw_undi = type { i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, i64, [3 x i8], i8, [1 x i32] }

@pxe_31 = external dso_local global ptr, align 8
@UndiDataPointer = external dso_local global ptr, align 8
@UNDI32DeviceList = external dso_local global [16 x ptr], align 16
@gBS = external global ptr, align 8
@gEfiDevicePathProtocolGuid = external global %struct.GUID, align 4
@gEfiPciIoProtocolGuid = external global %struct.GUID, align 4
@gEfiNetworkInterfaceIdentifierProtocolGuid_31 = external global %struct.GUID, align 4

; Function Attrs: nounwind uwtable
define dso_local i64 @UndiDriverStart(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i16, align 2
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, 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 1, ptr %17) #3
  %19 = load ptr, ptr @gBS, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %19, i32 0, i32 33
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %23, i32 0, i32 5
  %25 = load ptr, ptr %24, align 8, !tbaa !14
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = call i64 %21(ptr noundef %22, ptr noundef @gEfiPciIoProtocolGuid, ptr noundef %14, ptr noundef %25, ptr noundef %26, i32 noundef 16)
  store i64 %27, ptr %8, align 8, !tbaa !16
  %28 = load i64, ptr %8, align 8, !tbaa !16
  %29 = icmp slt i64 %28, 0
  br i1 %29, label %30, label %32

30:                                               ; preds = %3
  %31 = load i64, ptr %8, align 8, !tbaa !16
  store i64 %31, ptr %4, align 8
  store i32 1, ptr %18, align 4
  br label %403

32:                                               ; preds = %3
  %33 = load ptr, ptr @gBS, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %33, i32 0, i32 33
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %37, i32 0, i32 5
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = call i64 %35(ptr noundef %36, ptr noundef @gEfiDevicePathProtocolGuid, ptr noundef %9, ptr noundef %39, ptr noundef %40, i32 noundef 16)
  store i64 %41, ptr %8, align 8, !tbaa !16
  %42 = load i64, ptr %8, align 8, !tbaa !16
  %43 = icmp slt i64 %42, 0
  br i1 %43, label %44, label %55

44:                                               ; preds = %32
  %45 = load ptr, ptr @gBS, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %45, i32 0, i32 34
  %47 = load ptr, ptr %46, align 8, !tbaa !17
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %49, i32 0, i32 5
  %51 = load ptr, ptr %50, align 8, !tbaa !14
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = call i64 %47(ptr noundef %48, ptr noundef @gEfiPciIoProtocolGuid, ptr noundef %51, ptr noundef %52)
  %54 = load i64, ptr %8, align 8, !tbaa !16
  store i64 %54, ptr %4, align 8
  store i32 1, ptr %18, align 4
  br label %403

55:                                               ; preds = %32
  store i8 0, ptr %17, align 1, !tbaa !18
  %56 = load ptr, ptr @gBS, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %56, i32 0, i32 6
  %58 = load ptr, ptr %57, align 8, !tbaa !19
  %59 = call i64 %58(i32 noundef 6, i64 noundef 1992, ptr noundef %11)
  store i64 %59, ptr %8, align 8, !tbaa !16
  %60 = load i64, ptr %8, align 8, !tbaa !16
  %61 = icmp slt i64 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %55
  br label %383

63:                                               ; preds = %55
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = call ptr @ZeroMem(ptr noundef %64, i64 noundef 1992)
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct._EFI_PCI_IO_PROTOCOL, ptr %66, i32 0, i32 12
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %69 = load ptr, ptr %14, align 8, !tbaa !5
  %70 = load ptr, ptr %11, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.UNDI32_DEV, ptr %70, i32 0, i32 5
  %72 = getelementptr inbounds %struct.s_data_instance, ptr %71, i32 0, i32 60
  %73 = call i64 %68(ptr noundef %69, i32 noundef 0, i64 noundef 0, ptr noundef %72)
  store i64 %73, ptr %8, align 8, !tbaa !16
  %74 = load i64, ptr %8, align 8, !tbaa !16
  %75 = icmp slt i64 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %63
  br label %364

77:                                               ; preds = %63
  store i8 1, ptr %17, align 1, !tbaa !18
  store ptr null, ptr %13, align 8, !tbaa !5
  %78 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  %79 = icmp eq ptr %78, null
  br i1 %79, label %80, label %104

80:                                               ; preds = %77
  %81 = load ptr, ptr @gBS, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %81, i32 0, i32 6
  %83 = load ptr, ptr %82, align 8, !tbaa !19
  %84 = call i64 %83(i32 noundef 6, i64 noundef 96, ptr noundef %13)
  store i64 %84, ptr %8, align 8, !tbaa !16
  %85 = load i64, ptr %8, align 8, !tbaa !16
  %86 = icmp slt i64 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %80
  br label %364

88:                                               ; preds = %80
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = call ptr @ZeroMem(ptr noundef %89, i64 noundef 96)
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = ptrtoint ptr %91 to i64
  %93 = and i64 %92, 15
  %94 = icmp ne i64 %93, 0
  br i1 %94, label %95, label %100

95:                                               ; preds = %88
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i64 8
  %98 = ptrtoint ptr %97 to i64
  %99 = inttoptr i64 %98 to ptr
  store ptr %99, ptr @pxe_31, align 8, !tbaa !5
  br label %102

100:                                              ; preds = %88
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %101, ptr @pxe_31, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %100, %95
  %103 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  call void @PxeStructInit(ptr noundef %103)
  br label %104

104:                                              ; preds = %102, %77
  %105 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  %106 = ptrtoint ptr %105 to i64
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.UNDI32_DEV, ptr %107, i32 0, i32 1
  %109 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %108, i32 0, i32 1
  store i64 %106, ptr %109, align 8, !tbaa !23
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct._EFI_PCI_IO_PROTOCOL, ptr %110, i32 0, i32 12
  %112 = load ptr, ptr %111, align 8, !tbaa !20
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = call i64 %112(ptr noundef %113, i32 noundef 4, i64 noundef 0, ptr noundef %16)
  store i64 %114, ptr %8, align 8, !tbaa !16
  %115 = load i64, ptr %8, align 8, !tbaa !16
  %116 = icmp slt i64 %115, 0
  br i1 %116, label %126, label %117

117:                                              ; preds = %104
  %118 = load i64, ptr %16, align 8, !tbaa !16
  %119 = and i64 %118, 1792
  store i64 %119, ptr %16, align 8, !tbaa !16
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._EFI_PCI_IO_PROTOCOL, ptr %120, i32 0, i32 12
  %122 = load ptr, ptr %121, align 8, !tbaa !20
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = load i64, ptr %16, align 8, !tbaa !16
  %125 = call i64 %122(ptr noundef %123, i32 noundef 2, i64 noundef %124, ptr noundef null)
  store i64 %125, ptr %8, align 8, !tbaa !16
  br label %126

126:                                              ; preds = %117, %104
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct._EFI_PCI_IO_PROTOCOL, ptr %127, i32 0, i32 4
  %129 = getelementptr inbounds %struct.EFI_PCI_IO_PROTOCOL_CONFIG_ACCESS, ptr %128, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8, !tbaa !29
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = load ptr, ptr %11, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.UNDI32_DEV, ptr %132, i32 0, i32 5
  %134 = getelementptr inbounds %struct.s_data_instance, ptr %133, i32 0, i32 12
  %135 = call i64 %130(ptr noundef %131, i32 noundef 2, i32 noundef 0, i64 noundef 64, ptr noundef %134)
  store i64 %135, ptr %8, align 8, !tbaa !16
  %136 = load ptr, ptr %11, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.UNDI32_DEV, ptr %136, i32 0, i32 5
  %138 = getelementptr inbounds %struct.s_data_instance, ptr %137, i32 0, i32 12
  %139 = getelementptr inbounds [64 x i32], ptr %138, i64 0, i64 0
  store ptr %139, ptr %10, align 8, !tbaa !5
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.CONFIG_HEADER, ptr %140, i32 0, i32 2
  %142 = load i16, ptr %141, align 1, !tbaa !30
  %143 = zext i16 %142 to i32
  %144 = or i32 %143, 4
  %145 = or i32 %144, 1
  %146 = trunc i32 %145 to i16
  store i16 %146, ptr %12, align 2, !tbaa !32
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.CONFIG_HEADER, ptr %147, i32 0, i32 2
  %149 = load i16, ptr %148, align 1, !tbaa !30
  %150 = zext i16 %149 to i32
  %151 = load i16, ptr %12, align 2, !tbaa !32
  %152 = zext i16 %151 to i32
  %153 = icmp ne i32 %150, %152
  br i1 %153, label %154, label %164

154:                                              ; preds = %126
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct._EFI_PCI_IO_PROTOCOL, ptr %155, i32 0, i32 4
  %157 = getelementptr inbounds %struct.EFI_PCI_IO_PROTOCOL_CONFIG_ACCESS, ptr %156, i32 0, i32 1
  %158 = load ptr, ptr %157, align 8, !tbaa !33
  %159 = load ptr, ptr %14, align 8, !tbaa !5
  %160 = call i64 %158(ptr noundef %159, i32 noundef 1, i32 noundef 4, i64 noundef 1, ptr noundef %12)
  %161 = load i16, ptr %12, align 2, !tbaa !32
  %162 = load ptr, ptr %10, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.CONFIG_HEADER, ptr %162, i32 0, i32 2
  store i16 %161, ptr %163, align 1, !tbaa !30
  br label %164

164:                                              ; preds = %154, %126
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.CONFIG_HEADER, ptr %165, i32 0, i32 7
  %167 = load i8, ptr %166, align 1, !tbaa !34
  %168 = zext i8 %167 to i32
  %169 = icmp slt i32 %168, 32
  br i1 %169, label %170, label %181

170:                                              ; preds = %164
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.CONFIG_HEADER, ptr %171, i32 0, i32 7
  store i8 32, ptr %172, align 1, !tbaa !34
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct._EFI_PCI_IO_PROTOCOL, ptr %173, i32 0, i32 4
  %175 = getelementptr inbounds %struct.EFI_PCI_IO_PROTOCOL_CONFIG_ACCESS, ptr %174, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8, !tbaa !33
  %177 = load ptr, ptr %14, align 8, !tbaa !5
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.CONFIG_HEADER, ptr %178, i32 0, i32 7
  %180 = call i64 %176(ptr noundef %177, i32 noundef 0, i32 noundef 13, i64 noundef 1, ptr noundef %179)
  br label %181

181:                                              ; preds = %170, %164
  %182 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.s_pxe_sw_undi, ptr %182, i32 0, i32 4
  %184 = load i8, ptr %183, align 1, !tbaa !35
  %185 = zext i8 %184 to i32
  %186 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.s_pxe_sw_undi, ptr %186, i32 0, i32 7
  %188 = load i8, ptr %187, align 1, !tbaa !37
  %189 = zext i8 %188 to i32
  %190 = shl i32 %189, 8
  %191 = or i32 %185, %190
  %192 = trunc i32 %191 to i16
  %193 = load ptr, ptr %11, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.UNDI32_DEV, ptr %193, i32 0, i32 1
  %195 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %194, i32 0, i32 9
  store i16 %192, ptr %195, align 4, !tbaa !38
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.UNDI32_DEV, ptr %196, i32 0, i32 5
  %198 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  call void @PxeUpdate(ptr noundef %197, ptr noundef %198)
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = load ptr, ptr %11, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.UNDI32_DEV, ptr %200, i32 0, i32 5
  %202 = getelementptr inbounds %struct.s_data_instance, ptr %201, i32 0, i32 59
  store ptr %199, ptr %202, align 8, !tbaa !39
  %203 = load ptr, ptr %11, align 8, !tbaa !5
  %204 = load ptr, ptr %11, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.UNDI32_DEV, ptr %204, i32 0, i32 1
  %206 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %205, i32 0, i32 9
  %207 = load i16, ptr %206, align 4, !tbaa !38
  %208 = zext i16 %207 to i64
  %209 = getelementptr inbounds [16 x ptr], ptr @UNDI32DeviceList, i64 0, i64 %208
  store ptr %203, ptr %209, align 8, !tbaa !5
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.UNDI32_DEV, ptr %211, i32 0, i32 3
  store ptr %210, ptr %212, align 8, !tbaa !40
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.UNDI32_DEV, ptr %213, i32 0, i32 4
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.UNDI32_DEV, ptr %215, i32 0, i32 3
  %217 = load ptr, ptr %216, align 8, !tbaa !40
  %218 = load ptr, ptr %11, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.UNDI32_DEV, ptr %218, i32 0, i32 5
  %220 = call i64 @AppendMac2DevPath(ptr noundef %214, ptr noundef %217, ptr noundef %219)
  store i64 %220, ptr %8, align 8, !tbaa !16
  %221 = load i64, ptr %8, align 8, !tbaa !16
  %222 = icmp ne i64 %221, 0
  br i1 %222, label %223, label %224

223:                                              ; preds = %181
  br label %353

224:                                              ; preds = %181
  %225 = load ptr, ptr %11, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.UNDI32_DEV, ptr %225, i32 0, i32 0
  store i64 1768189557, ptr %226, align 8, !tbaa !41
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.UNDI32_DEV, ptr %227, i32 0, i32 1
  %229 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %228, i32 0, i32 0
  store i64 65537, ptr %229, align 8, !tbaa !42
  %230 = load ptr, ptr %11, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.UNDI32_DEV, ptr %230, i32 0, i32 1
  %232 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %231, i32 0, i32 5
  store i8 1, ptr %232, align 8, !tbaa !43
  %233 = load ptr, ptr %11, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.UNDI32_DEV, ptr %233, i32 0, i32 1
  %235 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %234, i32 0, i32 6
  store i8 3, ptr %235, align 1, !tbaa !44
  %236 = load ptr, ptr %11, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.UNDI32_DEV, ptr %236, i32 0, i32 1
  %238 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %237, i32 0, i32 7
  store i8 16, ptr %238, align 2, !tbaa !45
  %239 = load ptr, ptr %11, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.UNDI32_DEV, ptr %239, i32 0, i32 1
  %241 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %240, i32 0, i32 3
  store i32 0, ptr %241, align 8, !tbaa !46
  %242 = load ptr, ptr %11, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.UNDI32_DEV, ptr %242, i32 0, i32 1
  %244 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %243, i32 0, i32 2
  store i64 0, ptr %244, align 8, !tbaa !47
  %245 = load ptr, ptr %11, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.UNDI32_DEV, ptr %245, i32 0, i32 1
  %247 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %246, i32 0, i32 8
  store i8 0, ptr %247, align 1, !tbaa !48
  %248 = load ptr, ptr %11, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.UNDI32_DEV, ptr %248, i32 0, i32 1
  %250 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %249, i32 0, i32 4
  %251 = getelementptr inbounds [4 x i8], ptr %250, i64 0, i64 0
  store i8 85, ptr %251, align 4, !tbaa !18
  %252 = load ptr, ptr %11, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.UNDI32_DEV, ptr %252, i32 0, i32 1
  %254 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %253, i32 0, i32 4
  %255 = getelementptr inbounds [4 x i8], ptr %254, i64 0, i64 1
  store i8 78, ptr %255, align 1, !tbaa !18
  %256 = load ptr, ptr %11, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.UNDI32_DEV, ptr %256, i32 0, i32 1
  %258 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %257, i32 0, i32 4
  %259 = getelementptr inbounds [4 x i8], ptr %258, i64 0, i64 2
  store i8 68, ptr %259, align 2, !tbaa !18
  %260 = load ptr, ptr %11, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.UNDI32_DEV, ptr %260, i32 0, i32 1
  %262 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %261, i32 0, i32 4
  %263 = getelementptr inbounds [4 x i8], ptr %262, i64 0, i64 3
  store i8 73, ptr %263, align 1, !tbaa !18
  %264 = load ptr, ptr %11, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.UNDI32_DEV, ptr %264, i32 0, i32 2
  store ptr null, ptr %265, align 8, !tbaa !49
  %266 = load ptr, ptr @gBS, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %266, i32 0, i32 39
  %268 = load ptr, ptr %267, align 8, !tbaa !50
  %269 = load ptr, ptr %11, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.UNDI32_DEV, ptr %269, i32 0, i32 2
  %271 = load ptr, ptr %11, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.UNDI32_DEV, ptr %271, i32 0, i32 1
  %273 = load ptr, ptr %11, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.UNDI32_DEV, ptr %273, i32 0, i32 4
  %275 = load ptr, ptr %274, align 8, !tbaa !51
  %276 = call i64 (ptr, ...) %268(ptr noundef %270, ptr noundef @gEfiNetworkInterfaceIdentifierProtocolGuid_31, ptr noundef %272, ptr noundef @gEfiDevicePathProtocolGuid, ptr noundef %275, ptr noundef null)
  store i64 %276, ptr %8, align 8, !tbaa !16
  %277 = load i64, ptr %8, align 8, !tbaa !16
  %278 = icmp slt i64 %277, 0
  br i1 %278, label %279, label %280

279:                                              ; preds = %224
  br label %339

280:                                              ; preds = %224
  %281 = load ptr, ptr @UndiDataPointer, align 8, !tbaa !5
  %282 = icmp ne ptr %281, null
  br i1 %282, label %283, label %289

283:                                              ; preds = %280
  %284 = load ptr, ptr @gBS, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %284, i32 0, i32 7
  %286 = load ptr, ptr %285, align 8, !tbaa !52
  %287 = load ptr, ptr @UndiDataPointer, align 8, !tbaa !5
  %288 = call i64 %286(ptr noundef %287)
  store i64 %288, ptr %8, align 8, !tbaa !16
  br label %289

289:                                              ; preds = %283, %280
  %290 = load i64, ptr %8, align 8, !tbaa !16
  %291 = icmp slt i64 %290, 0
  br i1 %291, label %292, label %293

292:                                              ; preds = %289
  br label %339

293:                                              ; preds = %289
  %294 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.s_pxe_sw_undi, ptr %294, i32 0, i32 4
  %296 = load i8, ptr %295, align 1, !tbaa !35
  %297 = zext i8 %296 to i32
  %298 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.s_pxe_sw_undi, ptr %298, i32 0, i32 7
  %300 = load i8, ptr %299, align 1, !tbaa !37
  %301 = zext i8 %300 to i32
  %302 = shl i32 %301, 8
  %303 = or i32 %297, %302
  %304 = sext i32 %303 to i64
  %305 = mul i64 %304, 16
  %306 = add i64 %305, 8
  store i64 %306, ptr %15, align 8, !tbaa !16
  %307 = load ptr, ptr @gBS, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %307, i32 0, i32 6
  %309 = load ptr, ptr %308, align 8, !tbaa !19
  %310 = load i64, ptr %15, align 8, !tbaa !16
  %311 = call i64 %309(i32 noundef 6, i64 noundef %310, ptr noundef @UndiDataPointer)
  store i64 %311, ptr %8, align 8, !tbaa !16
  %312 = load i64, ptr %8, align 8, !tbaa !16
  %313 = icmp slt i64 %312, 0
  br i1 %313, label %314, label %315

314:                                              ; preds = %293
  br label %327

315:                                              ; preds = %293
  %316 = load ptr, ptr @gBS, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %316, i32 0, i32 33
  %318 = load ptr, ptr %317, align 8, !tbaa !9
  %319 = load ptr, ptr %6, align 8, !tbaa !5
  %320 = load ptr, ptr %5, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %320, i32 0, i32 5
  %322 = load ptr, ptr %321, align 8, !tbaa !14
  %323 = load ptr, ptr %11, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.UNDI32_DEV, ptr %323, i32 0, i32 2
  %325 = load ptr, ptr %324, align 8, !tbaa !49
  %326 = call i64 %318(ptr noundef %319, ptr noundef @gEfiPciIoProtocolGuid, ptr noundef %14, ptr noundef %322, ptr noundef %325, i32 noundef 8)
  store i64 %326, ptr %8, align 8, !tbaa !16
  store i64 0, ptr %4, align 8
  store i32 1, ptr %18, align 4
  br label %403

327:                                              ; preds = %314
  %328 = load ptr, ptr @gBS, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %328, i32 0, i32 40
  %330 = load ptr, ptr %329, align 8, !tbaa !53
  %331 = load ptr, ptr %11, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.UNDI32_DEV, ptr %331, i32 0, i32 2
  %333 = load ptr, ptr %11, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.UNDI32_DEV, ptr %333, i32 0, i32 1
  %335 = load ptr, ptr %11, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.UNDI32_DEV, ptr %335, i32 0, i32 4
  %337 = load ptr, ptr %336, align 8, !tbaa !51
  %338 = call i64 (ptr, ...) %330(ptr noundef %332, ptr noundef @gEfiNetworkInterfaceIdentifierProtocolGuid_31, ptr noundef %334, ptr noundef @gEfiDevicePathProtocolGuid, ptr noundef %337, ptr noundef null)
  br label %339

339:                                              ; preds = %327, %292, %279
  %340 = load ptr, ptr %11, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.UNDI32_DEV, ptr %340, i32 0, i32 1
  %342 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %341, i32 0, i32 9
  %343 = load i16, ptr %342, align 4, !tbaa !38
  %344 = zext i16 %343 to i64
  %345 = getelementptr inbounds [16 x ptr], ptr @UNDI32DeviceList, i64 0, i64 %344
  store ptr null, ptr %345, align 8, !tbaa !5
  %346 = load ptr, ptr @gBS, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %346, i32 0, i32 7
  %348 = load ptr, ptr %347, align 8, !tbaa !52
  %349 = load ptr, ptr %11, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.UNDI32_DEV, ptr %349, i32 0, i32 4
  %351 = load ptr, ptr %350, align 8, !tbaa !51
  %352 = call i64 %348(ptr noundef %351)
  br label %353

353:                                              ; preds = %339, %223
  %354 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  call void @PxeUpdate(ptr noundef null, ptr noundef %354)
  %355 = load ptr, ptr %13, align 8, !tbaa !5
  %356 = icmp ne ptr %355, null
  br i1 %356, label %357, label %363

357:                                              ; preds = %353
  %358 = load ptr, ptr @gBS, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %358, i32 0, i32 7
  %360 = load ptr, ptr %359, align 8, !tbaa !52
  %361 = load ptr, ptr %13, align 8, !tbaa !5
  %362 = call i64 %360(ptr noundef %361)
  br label %363

363:                                              ; preds = %357, %353
  br label %364

364:                                              ; preds = %363, %87, %76
  %365 = load i8, ptr %17, align 1, !tbaa !18
  %366 = icmp ne i8 %365, 0
  br i1 %366, label %367, label %377

367:                                              ; preds = %364
  %368 = load ptr, ptr %14, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct._EFI_PCI_IO_PROTOCOL, ptr %368, i32 0, i32 12
  %370 = load ptr, ptr %369, align 8, !tbaa !20
  %371 = load ptr, ptr %14, align 8, !tbaa !5
  %372 = load ptr, ptr %11, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.UNDI32_DEV, ptr %372, i32 0, i32 5
  %374 = getelementptr inbounds %struct.s_data_instance, ptr %373, i32 0, i32 60
  %375 = load i64, ptr %374, align 8, !tbaa !54
  %376 = call i64 %370(ptr noundef %371, i32 noundef 1, i64 noundef %375, ptr noundef null)
  br label %377

377:                                              ; preds = %367, %364
  %378 = load ptr, ptr @gBS, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %378, i32 0, i32 7
  %380 = load ptr, ptr %379, align 8, !tbaa !52
  %381 = load ptr, ptr %11, align 8, !tbaa !5
  %382 = call i64 %380(ptr noundef %381)
  br label %383

383:                                              ; preds = %377, %62
  %384 = load ptr, ptr @gBS, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %384, i32 0, i32 34
  %386 = load ptr, ptr %385, align 8, !tbaa !17
  %387 = load ptr, ptr %6, align 8, !tbaa !5
  %388 = load ptr, ptr %5, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %388, i32 0, i32 5
  %390 = load ptr, ptr %389, align 8, !tbaa !14
  %391 = load ptr, ptr %6, align 8, !tbaa !5
  %392 = call i64 %386(ptr noundef %387, ptr noundef @gEfiDevicePathProtocolGuid, ptr noundef %390, ptr noundef %391)
  %393 = load ptr, ptr @gBS, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %393, i32 0, i32 34
  %395 = load ptr, ptr %394, align 8, !tbaa !17
  %396 = load ptr, ptr %6, align 8, !tbaa !5
  %397 = load ptr, ptr %5, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %397, i32 0, i32 5
  %399 = load ptr, ptr %398, align 8, !tbaa !14
  %400 = load ptr, ptr %6, align 8, !tbaa !5
  %401 = call i64 %395(ptr noundef %396, ptr noundef @gEfiPciIoProtocolGuid, ptr noundef %399, ptr noundef %400)
  %402 = load i64, ptr %8, align 8, !tbaa !16
  store i64 %402, ptr %4, align 8
  store i32 1, ptr %18, align 4
  br label %403

403:                                              ; preds = %383, %315, %44, %30
  call void @llvm.lifetime.end.p0(i64 1, 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 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  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
  %404 = load i64, ptr %4, align 8
  ret i64 %404
}

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

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

declare ptr @ZeroMem(ptr noundef, i64 noundef) #2

declare void @PxeStructInit(ptr noundef) #2

declare void @PxeUpdate(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @AppendMac2DevPath(ptr noundef, ptr noundef, ptr noundef) #0

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 280}
!10 = !{!"", !11, i64 0, !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, !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, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!11 = !{!"", !12, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 40}
!15 = !{!"_EFI_DRIVER_BINDING_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !6, i64 32, !6, i64 40}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !6, i64 288}
!18 = !{!7, !7, i64 0}
!19 = !{!10, !6, i64 64}
!20 = !{!21, !6, i64 120}
!21 = !{!"_EFI_PCI_IO_PROTOCOL", !6, i64 0, !6, i64 8, !22, i64 16, !22, i64 32, !22, i64 48, !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, !12, i64 144, !6, i64 152}
!22 = !{!"", !6, i64 0, !6, i64 8}
!23 = !{!24, !12, i64 16}
!24 = !{!"", !12, i64 0, !25, i64 8, !6, i64 48, !6, i64 56, !6, i64 64, !27, i64 72}
!25 = !{!"_EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !7, i64 28, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !26, i64 36}
!26 = !{!"short", !7, i64 0}
!27 = !{!"s_data_instance", !26, i64 0, !26, i64 2, !7, i64 4, !7, i64 5, !26, i64 6, !26, i64 8, !26, i64 10, !26, i64 12, !26, i64 14, !7, i64 16, !7, i64 48, !7, i64 80, !7, i64 112, !7, i64 368, !13, i64 880, !13, i64 884, !26, i64 888, !26, i64 890, !7, i64 892, !7, i64 893, !7, i64 894, !7, i64 895, !26, i64 896, !26, i64 898, !26, i64 900, !26, i64 902, !13, i64 904, !13, i64 908, !26, i64 912, !26, i64 914, !7, i64 916, !7, i64 920, !7, i64 921, !26, i64 922, !13, i64 924, !6, i64 928, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !12, i64 976, !12, i64 984, !12, i64 992, !12, i64 1000, !12, i64 1008, !7, i64 1016, !26, i64 1528, !26, i64 1530, !26, i64 1532, !26, i64 1534, !7, i64 1536, !7, i64 1537, !7, i64 1538, !7, i64 1539, !7, i64 1540, !7, i64 1541, !28, i64 1544, !12, i64 1808, !6, i64 1816, !12, i64 1824, !6, i64 1832, !6, i64 1840, !6, i64 1848, !6, i64 1856, !6, i64 1864, !6, i64 1872, !6, i64 1880, !6, i64 1888, !6, i64 1896, !6, i64 1904, !6, i64 1912}
!28 = !{!"mc", !7, i64 0, !26, i64 6, !7, i64 8}
!29 = !{!21, !6, i64 48}
!30 = !{!31, !26, i64 4}
!31 = !{!"CONFIG_HEADER", !26, i64 0, !26, i64 2, !26, i64 4, !26, i64 6, !26, i64 8, !26, i64 10, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !26, i64 44, !26, i64 46, !13, i64 48, !7, i64 52, !7, i64 53, !26, i64 54, !13, i64 56, !7, i64 60, !7, i64 61, !7, i64 62, !7, i64 63}
!32 = !{!26, !26, i64 0}
!33 = !{!21, !6, i64 56}
!34 = !{!31, !7, i64 13}
!35 = !{!36, !7, i64 7}
!36 = !{!"s_pxe_sw_undi", !13, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !13, i64 12, !12, i64 16, !7, i64 24, !7, i64 27, !7, i64 28}
!37 = !{!36, !7, i64 10}
!38 = !{!24, !26, i64 44}
!39 = !{!24, !6, i64 1888}
!40 = !{!24, !6, i64 56}
!41 = !{!24, !12, i64 0}
!42 = !{!24, !12, i64 8}
!43 = !{!24, !7, i64 40}
!44 = !{!24, !7, i64 41}
!45 = !{!24, !7, i64 42}
!46 = !{!24, !13, i64 32}
!47 = !{!24, !12, i64 24}
!48 = !{!24, !7, i64 43}
!49 = !{!24, !6, i64 48}
!50 = !{!10, !6, i64 328}
!51 = !{!24, !6, i64 64}
!52 = !{!10, !6, i64 72}
!53 = !{!10, !6, i64 336}
!54 = !{!24, !12, i64 1896}


; 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.GUID = type { i32, i16, i16, [8 x i8] }

@pxe_31 = external dso_local local_unnamed_addr global ptr, align 8
@UndiDataPointer = external dso_local global ptr, align 8
@UNDI32DeviceList = external dso_local local_unnamed_addr global [16 x ptr], align 16
@gBS = external local_unnamed_addr global ptr, align 8
@gEfiDevicePathProtocolGuid = external global %struct.GUID, align 4
@gEfiPciIoProtocolGuid = external global %struct.GUID, align 4
@gEfiNetworkInterfaceIdentifierProtocolGuid_31 = external global %struct.GUID, align 4

; Function Attrs: nounwind uwtable
define dso_local i64 @UndiDriverStart(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readnone %2) local_unnamed_addr #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i16, align 2
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  %10 = load ptr, ptr @gBS, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 280
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  %14 = load ptr, ptr %13, align 8, !tbaa !14
  %15 = call i64 %12(ptr noundef %1, ptr noundef nonnull @gEfiPciIoProtocolGuid, ptr noundef nonnull %8, ptr noundef %14, ptr noundef %1, i32 noundef 16) #3
  %16 = icmp slt i64 %15, 0
  br i1 %16, label %233, label %17

17:                                               ; preds = %3
  %18 = load ptr, ptr @gBS, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 280
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = load ptr, ptr %13, align 8, !tbaa !14
  %22 = call i64 %20(ptr noundef %1, ptr noundef nonnull @gEfiDevicePathProtocolGuid, ptr noundef nonnull %4, ptr noundef %21, ptr noundef %1, i32 noundef 16) #3
  %23 = icmp slt i64 %22, 0
  %24 = load ptr, ptr @gBS, align 8, !tbaa !5
  br i1 %23, label %25, label %30

25:                                               ; preds = %17
  %26 = getelementptr inbounds i8, ptr %24, i64 288
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %28 = load ptr, ptr %13, align 8, !tbaa !14
  %29 = call i64 %27(ptr noundef %1, ptr noundef nonnull @gEfiPciIoProtocolGuid, ptr noundef %28, ptr noundef %1) #3
  br label %233

30:                                               ; preds = %17
  %31 = getelementptr inbounds i8, ptr %24, i64 64
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = call i64 %32(i32 noundef 6, i64 noundef 1992, ptr noundef nonnull %5) #3
  %34 = icmp slt i64 %33, 0
  br i1 %34, label %222, label %35

35:                                               ; preds = %30
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = call ptr @ZeroMem(ptr noundef %36, i64 noundef 1992) #3
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 120
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 1896
  %43 = call i64 %40(ptr noundef %38, i32 noundef 0, i64 noundef 0, ptr noundef nonnull %42) #3
  %44 = icmp slt i64 %43, 0
  br i1 %44, label %216, label %45

45:                                               ; preds = %35
  store ptr null, ptr %7, align 8, !tbaa !5
  %46 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %60

48:                                               ; preds = %45
  %49 = load ptr, ptr @gBS, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 64
  %51 = load ptr, ptr %50, align 8, !tbaa !17
  %52 = call i64 %51(i32 noundef 6, i64 noundef 96, ptr noundef nonnull %7) #3
  %53 = icmp slt i64 %52, 0
  br i1 %53, label %208, label %54

54:                                               ; preds = %48
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = call ptr @ZeroMem(ptr noundef %55, i64 noundef 96) #3
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = ptrtoint ptr %57 to i64
  %59 = and i64 %58, 15
  %.not = icmp eq i64 %59, 0
  %storemerge.idx = select i1 %.not, i64 0, i64 8
  %storemerge = getelementptr inbounds i8, ptr %57, i64 %storemerge.idx
  store ptr %storemerge, ptr @pxe_31, align 8, !tbaa !5
  call void @PxeStructInit(ptr noundef %storemerge) #3
  %.pre = load ptr, ptr @pxe_31, align 8, !tbaa !5
  br label %60

60:                                               ; preds = %54, %45
  %61 = phi ptr [ %.pre, %54 ], [ %46, %45 ]
  %62 = ptrtoint ptr %61 to i64
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  store i64 %62, ptr %64, align 8, !tbaa !21
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 120
  %67 = load ptr, ptr %66, align 8, !tbaa !18
  %68 = call i64 %67(ptr noundef %65, i32 noundef 4, i64 noundef 0, ptr noundef nonnull %9) #3
  %69 = icmp slt i64 %68, 0
  br i1 %69, label %77, label %70

70:                                               ; preds = %60
  %71 = load i64, ptr %9, align 8, !tbaa !27
  %72 = and i64 %71, 1792
  store i64 %72, ptr %9, align 8, !tbaa !27
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 120
  %75 = load ptr, ptr %74, align 8, !tbaa !18
  %76 = call i64 %75(ptr noundef %73, i32 noundef 2, i64 noundef %72, ptr noundef null) #3
  br label %77

77:                                               ; preds = %70, %60
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i64 48
  %80 = load ptr, ptr %79, align 8, !tbaa !28
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %81, i64 184
  %83 = call i64 %80(ptr noundef %78, i32 noundef 2, i32 noundef 0, i64 noundef 64, ptr noundef nonnull %82) #3
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 188
  %86 = load i16, ptr %85, align 1, !tbaa !29
  %87 = or i16 %86, 5
  store i16 %87, ptr %6, align 2, !tbaa !31
  %.not51 = icmp eq i16 %86, %87
  br i1 %.not51, label %94, label %88

88:                                               ; preds = %77
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 56
  %91 = load ptr, ptr %90, align 8, !tbaa !32
  %92 = call i64 %91(ptr noundef %89, i32 noundef 1, i32 noundef 4, i64 noundef 1, ptr noundef nonnull %6) #3
  %93 = load i16, ptr %6, align 2, !tbaa !31
  store i16 %93, ptr %85, align 1, !tbaa !29
  br label %94

94:                                               ; preds = %88, %77
  %95 = getelementptr inbounds i8, ptr %84, i64 197
  %96 = load i8, ptr %95, align 1, !tbaa !33
  %97 = icmp ult i8 %96, 32
  br i1 %97, label %98, label %103

98:                                               ; preds = %94
  store i8 32, ptr %95, align 1, !tbaa !33
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %99, i64 56
  %101 = load ptr, ptr %100, align 8, !tbaa !32
  %102 = call i64 %101(ptr noundef %99, i32 noundef 0, i32 noundef 13, i64 noundef 1, ptr noundef nonnull %95) #3
  br label %103

103:                                              ; preds = %98, %94
  %104 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i64 7
  %106 = load i8, ptr %105, align 1, !tbaa !34
  %107 = zext i8 %106 to i16
  %108 = getelementptr inbounds i8, ptr %104, i64 10
  %109 = load i8, ptr %108, align 1, !tbaa !36
  %110 = zext i8 %109 to i16
  %111 = shl nuw i16 %110, 8
  %112 = or disjoint i16 %111, %107
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %113, i64 44
  store i16 %112, ptr %114, align 4, !tbaa !37
  %115 = getelementptr inbounds i8, ptr %113, i64 72
  call void @PxeUpdate(ptr noundef nonnull %115, ptr noundef %104) #3
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds i8, ptr %117, i64 1888
  store ptr %116, ptr %118, align 8, !tbaa !38
  %119 = getelementptr inbounds i8, ptr %117, i64 44
  %120 = load i16, ptr %119, align 4, !tbaa !37
  %121 = zext i16 %120 to i64
  %122 = getelementptr inbounds [16 x ptr], ptr @UNDI32DeviceList, i64 0, i64 %121
  store ptr %117, ptr %122, align 8, !tbaa !5
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds i8, ptr %117, i64 56
  store ptr %123, ptr %124, align 8, !tbaa !39
  %125 = getelementptr inbounds i8, ptr %117, i64 64
  %126 = getelementptr inbounds i8, ptr %117, i64 72
  %127 = call i64 @AppendMac2DevPath(ptr noundef nonnull %125, ptr noundef %123, ptr noundef nonnull %126)
  %.not52 = icmp eq i64 %127, 0
  br i1 %.not52, label %128, label %200

128:                                              ; preds = %103
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  store i64 1768189557, ptr %129, align 8, !tbaa !40
  %130 = getelementptr inbounds i8, ptr %129, i64 8
  store i64 65537, ptr %130, align 8, !tbaa !41
  %131 = getelementptr inbounds i8, ptr %129, i64 40
  store i8 1, ptr %131, align 8, !tbaa !42
  %132 = getelementptr inbounds i8, ptr %129, i64 41
  store i8 3, ptr %132, align 1, !tbaa !43
  %133 = getelementptr inbounds i8, ptr %129, i64 42
  store i8 16, ptr %133, align 2, !tbaa !44
  %134 = getelementptr inbounds i8, ptr %129, i64 32
  store i32 0, ptr %134, align 8, !tbaa !45
  %135 = getelementptr inbounds i8, ptr %129, i64 24
  store i64 0, ptr %135, align 8, !tbaa !46
  %136 = getelementptr inbounds i8, ptr %129, i64 43
  store i8 0, ptr %136, align 1, !tbaa !47
  %137 = getelementptr inbounds i8, ptr %129, i64 36
  store <4 x i8> <i8 85, i8 78, i8 68, i8 73>, ptr %137, align 4, !tbaa !48
  %138 = getelementptr inbounds i8, ptr %129, i64 48
  store ptr null, ptr %138, align 8, !tbaa !49
  %139 = load ptr, ptr @gBS, align 8, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %139, i64 328
  %141 = load ptr, ptr %140, align 8, !tbaa !50
  %142 = getelementptr inbounds i8, ptr %129, i64 64
  %143 = load ptr, ptr %142, align 8, !tbaa !51
  %144 = call i64 (ptr, ...) %141(ptr noundef nonnull %138, ptr noundef nonnull @gEfiNetworkInterfaceIdentifierProtocolGuid_31, ptr noundef nonnull %130, ptr noundef nonnull @gEfiDevicePathProtocolGuid, ptr noundef %143, ptr noundef null) #3
  %145 = icmp slt i64 %144, 0
  br i1 %145, label %188, label %146

146:                                              ; preds = %128
  %147 = load ptr, ptr @UndiDataPointer, align 8, !tbaa !5
  %.not53 = icmp eq ptr %147, null
  br i1 %.not53, label %.thread, label %148

148:                                              ; preds = %146
  %149 = load ptr, ptr @gBS, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i64 72
  %151 = load ptr, ptr %150, align 8, !tbaa !52
  %152 = call i64 %151(ptr noundef nonnull %147) #3
  %153 = icmp slt i64 %152, 0
  br i1 %153, label %188, label %.thread

.thread:                                          ; preds = %146, %148
  %154 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  %155 = getelementptr inbounds i8, ptr %154, i64 7
  %156 = load i8, ptr %155, align 1, !tbaa !34
  %157 = zext i8 %156 to i64
  %158 = getelementptr inbounds i8, ptr %154, i64 10
  %159 = load i8, ptr %158, align 1, !tbaa !36
  %160 = zext i8 %159 to i64
  %161 = shl nuw nsw i64 %160, 12
  %162 = shl nuw nsw i64 %157, 4
  %163 = or disjoint i64 %162, %161
  %164 = or disjoint i64 %163, 8
  %165 = load ptr, ptr @gBS, align 8, !tbaa !5
  %166 = getelementptr inbounds i8, ptr %165, i64 64
  %167 = load ptr, ptr %166, align 8, !tbaa !17
  %168 = call i64 %167(i32 noundef 6, i64 noundef %164, ptr noundef nonnull @UndiDataPointer) #3
  %169 = icmp slt i64 %168, 0
  %170 = load ptr, ptr @gBS, align 8, !tbaa !5
  br i1 %169, label %179, label %171

171:                                              ; preds = %.thread
  %172 = getelementptr inbounds i8, ptr %170, i64 280
  %173 = load ptr, ptr %172, align 8, !tbaa !9
  %174 = load ptr, ptr %13, align 8, !tbaa !14
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  %176 = getelementptr inbounds i8, ptr %175, i64 48
  %177 = load ptr, ptr %176, align 8, !tbaa !49
  %178 = call i64 %173(ptr noundef %1, ptr noundef nonnull @gEfiPciIoProtocolGuid, ptr noundef nonnull %8, ptr noundef %174, ptr noundef %177, i32 noundef 8) #3
  br label %233

179:                                              ; preds = %.thread
  %180 = getelementptr inbounds i8, ptr %170, i64 336
  %181 = load ptr, ptr %180, align 8, !tbaa !53
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds i8, ptr %182, i64 48
  %184 = getelementptr inbounds i8, ptr %182, i64 8
  %185 = getelementptr inbounds i8, ptr %182, i64 64
  %186 = load ptr, ptr %185, align 8, !tbaa !51
  %187 = call i64 (ptr, ...) %181(ptr noundef nonnull %183, ptr noundef nonnull @gEfiNetworkInterfaceIdentifierProtocolGuid_31, ptr noundef nonnull %184, ptr noundef nonnull @gEfiDevicePathProtocolGuid, ptr noundef %186, ptr noundef null) #3
  br label %188

188:                                              ; preds = %148, %128, %179
  %.1 = phi i64 [ %144, %128 ], [ %152, %148 ], [ %168, %179 ]
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds i8, ptr %189, i64 44
  %191 = load i16, ptr %190, align 4, !tbaa !37
  %192 = zext i16 %191 to i64
  %193 = getelementptr inbounds [16 x ptr], ptr @UNDI32DeviceList, i64 0, i64 %192
  store ptr null, ptr %193, align 8, !tbaa !5
  %194 = load ptr, ptr @gBS, align 8, !tbaa !5
  %195 = getelementptr inbounds i8, ptr %194, i64 72
  %196 = load ptr, ptr %195, align 8, !tbaa !52
  %197 = getelementptr inbounds i8, ptr %189, i64 64
  %198 = load ptr, ptr %197, align 8, !tbaa !51
  %199 = call i64 %196(ptr noundef %198) #3
  br label %200

200:                                              ; preds = %103, %188
  %.2 = phi i64 [ %127, %103 ], [ %.1, %188 ]
  %201 = load ptr, ptr @pxe_31, align 8, !tbaa !5
  call void @PxeUpdate(ptr noundef null, ptr noundef %201) #3
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %.not54 = icmp eq ptr %202, null
  br i1 %.not54, label %208, label %203

203:                                              ; preds = %200
  %204 = load ptr, ptr @gBS, align 8, !tbaa !5
  %205 = getelementptr inbounds i8, ptr %204, i64 72
  %206 = load ptr, ptr %205, align 8, !tbaa !52
  %207 = call i64 %206(ptr noundef nonnull %202) #3
  br label %208

208:                                              ; preds = %200, %203, %48
  %.3.ph = phi i64 [ %.2, %200 ], [ %.2, %203 ], [ %52, %48 ]
  %209 = load ptr, ptr %8, align 8, !tbaa !5
  %210 = getelementptr inbounds i8, ptr %209, i64 120
  %211 = load ptr, ptr %210, align 8, !tbaa !18
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds i8, ptr %212, i64 1896
  %214 = load i64, ptr %213, align 8, !tbaa !54
  %215 = call i64 %211(ptr noundef %209, i32 noundef 1, i64 noundef %214, ptr noundef null) #3
  br label %216

216:                                              ; preds = %35, %208
  %.360 = phi i64 [ %.3.ph, %208 ], [ %43, %35 ]
  %217 = load ptr, ptr @gBS, align 8, !tbaa !5
  %218 = getelementptr inbounds i8, ptr %217, i64 72
  %219 = load ptr, ptr %218, align 8, !tbaa !52
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = call i64 %219(ptr noundef %220) #3
  br label %222

222:                                              ; preds = %30, %216
  %.4 = phi i64 [ %33, %30 ], [ %.360, %216 ]
  %223 = load ptr, ptr @gBS, align 8, !tbaa !5
  %224 = getelementptr inbounds i8, ptr %223, i64 288
  %225 = load ptr, ptr %224, align 8, !tbaa !16
  %226 = load ptr, ptr %13, align 8, !tbaa !14
  %227 = call i64 %225(ptr noundef %1, ptr noundef nonnull @gEfiDevicePathProtocolGuid, ptr noundef %226, ptr noundef %1) #3
  %228 = load ptr, ptr @gBS, align 8, !tbaa !5
  %229 = getelementptr inbounds i8, ptr %228, i64 288
  %230 = load ptr, ptr %229, align 8, !tbaa !16
  %231 = load ptr, ptr %13, align 8, !tbaa !14
  %232 = call i64 %230(ptr noundef %1, ptr noundef nonnull @gEfiPciIoProtocolGuid, ptr noundef %231, ptr noundef %1) #3
  br label %233

233:                                              ; preds = %3, %222, %171, %25
  %.038 = phi i64 [ %22, %25 ], [ %.4, %222 ], [ 0, %171 ], [ %15, %3 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret i64 %.038
}

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

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

declare ptr @ZeroMem(ptr noundef, i64 noundef) local_unnamed_addr #2

declare void @PxeStructInit(ptr noundef) local_unnamed_addr #2

declare void @PxeUpdate(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @AppendMac2DevPath(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 280}
!10 = !{!"", !11, i64 0, !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, !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, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!11 = !{!"", !12, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 40}
!15 = !{!"_EFI_DRIVER_BINDING_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !6, i64 32, !6, i64 40}
!16 = !{!10, !6, i64 288}
!17 = !{!10, !6, i64 64}
!18 = !{!19, !6, i64 120}
!19 = !{!"_EFI_PCI_IO_PROTOCOL", !6, i64 0, !6, i64 8, !20, i64 16, !20, i64 32, !20, i64 48, !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, !12, i64 144, !6, i64 152}
!20 = !{!"", !6, i64 0, !6, i64 8}
!21 = !{!22, !12, i64 16}
!22 = !{!"", !12, i64 0, !23, i64 8, !6, i64 48, !6, i64 56, !6, i64 64, !25, i64 72}
!23 = !{!"_EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !7, i64 28, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !24, i64 36}
!24 = !{!"short", !7, i64 0}
!25 = !{!"s_data_instance", !24, i64 0, !24, i64 2, !7, i64 4, !7, i64 5, !24, i64 6, !24, i64 8, !24, i64 10, !24, i64 12, !24, i64 14, !7, i64 16, !7, i64 48, !7, i64 80, !7, i64 112, !7, i64 368, !13, i64 880, !13, i64 884, !24, i64 888, !24, i64 890, !7, i64 892, !7, i64 893, !7, i64 894, !7, i64 895, !24, i64 896, !24, i64 898, !24, i64 900, !24, i64 902, !13, i64 904, !13, i64 908, !24, i64 912, !24, i64 914, !7, i64 916, !7, i64 920, !7, i64 921, !24, i64 922, !13, i64 924, !6, i64 928, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !12, i64 976, !12, i64 984, !12, i64 992, !12, i64 1000, !12, i64 1008, !7, i64 1016, !24, i64 1528, !24, i64 1530, !24, i64 1532, !24, i64 1534, !7, i64 1536, !7, i64 1537, !7, i64 1538, !7, i64 1539, !7, i64 1540, !7, i64 1541, !26, i64 1544, !12, i64 1808, !6, i64 1816, !12, i64 1824, !6, i64 1832, !6, i64 1840, !6, i64 1848, !6, i64 1856, !6, i64 1864, !6, i64 1872, !6, i64 1880, !6, i64 1888, !6, i64 1896, !6, i64 1904, !6, i64 1912}
!26 = !{!"mc", !7, i64 0, !24, i64 6, !7, i64 8}
!27 = !{!12, !12, i64 0}
!28 = !{!19, !6, i64 48}
!29 = !{!30, !24, i64 4}
!30 = !{!"CONFIG_HEADER", !24, i64 0, !24, i64 2, !24, i64 4, !24, i64 6, !24, i64 8, !24, i64 10, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !24, i64 44, !24, i64 46, !13, i64 48, !7, i64 52, !7, i64 53, !24, i64 54, !13, i64 56, !7, i64 60, !7, i64 61, !7, i64 62, !7, i64 63}
!31 = !{!24, !24, i64 0}
!32 = !{!19, !6, i64 56}
!33 = !{!30, !7, i64 13}
!34 = !{!35, !7, i64 7}
!35 = !{!"s_pxe_sw_undi", !13, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !13, i64 12, !12, i64 16, !7, i64 24, !7, i64 27, !7, i64 28}
!36 = !{!35, !7, i64 10}
!37 = !{!22, !24, i64 44}
!38 = !{!22, !6, i64 1888}
!39 = !{!22, !6, i64 56}
!40 = !{!22, !12, i64 0}
!41 = !{!22, !12, i64 8}
!42 = !{!22, !7, i64 40}
!43 = !{!22, !7, i64 41}
!44 = !{!22, !7, i64 42}
!45 = !{!22, !13, i64 32}
!46 = !{!22, !12, i64 24}
!47 = !{!22, !7, i64 43}
!48 = !{!7, !7, i64 0}
!49 = !{!22, !6, i64 48}
!50 = !{!10, !6, i64 328}
!51 = !{!22, !6, i64 64}
!52 = !{!10, !6, i64 72}
!53 = !{!10, !6, i64 336}
!54 = !{!22, !12, i64 1896}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass