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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.EFI_INPUT_KEY = type { i16, i16 }
%struct._PXEBC_PRIVATE_DATA = type { i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct._EFI_PXE_BASE_CODE_PROTOCOL, %struct._EFI_LOAD_FILE_PROTOCOL, %struct._EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL, ptr, ptr, ptr, ptr, %struct.EFI_IP4_CONFIG_DATA, ptr, ptr, ptr, i16, %struct.EFI_UDP4_CONFIG_DATA, %struct.EFI_PXE_BASE_CODE_MODE, i32, ptr, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, i8, i32, i64, i64, [312 x i8], %struct.EFI_DHCP4_PACKET, %struct.EFI_MAC_ADDRESS, i8, i8, i8, i32, i32, i32, %struct.PXEBC_CACHED_DHCP4_PACKET, %struct.PXEBC_CACHED_DHCP4_PACKET, %struct.PXEBC_CACHED_DHCP4_PACKET, [16 x %struct.PXEBC_CACHED_DHCP4_PACKET], [5 x i32], [5 x [16 x i32]], i32, [5 x i32], [16 x i32], ptr, %struct.EFI_IP4_COMPLETION_TOKEN }
%struct._EFI_PXE_BASE_CODE_PROTOCOL = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._EFI_LOAD_FILE_PROTOCOL = type { ptr }
%struct._EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL = type { i64, ptr }
%struct.EFI_IP4_CONFIG_DATA = type { i8, i8, i8, i8, i8, i8, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i8, i8, i8, i8, i32, i32 }
%struct.EFI_IPv4_ADDRESS = type { [4 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_PXE_BASE_CODE_MODE = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %union.EFI_PXE_BASE_CODE_PACKET, %struct.EFI_PXE_BASE_CODE_IP_FILTER, i32, [8 x %struct.EFI_PXE_BASE_CODE_ARP_ENTRY], i32, [8 x %struct.EFI_PXE_BASE_CODE_ROUTE_ENTRY], %struct.EFI_PXE_BASE_CODE_ICMP_ERROR, %struct.EFI_PXE_BASE_CODE_TFTP_ERROR }
%union.EFI_PXE_BASE_CODE_PACKET = type { %struct.EFI_PXE_BASE_CODE_DHCPV6_PACKET, [444 x i8] }
%struct.EFI_PXE_BASE_CODE_DHCPV6_PACKET = type { i32, [1024 x i8] }
%struct.EFI_PXE_BASE_CODE_IP_FILTER = type { i8, i8, i16, [8 x %union.EFI_IP_ADDRESS] }
%struct.EFI_PXE_BASE_CODE_ARP_ENTRY = type { %union.EFI_IP_ADDRESS, %struct.EFI_MAC_ADDRESS }
%struct.EFI_PXE_BASE_CODE_ROUTE_ENTRY = type { %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS, %union.EFI_IP_ADDRESS }
%struct.EFI_PXE_BASE_CODE_ICMP_ERROR = type { i8, i8, i16, %union.anon, [494 x i8] }
%union.anon = type { i32 }
%struct.EFI_PXE_BASE_CODE_TFTP_ERROR = type { i8, [127 x i8] }
%union.EFI_IP_ADDRESS = type { [4 x i32] }
%struct.EFI_DHCP4_PACKET = type <{ i32, i32, %struct.anon }>
%struct.anon = type <{ %struct.EFI_DHCP4_HEADER, i32, [1 x i8] }>
%struct.EFI_DHCP4_HEADER = type { i8, i8, i8, i8, i32, i16, i16, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, [16 x i8], [64 x i8], [128 x i8] }
%struct.EFI_MAC_ADDRESS = type { [32 x i8] }
%struct.PXEBC_CACHED_DHCP4_PACKET = type { %union.PXEBC_DHCP4_PACKET, i8, i8, [7 x ptr], %struct.PXEBC_VENDOR_OPTION }
%union.PXEBC_DHCP4_PACKET = type { [1480 x i8] }
%struct.PXEBC_VENDOR_OPTION = type { [8 x i32], %struct.EFI_IPv4_ADDRESS, i16, i16, i8, i8, i8, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i16, i16, i16, i16, ptr, i8, ptr, i8, ptr, i8, ptr, i8 }
%struct.EFI_IP4_COMPLETION_TOKEN = type { ptr, i64, %union.anon.1 }
%union.anon.1 = type { ptr }
%struct.PXEBC_BOOT_MENU_ENTRY = type { i16, i8, [1 x i8] }
%struct.EFI_SYSTEM_TABLE = type { %struct.EFI_TABLE_HEADER, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, ptr }
%struct.EFI_TABLE_HEADER = type { i64, i32, i32, i32, i32 }
%struct._EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_SIMPLE_TEXT_OUTPUT_MODE = type { i32, i32, i32, i32, i32, i8 }
%struct._EFI_SIMPLE_TEXT_INPUT_PROTOCOL = type { ptr, ptr, ptr }
%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 }

@.str = external hidden unnamed_addr constant [157 x i8], align 1
@gBS = external global ptr, align 8
@gST = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

declare zeroext i8 @DebugAssertEnabled() #1

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

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

declare ptr @SetMem(ptr noundef, i64 noundef, i8 noundef zeroext) #1

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

declare i64 @AsciiPrint(ptr noundef, ...) #1

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

30:                                               ; preds = %3
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %31, i32 0, i32 43
  store ptr %32, ptr %8, align 8, !tbaa !5
  br label %36

33:                                               ; preds = %3
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._PXEBC_PRIVATE_DATA, ptr %34, i32 0, i32 44
  store ptr %35, ptr %8, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %33, %30
  br label %37

37:                                               ; preds = %36
  %38 = call zeroext i8 @DebugAssertEnabled()
  %39 = icmp ne i8 %38, 0
  br i1 %39, label %40, label %48

40:                                               ; preds = %37
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.PXEBC_CACHED_DHCP4_PACKET, ptr %41, i32 0, i32 2
  %43 = load i8, ptr %42, align 1, !tbaa !33
  %44 = zext i8 %43 to i32
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %47, label %46

46:                                               ; preds = %40
  call void @DebugAssert(ptr noundef @.str, i64 noundef 1755, ptr noundef @.str.15)
  br label %47

47:                                               ; preds = %46, %40
  br label %48

48:                                               ; preds = %47, %37
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.PXEBC_CACHED_DHCP4_PACKET, ptr %51, i32 0, i32 4
  store ptr %52, ptr %9, align 8, !tbaa !5
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.PXEBC_VENDOR_OPTION, ptr %53, i32 0, i32 0
  %55 = getelementptr inbounds [8 x i32], ptr %54, i64 0, i64 0
  %56 = load i32, ptr %55, align 8, !tbaa !34
  %57 = and i32 %56, 512
  %58 = icmp eq i32 %57, 512
  br i1 %58, label %60, label %59

59:                                               ; preds = %50
  store i64 0, ptr %4, align 8
  store i32 1, ptr %21, align 4
  br label %380

60:                                               ; preds = %50
  %61 = getelementptr inbounds [70 x i8], ptr %18, i64 0, i64 0
  %62 = call ptr @SetMem(ptr noundef %61, i64 noundef 70, i8 noundef zeroext 32)
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.PXEBC_VENDOR_OPTION, ptr %63, i32 0, i32 16
  %65 = load i8, ptr %64, align 8, !tbaa !35
  store i8 %65, ptr %11, align 1, !tbaa !9
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.PXEBC_VENDOR_OPTION, ptr %66, i32 0, i32 15
  %68 = load ptr, ptr %67, align 8, !tbaa !36
  store ptr %68, ptr %19, align 8, !tbaa !5
  %69 = load i8, ptr %11, align 1, !tbaa !9
  %70 = zext i8 %69 to i32
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %60
  store i64 -9223372036854775802, ptr %4, align 8
  store i32 1, ptr %21, align 4
  br label %380

73:                                               ; preds = %60
  br label %74

74:                                               ; preds = %105, %73
  %75 = load i8, ptr %11, align 1, !tbaa !9
  %76 = zext i8 %75 to i32
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %78, label %106

78:                                               ; preds = %74
  %79 = load ptr, ptr %19, align 8, !tbaa !5
  %80 = load i8, ptr %16, align 1, !tbaa !9
  %81 = add i8 %80, 1
  store i8 %81, ptr %16, align 1, !tbaa !9
  %82 = zext i8 %80 to i64
  %83 = getelementptr inbounds [24 x ptr], ptr %20, i64 0, i64 %82
  store ptr %79, ptr %83, align 8, !tbaa !5
  %84 = load i8, ptr %11, align 1, !tbaa !9
  %85 = zext i8 %84 to i32
  %86 = load ptr, ptr %19, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.PXEBC_BOOT_MENU_ENTRY, ptr %86, i32 0, i32 1
  %88 = load i8, ptr %87, align 2, !tbaa !37
  %89 = zext i8 %88 to i32
  %90 = add nsw i32 %89, 3
  %91 = sub nsw i32 %85, %90
  %92 = trunc i32 %91 to i8
  store i8 %92, ptr %11, align 1, !tbaa !9
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = load ptr, ptr %19, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.PXEBC_BOOT_MENU_ENTRY, ptr %94, i32 0, i32 1
  %96 = load i8, ptr %95, align 2, !tbaa !37
  %97 = zext i8 %96 to i32
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds i8, ptr %93, i64 %98
  %100 = getelementptr inbounds i8, ptr %99, i64 3
  store ptr %100, ptr %19, align 8, !tbaa !5
  %101 = load i8, ptr %16, align 1, !tbaa !9
  %102 = zext i8 %101 to i32
  %103 = icmp sge i32 %102, 24
  br i1 %103, label %104, label %105

104:                                              ; preds = %78
  br label %106

105:                                              ; preds = %78
  br label %74, !llvm.loop !39

106:                                              ; preds = %104, %74
  %107 = load i8, ptr %7, align 1, !tbaa !9
  %108 = icmp ne i8 %107, 0
  br i1 %108, label %109, label %119

109:                                              ; preds = %106
  %110 = getelementptr inbounds [24 x ptr], ptr %20, i64 0, i64 0
  %111 = load ptr, ptr %110, align 16, !tbaa !5
  %112 = getelementptr inbounds %struct.PXEBC_BOOT_MENU_ENTRY, ptr %111, i32 0, i32 0
  %113 = load i16, ptr %112, align 2, !tbaa !41
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  store i16 %113, ptr %114, align 2, !tbaa !10
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = load i16, ptr %115, align 2, !tbaa !10
  %117 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %116)
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  store i16 %117, ptr %118, align 2, !tbaa !10
  store i64 0, ptr %4, align 8
  store i32 1, ptr %21, align 4
  br label %380

119:                                              ; preds = %106
  %120 = load i8, ptr %16, align 1, !tbaa !9
  store i8 %120, ptr %12, align 1, !tbaa !9
  store i8 0, ptr %16, align 1, !tbaa !9
  br label %121

121:                                              ; preds = %140, %119
  %122 = load i8, ptr %16, align 1, !tbaa !9
  %123 = zext i8 %122 to i32
  %124 = load i8, ptr %12, align 1, !tbaa !9
  %125 = zext i8 %124 to i32
  %126 = icmp slt i32 %123, %125
  br i1 %126, label %127, label %143

127:                                              ; preds = %121
  %128 = load i8, ptr %16, align 1, !tbaa !9
  %129 = zext i8 %128 to i64
  %130 = getelementptr inbounds [24 x ptr], ptr %20, i64 0, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.PXEBC_BOOT_MENU_ENTRY, ptr %131, i32 0, i32 2
  %133 = getelementptr inbounds [1 x i8], ptr %132, i64 0, i64 0
  %134 = load i8, ptr %16, align 1, !tbaa !9
  %135 = zext i8 %134 to i64
  %136 = getelementptr inbounds [24 x ptr], ptr %20, i64 0, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.PXEBC_BOOT_MENU_ENTRY, ptr %137, i32 0, i32 1
  %139 = load i8, ptr %138, align 2, !tbaa !37
  call void @PxeBcDisplayBootItem(ptr noundef %133, i8 noundef zeroext %139)
  br label %140

140:                                              ; preds = %127
  %141 = load i8, ptr %16, align 1, !tbaa !9
  %142 = add i8 %141, 1
  store i8 %142, ptr %16, align 1, !tbaa !9
  br label %121, !llvm.loop !42

143:                                              ; preds = %121
  %144 = load ptr, ptr @gST, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %144, i32 0, i32 6
  %146 = load ptr, ptr %145, align 8, !tbaa !43
  %147 = getelementptr inbounds %struct._EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL, ptr %146, i32 0, i32 9
  %148 = load ptr, ptr %147, align 8, !tbaa !46
  %149 = getelementptr inbounds %struct.EFI_SIMPLE_TEXT_OUTPUT_MODE, ptr %148, i32 0, i32 4
  %150 = load i32, ptr %149, align 4, !tbaa !48
  %151 = load i8, ptr %12, align 1, !tbaa !9
  %152 = zext i8 %151 to i32
  %153 = sub nsw i32 %150, %152
  store i32 %153, ptr %13, align 4, !tbaa !34
  br label %154

154:                                              ; preds = %352, %143
  br label %155

155:                                              ; preds = %154
  %156 = call zeroext i8 @DebugAssertEnabled()
  %157 = icmp ne i8 %156, 0
  br i1 %157, label %158, label %164

158:                                              ; preds = %155
  %159 = load i16, ptr %14, align 2, !tbaa !10
  %160 = zext i16 %159 to i32
  %161 = icmp slt i32 %160, 24
  br i1 %161, label %163, label %162

162:                                              ; preds = %158
  call void @DebugAssert(ptr noundef @.str, i64 noundef 1796, ptr noundef @.str.16)
  br label %163

163:                                              ; preds = %162, %158
  br label %164

164:                                              ; preds = %163, %155
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  %167 = load ptr, ptr @gST, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %167, i32 0, i32 6
  %169 = load ptr, ptr %168, align 8, !tbaa !43
  %170 = getelementptr inbounds %struct._EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL, ptr %169, i32 0, i32 5
  %171 = load ptr, ptr %170, align 8, !tbaa !50
  %172 = load ptr, ptr @gST, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %172, i32 0, i32 6
  %174 = load ptr, ptr %173, align 8, !tbaa !43
  %175 = call i64 %171(ptr noundef %174, i64 noundef 112)
  %176 = load ptr, ptr @gST, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %176, i32 0, i32 6
  %178 = load ptr, ptr %177, align 8, !tbaa !43
  %179 = getelementptr inbounds %struct._EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL, ptr %178, i32 0, i32 7
  %180 = load ptr, ptr %179, align 8, !tbaa !51
  %181 = load ptr, ptr @gST, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %181, i32 0, i32 6
  %183 = load ptr, ptr %182, align 8, !tbaa !43
  %184 = load i32, ptr %13, align 4, !tbaa !34
  %185 = load i16, ptr %14, align 2, !tbaa !10
  %186 = zext i16 %185 to i32
  %187 = add nsw i32 %184, %186
  %188 = sext i32 %187 to i64
  %189 = call i64 %180(ptr noundef %183, i64 noundef 0, i64 noundef %188)
  %190 = load i16, ptr %14, align 2, !tbaa !10
  %191 = zext i16 %190 to i64
  %192 = getelementptr inbounds [24 x ptr], ptr %20, i64 0, i64 %191
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.PXEBC_BOOT_MENU_ENTRY, ptr %193, i32 0, i32 1
  %195 = load i8, ptr %194, align 2, !tbaa !37
  %196 = zext i8 %195 to i64
  %197 = getelementptr inbounds [70 x i8], ptr %18, i64 0, i64 %196
  store i8 0, ptr %197, align 1, !tbaa !9
  %198 = getelementptr inbounds [70 x i8], ptr %18, i64 0, i64 0
  %199 = call i64 (ptr, ...) @AsciiPrint(ptr noundef @.str.17, ptr noundef %198)
  %200 = load i16, ptr %14, align 2, !tbaa !10
  %201 = zext i16 %200 to i64
  %202 = getelementptr inbounds [24 x ptr], ptr %20, i64 0, i64 %201
  %203 = load ptr, ptr %202, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.PXEBC_BOOT_MENU_ENTRY, ptr %203, i32 0, i32 2
  %205 = getelementptr inbounds [1 x i8], ptr %204, i64 0, i64 0
  %206 = load i16, ptr %14, align 2, !tbaa !10
  %207 = zext i16 %206 to i64
  %208 = getelementptr inbounds [24 x ptr], ptr %20, i64 0, i64 %207
  %209 = load ptr, ptr %208, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.PXEBC_BOOT_MENU_ENTRY, ptr %209, i32 0, i32 1
  %211 = load i8, ptr %210, align 2, !tbaa !37
  call void @PxeBcDisplayBootItem(ptr noundef %205, i8 noundef zeroext %211)
  %212 = load ptr, ptr @gST, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %212, i32 0, i32 6
  %214 = load ptr, ptr %213, align 8, !tbaa !43
  %215 = getelementptr inbounds %struct._EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL, ptr %214, i32 0, i32 7
  %216 = load ptr, ptr %215, align 8, !tbaa !51
  %217 = load ptr, ptr @gST, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %217, i32 0, i32 6
  %219 = load ptr, ptr %218, align 8, !tbaa !43
  %220 = load i32, ptr %13, align 4, !tbaa !34
  %221 = load i8, ptr %12, align 1, !tbaa !9
  %222 = zext i8 %221 to i32
  %223 = add nsw i32 %220, %222
  %224 = sext i32 %223 to i64
  %225 = call i64 %216(ptr noundef %219, i64 noundef 0, i64 noundef %224)
  %226 = load i16, ptr %14, align 2, !tbaa !10
  store i16 %226, ptr %15, align 2, !tbaa !10
  br label %227

227:                                              ; preds = %238, %166
  %228 = load ptr, ptr @gST, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %228, i32 0, i32 4
  %230 = load ptr, ptr %229, align 8, !tbaa !52
  %231 = getelementptr inbounds %struct._EFI_SIMPLE_TEXT_INPUT_PROTOCOL, ptr %230, i32 0, i32 1
  %232 = load ptr, ptr %231, align 8, !tbaa !53
  %233 = load ptr, ptr @gST, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %233, i32 0, i32 4
  %235 = load ptr, ptr %234, align 8, !tbaa !52
  %236 = call i64 %232(ptr noundef %235, ptr noundef %10)
  %237 = icmp eq i64 %236, -9223372036854775802
  br i1 %237, label %238, label %243

238:                                              ; preds = %227
  %239 = load ptr, ptr @gBS, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %239, i32 0, i32 29
  %241 = load ptr, ptr %240, align 8, !tbaa !55
  %242 = call i64 %241(i64 noundef 100000)
  br label %227, !llvm.loop !57

243:                                              ; preds = %227
  %244 = getelementptr inbounds %struct.EFI_INPUT_KEY, ptr %10, i32 0, i32 0
  %245 = load i16, ptr %244, align 2, !tbaa !58
  %246 = zext i16 %245 to i32
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %262

248:                                              ; preds = %243
  %249 = getelementptr inbounds %struct.EFI_INPUT_KEY, ptr %10, i32 0, i32 1
  %250 = load i16, ptr %249, align 2, !tbaa !60
  %251 = zext i16 %250 to i32
  switch i32 %251, label %259 [
    i32 3, label %252
    i32 10, label %254
    i32 13, label %254
    i32 9, label %255
    i32 32, label %255
    i32 100, label %255
    i32 68, label %255
    i32 8, label %257
    i32 117, label %257
    i32 85, label %257
  ]

252:                                              ; preds = %248
  %253 = getelementptr inbounds %struct.EFI_INPUT_KEY, ptr %10, i32 0, i32 0
  store i16 23, ptr %253, align 2, !tbaa !58
  br label %261

254:                                              ; preds = %248, %248
  store i8 1, ptr %17, align 1, !tbaa !9
  br label %261

255:                                              ; preds = %248, %248, %248, %248
  %256 = getelementptr inbounds %struct.EFI_INPUT_KEY, ptr %10, i32 0, i32 0
  store i16 2, ptr %256, align 2, !tbaa !58
  br label %261

257:                                              ; preds = %248, %248, %248
  %258 = getelementptr inbounds %struct.EFI_INPUT_KEY, ptr %10, i32 0, i32 0
  store i16 1, ptr %258, align 2, !tbaa !58
  br label %261

259:                                              ; preds = %248
  %260 = getelementptr inbounds %struct.EFI_INPUT_KEY, ptr %10, i32 0, i32 0
  store i16 0, ptr %260, align 2, !tbaa !58
  br label %261

261:                                              ; preds = %259, %257, %255, %254, %252
  br label %262

262:                                              ; preds = %261, %243
  %263 = getelementptr inbounds %struct.EFI_INPUT_KEY, ptr %10, i32 0, i32 0
  %264 = load i16, ptr %263, align 2, !tbaa !58
  %265 = zext i16 %264 to i32
  switch i32 %265, label %292 [
    i32 4, label %266
    i32 1, label %266
    i32 2, label %274
    i32 3, label %274
    i32 9, label %285
    i32 5, label %285
    i32 10, label %286
    i32 6, label %286
    i32 23, label %291
  ]

266:                                              ; preds = %262, %262
  %267 = load i16, ptr %14, align 2, !tbaa !10
  %268 = zext i16 %267 to i32
  %269 = icmp sgt i32 %268, 0
  br i1 %269, label %270, label %273

270:                                              ; preds = %266
  %271 = load i16, ptr %14, align 2, !tbaa !10
  %272 = add i16 %271, -1
  store i16 %272, ptr %14, align 2, !tbaa !10
  br label %273

273:                                              ; preds = %270, %266
  br label %292

274:                                              ; preds = %262, %262
  %275 = load i16, ptr %14, align 2, !tbaa !10
  %276 = add i16 %275, 1
  store i16 %276, ptr %14, align 2, !tbaa !10
  %277 = zext i16 %276 to i32
  %278 = load i8, ptr %12, align 1, !tbaa !9
  %279 = zext i8 %278 to i32
  %280 = icmp eq i32 %277, %279
  br i1 %280, label %281, label %284

281:                                              ; preds = %274
  %282 = load i16, ptr %14, align 2, !tbaa !10
  %283 = add i16 %282, -1
  store i16 %283, ptr %14, align 2, !tbaa !10
  br label %284

284:                                              ; preds = %281, %274
  br label %292

285:                                              ; preds = %262, %262
  store i16 0, ptr %14, align 2, !tbaa !10
  br label %292

286:                                              ; preds = %262, %262
  %287 = load i8, ptr %12, align 1, !tbaa !9
  %288 = zext i8 %287 to i32
  %289 = sub nsw i32 %288, 1
  %290 = trunc i32 %289 to i16
  store i16 %290, ptr %14, align 2, !tbaa !10
  br label %292

291:                                              ; preds = %262
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %21, align 4
  br label %380

292:                                              ; preds = %286, %285, %284, %273, %262
  %293 = load ptr, ptr @gST, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %293, i32 0, i32 6
  %295 = load ptr, ptr %294, align 8, !tbaa !43
  %296 = getelementptr inbounds %struct._EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL, ptr %295, i32 0, i32 5
  %297 = load ptr, ptr %296, align 8, !tbaa !50
  %298 = load ptr, ptr @gST, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %298, i32 0, i32 6
  %300 = load ptr, ptr %299, align 8, !tbaa !43
  %301 = call i64 %297(ptr noundef %300, i64 noundef 7)
  %302 = load ptr, ptr @gST, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %302, i32 0, i32 6
  %304 = load ptr, ptr %303, align 8, !tbaa !43
  %305 = getelementptr inbounds %struct._EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL, ptr %304, i32 0, i32 7
  %306 = load ptr, ptr %305, align 8, !tbaa !51
  %307 = load ptr, ptr @gST, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %307, i32 0, i32 6
  %309 = load ptr, ptr %308, align 8, !tbaa !43
  %310 = load i32, ptr %13, align 4, !tbaa !34
  %311 = load i16, ptr %15, align 2, !tbaa !10
  %312 = zext i16 %311 to i32
  %313 = add nsw i32 %310, %312
  %314 = sext i32 %313 to i64
  %315 = call i64 %306(ptr noundef %309, i64 noundef 0, i64 noundef %314)
  %316 = load i16, ptr %15, align 2, !tbaa !10
  %317 = zext i16 %316 to i64
  %318 = getelementptr inbounds [24 x ptr], ptr %20, i64 0, i64 %317
  %319 = load ptr, ptr %318, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.PXEBC_BOOT_MENU_ENTRY, ptr %319, i32 0, i32 1
  %321 = load i8, ptr %320, align 2, !tbaa !37
  %322 = zext i8 %321 to i64
  %323 = getelementptr inbounds [70 x i8], ptr %18, i64 0, i64 %322
  store i8 0, ptr %323, align 1, !tbaa !9
  %324 = getelementptr inbounds [70 x i8], ptr %18, i64 0, i64 0
  %325 = call i64 (ptr, ...) @AsciiPrint(ptr noundef @.str.17, ptr noundef %324)
  %326 = load i16, ptr %15, align 2, !tbaa !10
  %327 = zext i16 %326 to i64
  %328 = getelementptr inbounds [24 x ptr], ptr %20, i64 0, i64 %327
  %329 = load ptr, ptr %328, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.PXEBC_BOOT_MENU_ENTRY, ptr %329, i32 0, i32 2
  %331 = getelementptr inbounds [1 x i8], ptr %330, i64 0, i64 0
  %332 = load i16, ptr %15, align 2, !tbaa !10
  %333 = zext i16 %332 to i64
  %334 = getelementptr inbounds [24 x ptr], ptr %20, i64 0, i64 %333
  %335 = load ptr, ptr %334, align 8, !tbaa !5
  %336 = getelementptr inbounds %struct.PXEBC_BOOT_MENU_ENTRY, ptr %335, i32 0, i32 1
  %337 = load i8, ptr %336, align 2, !tbaa !37
  call void @PxeBcDisplayBootItem(ptr noundef %331, i8 noundef zeroext %337)
  %338 = load ptr, ptr @gST, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %338, i32 0, i32 6
  %340 = load ptr, ptr %339, align 8, !tbaa !43
  %341 = getelementptr inbounds %struct._EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL, ptr %340, i32 0, i32 7
  %342 = load ptr, ptr %341, align 8, !tbaa !51
  %343 = load ptr, ptr @gST, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.EFI_SYSTEM_TABLE, ptr %343, i32 0, i32 6
  %345 = load ptr, ptr %344, align 8, !tbaa !43
  %346 = load i32, ptr %13, align 4, !tbaa !34
  %347 = load i8, ptr %12, align 1, !tbaa !9
  %348 = zext i8 %347 to i32
  %349 = add nsw i32 %346, %348
  %350 = sext i32 %349 to i64
  %351 = call i64 %342(ptr noundef %345, i64 noundef 0, i64 noundef %350)
  br label %352

352:                                              ; preds = %292
  %353 = load i8, ptr %17, align 1, !tbaa !9
  %354 = icmp ne i8 %353, 0
  %355 = xor i1 %354, true
  br i1 %355, label %154, label %356, !llvm.loop !61

356:                                              ; preds = %352
  br label %357

357:                                              ; preds = %356
  %358 = call zeroext i8 @DebugAssertEnabled()
  %359 = icmp ne i8 %358, 0
  br i1 %359, label %360, label %366

360:                                              ; preds = %357
  %361 = load i16, ptr %14, align 2, !tbaa !10
  %362 = zext i16 %361 to i32
  %363 = icmp slt i32 %362, 24
  br i1 %363, label %365, label %364

364:                                              ; preds = %360
  call void @DebugAssert(ptr noundef @.str, i64 noundef 1881, ptr noundef @.str.16)
  br label %365

365:                                              ; preds = %364, %360
  br label %366

366:                                              ; preds = %365, %357
  br label %367

367:                                              ; preds = %366
  br label %368

368:                                              ; preds = %367
  %369 = load ptr, ptr %6, align 8, !tbaa !5
  %370 = load i16, ptr %14, align 2, !tbaa !10
  %371 = zext i16 %370 to i64
  %372 = getelementptr inbounds [24 x ptr], ptr %20, i64 0, i64 %371
  %373 = load ptr, ptr %372, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.PXEBC_BOOT_MENU_ENTRY, ptr %373, i32 0, i32 0
  %375 = call ptr @CopyMem(ptr noundef %369, ptr noundef %374, i64 noundef 2)
  %376 = load ptr, ptr %6, align 8, !tbaa !5
  %377 = load i16, ptr %376, align 2, !tbaa !10
  %378 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %377)
  %379 = load ptr, ptr %6, align 8, !tbaa !5
  store i16 %378, ptr %379, align 2, !tbaa !10
  store i64 0, ptr %4, align 8
  store i32 1, ptr %21, align 4
  br label %380

380:                                              ; preds = %368, %291, %109, %72, %59
  call void @llvm.lifetime.end.p0(i64 192, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 70, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  %381 = load i64, ptr %4, align 8
  ret i64 %381
}

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.EFI_INPUT_KEY = type { i16, i16 }

@.str = external hidden unnamed_addr constant [157 x i8], align 1
@gBS = external local_unnamed_addr global ptr, align 8
@gST = external local_unnamed_addr global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

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

declare ptr @SetMem(ptr noundef, i64 noundef, i8 noundef zeroext) local_unnamed_addr #1

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

declare i64 @AsciiPrint(ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775802, 1) i64 @PxeBcSelectBootMenu(ptr nocapture noundef readonly %0, ptr noundef %1, i8 noundef zeroext %2) local_unnamed_addr #2 {
  %4 = alloca %struct.EFI_INPUT_KEY, align 2
  %5 = alloca [70 x i8], align 16
  %6 = alloca [24 x ptr], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 70, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 192, ptr nonnull %6) #4
  store i16 0, ptr %1, align 2, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 184
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %8, i64 10
  %10 = load i8, ptr %9, align 2, !tbaa !30
  %.not = icmp eq i8 %10, 0
  %.074.v = select i1 %.not, i64 13152, i64 11480
  %.074 = getelementptr inbounds i8, ptr %0, i64 %.074.v
  %11 = tail call zeroext i8 @DebugAssertEnabled() #4
  %.not77 = icmp eq i8 %11, 0
  br i1 %.not77, label %17, label %12

12:                                               ; preds = %3
  %13 = getelementptr inbounds i8, ptr %.074, i64 1481
  %14 = load i8, ptr %13, align 1, !tbaa !31
  %15 = icmp eq i8 %14, 0
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1755, ptr noundef nonnull @.str.15) #4
  br label %17

17:                                               ; preds = %12, %16, %3
  %18 = getelementptr inbounds i8, ptr %.074, i64 1544
  %19 = load i32, ptr %18, align 8, !tbaa !32
  %20 = and i32 %19, 512
  %.not78 = icmp eq i32 %20, 0
  br i1 %.not78, label %.loopexit, label %21

21:                                               ; preds = %17
  %22 = call ptr @SetMem(ptr noundef nonnull %5, i64 noundef 70, i8 noundef zeroext 32) #4
  %23 = getelementptr inbounds i8, ptr %.074, i64 1632
  %24 = load i8, ptr %23, align 8, !tbaa !33
  %25 = icmp eq i8 %24, 0
  br i1 %25, label %.loopexit, label %26

26:                                               ; preds = %21
  %27 = getelementptr inbounds i8, ptr %.074, i64 1624
  %28 = load ptr, ptr %27, align 8, !tbaa !34
  br label %29

29:                                               ; preds = %26, %29
  %indvars.iv102 = phi i8 [ 1, %26 ], [ %indvars.iv.next103, %29 ]
  %indvars.iv = phi i64 [ 0, %26 ], [ %indvars.iv.next, %29 ]
  %.075 = phi i8 [ %24, %26 ], [ %33, %29 ]
  %.0 = phi ptr [ %28, %26 ], [ %36, %29 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %30 = getelementptr inbounds [24 x ptr], ptr %6, i64 0, i64 %indvars.iv
  store ptr %.0, ptr %30, align 8, !tbaa !35
  %31 = getelementptr inbounds i8, ptr %.0, i64 2
  %32 = load i8, ptr %31, align 2, !tbaa !36
  %.neg95 = add i8 %.075, -3
  %33 = sub i8 %.neg95, %32
  %34 = zext i8 %32 to i64
  %35 = getelementptr inbounds i8, ptr %.0, i64 %34
  %36 = getelementptr inbounds i8, ptr %35, i64 3
  %37 = icmp ult i64 %indvars.iv, 23
  %38 = icmp ne i8 %33, 0
  %or.cond = select i1 %37, i1 %38, i1 false
  %indvars.iv.next103 = add nuw nsw i8 %indvars.iv102, 1
  br i1 %or.cond, label %29, label %39, !llvm.loop !38

39:                                               ; preds = %29
  %40 = trunc i64 %indvars.iv to i16
  %41 = trunc i64 %indvars.iv.next to i16
  %.not79 = icmp eq i8 %2, 0
  br i1 %.not79, label %.preheader.preheader, label %42

.preheader.preheader:                             ; preds = %39
  %wide.trip.count = zext nneg i8 %indvars.iv102 to i64
  br label %.preheader

42:                                               ; preds = %39
  %43 = load ptr, ptr %6, align 16, !tbaa !35
  %44 = load i16, ptr %43, align 2, !tbaa !40
  store i16 %44, ptr %1, align 2, !tbaa !5
  br label %.loopexit.sink.split

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv99 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next100, %.preheader ]
  %45 = getelementptr inbounds [24 x ptr], ptr %6, i64 0, i64 %indvars.iv99
  %46 = load ptr, ptr %45, align 8, !tbaa !35
  %47 = getelementptr inbounds i8, ptr %46, i64 3
  %48 = getelementptr inbounds i8, ptr %46, i64 2
  %49 = load i8, ptr %48, align 2, !tbaa !36
  call void @PxeBcDisplayBootItem(ptr noundef nonnull %47, i8 noundef zeroext %49)
  %indvars.iv.next100 = add nuw nsw i64 %indvars.iv99, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next100, %wide.trip.count
  br i1 %exitcond.not, label %50, label %.preheader, !llvm.loop !41

50:                                               ; preds = %.preheader
  %51 = trunc i64 %indvars.iv.next to i32
  %52 = and i32 %51, 255
  %53 = load ptr, ptr @gST, align 8, !tbaa !35
  %54 = getelementptr inbounds i8, ptr %53, i64 64
  %55 = load ptr, ptr %54, align 8, !tbaa !42
  %56 = getelementptr inbounds i8, ptr %55, i64 72
  %57 = load ptr, ptr %56, align 8, !tbaa !45
  %58 = getelementptr inbounds i8, ptr %57, i64 16
  %59 = load i32, ptr %58, align 4, !tbaa !47
  %60 = sub i32 %59, %52
  %61 = sext i32 %59 to i64
  %62 = getelementptr inbounds i8, ptr %4, i64 2
  %63 = and i16 %40, 255
  %64 = and i16 %41, 255
  br label %65

65:                                               ; preds = %.thread, %50
  %.072 = phi i16 [ 1, %50 ], [ %.173, %.thread ]
  %66 = call zeroext i8 @DebugAssertEnabled() #4
  %67 = icmp eq i8 %66, 0
  %68 = zext i16 %.072 to i32
  %69 = icmp ult i16 %.072, 24
  %or.cond6 = select i1 %67, i1 true, i1 %69
  br i1 %or.cond6, label %71, label %70

70:                                               ; preds = %65
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1796, ptr noundef nonnull @.str.16) #4
  br label %71

71:                                               ; preds = %70, %65
  %72 = load ptr, ptr @gST, align 8, !tbaa !35
  %73 = getelementptr inbounds i8, ptr %72, i64 64
  %74 = load ptr, ptr %73, align 8, !tbaa !42
  %75 = getelementptr inbounds i8, ptr %74, i64 40
  %76 = load ptr, ptr %75, align 8, !tbaa !49
  %77 = call i64 %76(ptr noundef %74, i64 noundef 112) #4
  %78 = load ptr, ptr @gST, align 8, !tbaa !35
  %79 = getelementptr inbounds i8, ptr %78, i64 64
  %80 = load ptr, ptr %79, align 8, !tbaa !42
  %81 = getelementptr inbounds i8, ptr %80, i64 56
  %82 = load ptr, ptr %81, align 8, !tbaa !50
  %83 = add nsw i32 %60, %68
  %84 = sext i32 %83 to i64
  %85 = call i64 %82(ptr noundef %80, i64 noundef 0, i64 noundef %84) #4
  %86 = zext i16 %.072 to i64
  %87 = getelementptr inbounds [24 x ptr], ptr %6, i64 0, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !35
  %89 = getelementptr inbounds i8, ptr %88, i64 2
  %90 = load i8, ptr %89, align 2, !tbaa !36
  %91 = zext i8 %90 to i64
  %92 = getelementptr inbounds [70 x i8], ptr %5, i64 0, i64 %91
  store i8 0, ptr %92, align 1, !tbaa !51
  %93 = call i64 (ptr, ...) @AsciiPrint(ptr noundef nonnull @.str.17, ptr noundef nonnull %5) #4
  %94 = getelementptr inbounds i8, ptr %88, i64 3
  %95 = load i8, ptr %89, align 2, !tbaa !36
  call void @PxeBcDisplayBootItem(ptr noundef nonnull %94, i8 noundef zeroext %95)
  %96 = load ptr, ptr @gST, align 8, !tbaa !35
  %97 = getelementptr inbounds i8, ptr %96, i64 64
  %98 = load ptr, ptr %97, align 8, !tbaa !42
  %99 = getelementptr inbounds i8, ptr %98, i64 56
  %100 = load ptr, ptr %99, align 8, !tbaa !50
  %101 = call i64 %100(ptr noundef %98, i64 noundef 0, i64 noundef %61) #4
  %102 = load ptr, ptr @gST, align 8, !tbaa !35
  %103 = getelementptr inbounds i8, ptr %102, i64 48
  %104 = load ptr, ptr %103, align 8, !tbaa !52
  %105 = getelementptr inbounds i8, ptr %104, i64 8
  %106 = load ptr, ptr %105, align 8, !tbaa !53
  %107 = call i64 %106(ptr noundef %104, ptr noundef nonnull %4) #4
  %108 = icmp eq i64 %107, -9223372036854775802
  br i1 %108, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %71, %.lr.ph
  %109 = load ptr, ptr @gBS, align 8, !tbaa !35
  %110 = getelementptr inbounds i8, ptr %109, i64 248
  %111 = load ptr, ptr %110, align 8, !tbaa !55
  %112 = call i64 %111(i64 noundef 100000) #4
  %113 = load ptr, ptr @gST, align 8, !tbaa !35
  %114 = getelementptr inbounds i8, ptr %113, i64 48
  %115 = load ptr, ptr %114, align 8, !tbaa !52
  %116 = getelementptr inbounds i8, ptr %115, i64 8
  %117 = load ptr, ptr %116, align 8, !tbaa !53
  %118 = call i64 %117(ptr noundef %115, ptr noundef nonnull %4) #4
  %119 = icmp eq i64 %118, -9223372036854775802
  br i1 %119, label %.lr.ph, label %._crit_edge, !llvm.loop !57

._crit_edge:                                      ; preds = %.lr.ph, %71
  %120 = load i16, ptr %4, align 2, !tbaa !58
  %.not80 = icmp eq i16 %120, 0
  br i1 %.not80, label %.thread, label %121

121:                                              ; preds = %._crit_edge
  %122 = load i16, ptr %62, align 2, !tbaa !60
  switch i16 %122, label %123 [
    i16 3, label %.loopexit
    i16 10, label %124
    i16 13, label %124
    i16 9, label %.thread89
    i16 32, label %.thread89
    i16 100, label %.thread89
    i16 68, label %.thread89
    i16 8, label %.thread86
    i16 117, label %.thread86
    i16 85, label %.thread86
  ]

.thread89:                                        ; preds = %121, %121, %121, %121
  store i16 2, ptr %4, align 2, !tbaa !58
  br label %126

.thread86:                                        ; preds = %121, %121, %121
  store i16 1, ptr %4, align 2, !tbaa !58
  br label %125

123:                                              ; preds = %121
  store i16 0, ptr %4, align 2, !tbaa !58
  br label %.thread

124:                                              ; preds = %121, %121
  switch i16 %120, label %.thread [
    i16 4, label %125
    i16 1, label %125
    i16 2, label %126
    i16 3, label %126
    i16 9, label %129
    i16 5, label %129
    i16 10, label %130
    i16 6, label %130
    i16 23, label %.loopexit
  ]

125:                                              ; preds = %.thread86, %124, %124
  %.188 = phi i8 [ 0, %.thread86 ], [ 1, %124 ], [ 1, %124 ]
  %spec.select = call i16 @llvm.usub.sat.i16(i16 %.072, i16 1)
  br label %.thread

126:                                              ; preds = %.thread89, %124, %124
  %.191 = phi i8 [ 0, %.thread89 ], [ 1, %124 ], [ 1, %124 ]
  %127 = add i16 %.072, 1
  %128 = icmp eq i16 %127, %64
  %spec.select83 = select i1 %128, i16 %.072, i16 %127
  br label %.thread

129:                                              ; preds = %124, %124
  br label %.thread

130:                                              ; preds = %124, %124
  br label %.thread

.thread:                                          ; preds = %._crit_edge, %123, %126, %125, %130, %129, %124
  %.185 = phi i8 [ 1, %124 ], [ 1, %130 ], [ 1, %129 ], [ %.188, %125 ], [ %.191, %126 ], [ 0, %123 ], [ 0, %._crit_edge ]
  %.173 = phi i16 [ %.072, %124 ], [ %63, %130 ], [ 0, %129 ], [ %spec.select, %125 ], [ %spec.select83, %126 ], [ %.072, %123 ], [ %.072, %._crit_edge ]
  %131 = load ptr, ptr @gST, align 8, !tbaa !35
  %132 = getelementptr inbounds i8, ptr %131, i64 64
  %133 = load ptr, ptr %132, align 8, !tbaa !42
  %134 = getelementptr inbounds i8, ptr %133, i64 40
  %135 = load ptr, ptr %134, align 8, !tbaa !49
  %136 = call i64 %135(ptr noundef %133, i64 noundef 7) #4
  %137 = load ptr, ptr @gST, align 8, !tbaa !35
  %138 = getelementptr inbounds i8, ptr %137, i64 64
  %139 = load ptr, ptr %138, align 8, !tbaa !42
  %140 = getelementptr inbounds i8, ptr %139, i64 56
  %141 = load ptr, ptr %140, align 8, !tbaa !50
  %142 = call i64 %141(ptr noundef %139, i64 noundef 0, i64 noundef %84) #4
  %143 = load i8, ptr %89, align 2, !tbaa !36
  %144 = zext i8 %143 to i64
  %145 = getelementptr inbounds [70 x i8], ptr %5, i64 0, i64 %144
  store i8 0, ptr %145, align 1, !tbaa !51
  %146 = call i64 (ptr, ...) @AsciiPrint(ptr noundef nonnull @.str.17, ptr noundef nonnull %5) #4
  %147 = load i8, ptr %89, align 2, !tbaa !36
  call void @PxeBcDisplayBootItem(ptr noundef nonnull %94, i8 noundef zeroext %147)
  %148 = load ptr, ptr @gST, align 8, !tbaa !35
  %149 = getelementptr inbounds i8, ptr %148, i64 64
  %150 = load ptr, ptr %149, align 8, !tbaa !42
  %151 = getelementptr inbounds i8, ptr %150, i64 56
  %152 = load ptr, ptr %151, align 8, !tbaa !50
  %153 = call i64 %152(ptr noundef %150, i64 noundef 0, i64 noundef %61) #4
  %.not82 = icmp eq i8 %.185, 0
  br i1 %.not82, label %65, label %154, !llvm.loop !61

154:                                              ; preds = %.thread
  %155 = call zeroext i8 @DebugAssertEnabled() #4
  %156 = icmp eq i8 %155, 0
  %157 = icmp ult i16 %.173, 24
  %or.cond10 = select i1 %156, i1 true, i1 %157
  br i1 %or.cond10, label %159, label %158

158:                                              ; preds = %154
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1881, ptr noundef nonnull @.str.16) #4
  br label %159

159:                                              ; preds = %158, %154
  %160 = zext i16 %.173 to i64
  %161 = getelementptr inbounds [24 x ptr], ptr %6, i64 0, i64 %160
  %162 = load ptr, ptr %161, align 8, !tbaa !35
  %163 = call ptr @CopyMem(ptr noundef nonnull %1, ptr noundef %162, i64 noundef 2) #4
  %164 = load i16, ptr %1, align 2, !tbaa !5
  br label %.loopexit.sink.split

.loopexit.sink.split:                             ; preds = %42, %159
  %.sink104 = phi i16 [ %164, %159 ], [ %44, %42 ]
  %165 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %.sink104) #4
  store i16 %165, ptr %1, align 2, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %124, %121, %.loopexit.sink.split, %21, %17
  %.071 = phi i64 [ 0, %17 ], [ -9223372036854775802, %21 ], [ 0, %.loopexit.sink.split ], [ -9223372036854775787, %121 ], [ -9223372036854775787, %124 ]
  call void @llvm.lifetime.end.p0(i64 192, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 70, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  ret i64 %.071
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"short", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !12, i64 184}
!10 = !{!"_PXEBC_PRIVATE_DATA", !11, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !13, i64 80, !15, i64 192, !16, i64 200, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !17, i64 248, !12, i64 280, !12, i64 288, !12, i64 296, !6, i64 304, !19, i64 308, !20, i64 344, !11, i64 10768, !12, i64 10776, !7, i64 10784, !7, i64 10800, !7, i64 10816, !7, i64 10832, !7, i64 10848, !11, i64 10852, !14, i64 10856, !14, i64 10864, !7, i64 10872, !24, i64 11184, !18, i64 11433, !7, i64 11465, !7, i64 11466, !7, i64 11467, !11, i64 11468, !11, i64 11472, !11, i64 11476, !27, i64 11480, !27, i64 13152, !27, i64 14824, !7, i64 16496, !7, i64 43248, !7, i64 43268, !11, i64 43588, !7, i64 43592, !7, i64 43612, !12, i64 43680, !29, i64 43688}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"_EFI_PXE_BASE_CODE_PROTOCOL", !14, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"_EFI_LOAD_FILE_PROTOCOL", !12, i64 0}
!16 = !{!"_EFI_PXE_BASE_CODE_CALLBACK_PROTOCOL", !14, i64 0, !12, i64 8}
!17 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !18, i64 6, !18, i64 10, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !11, i64 20, !11, i64 24}
!18 = !{!"", !7, i64 0}
!19 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !11, i64 8, !11, i64 12, !7, i64 16, !18, i64 17, !18, i64 21, !6, i64 26, !18, i64 28, !6, i64 32}
!20 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 20, !7, i64 36, !7, i64 52, !7, i64 1524, !7, i64 2996, !7, i64 4468, !7, i64 5940, !7, i64 7412, !21, i64 8884, !11, i64 9016, !7, i64 9020, !11, i64 9404, !7, i64 9408, !22, i64 9792, !23, i64 10296}
!21 = !{!"", !7, i64 0, !7, i64 1, !6, i64 2, !7, i64 4}
!22 = !{!"", !7, i64 0, !7, i64 1, !6, i64 2, !7, i64 4, !7, i64 8}
!23 = !{!"", !7, i64 0, !7, i64 1}
!24 = !{!"", !11, i64 0, !11, i64 4, !25, i64 8}
!25 = !{!"", !26, i64 0, !11, i64 236, !7, i64 240}
!26 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !11, i64 4, !6, i64 8, !6, i64 10, !18, i64 12, !18, i64 16, !18, i64 20, !18, i64 24, !7, i64 28, !7, i64 44, !7, i64 108}
!27 = !{!"", !7, i64 0, !7, i64 1480, !7, i64 1481, !7, i64 1488, !28, i64 1544}
!28 = !{!"", !7, i64 0, !18, i64 32, !6, i64 36, !6, i64 38, !7, i64 40, !7, i64 41, !7, i64 42, !18, i64 43, !18, i64 47, !6, i64 52, !6, i64 54, !6, i64 56, !6, i64 58, !12, i64 64, !7, i64 72, !12, i64 80, !7, i64 88, !12, i64 96, !7, i64 104, !12, i64 112, !7, i64 120}
!29 = !{!"", !12, i64 0, !14, i64 8, !7, i64 16}
!30 = !{!20, !7, i64 10}
!31 = !{!27, !7, i64 1481}
!32 = !{!11, !11, i64 0}
!33 = !{!28, !7, i64 88}
!34 = !{!28, !12, i64 80}
!35 = !{!12, !12, i64 0}
!36 = !{!37, !7, i64 2}
!37 = !{!"", !6, i64 0, !7, i64 2, !7, i64 3}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!37, !6, i64 0}
!41 = distinct !{!41, !39}
!42 = !{!43, !12, i64 64}
!43 = !{!"", !44, i64 0, !12, i64 24, !11, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !14, i64 104, !12, i64 112}
!44 = !{!"", !14, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!45 = !{!46, !12, i64 72}
!46 = !{!"_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72}
!47 = !{!48, !11, i64 16}
!48 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !7, i64 20}
!49 = !{!46, !12, i64 40}
!50 = !{!46, !12, i64 56}
!51 = !{!7, !7, i64 0}
!52 = !{!43, !12, i64 48}
!53 = !{!54, !12, i64 8}
!54 = !{!"_EFI_SIMPLE_TEXT_INPUT_PROTOCOL", !12, i64 0, !12, i64 8, !12, i64 16}
!55 = !{!56, !12, i64 248}
!56 = !{!"", !44, i64 0, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !12, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !12, i64 360, !12, i64 368}
!57 = distinct !{!57, !39}
!58 = !{!59, !6, i64 0}
!59 = !{!"", !6, i64 0, !6, i64 2}
!60 = !{!59, !6, i64 2}
!61 = distinct !{!61, !39}


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