; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Bus/Scsi (ScsiDiskDetectMedia)

; 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_BLOCK_IO_MEDIA = type { i32, i8, i8, i8, i8, i8, i32, i32, i64, i64, i32, i32 }
%struct.SCSI_DISK_DEV = type { i32, ptr, %struct._EFI_BLOCK_IO_PROTOCOL, %struct.EFI_BLOCK_IO_MEDIA, ptr, i8, i8, i16, ptr, i64, %struct.EFI_SCSI_INQUIRY_DATA, ptr, %struct._EFI_DISK_INFO_PROTOCOL, i32, i32, %struct.ATAPI_IDENTIFY_DATA, i8 }
%struct._EFI_BLOCK_IO_PROTOCOL = type { i64, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_SCSI_INQUIRY_DATA = type { i16, i8, i8, i8, [91 x i8] }
%struct._EFI_DISK_INFO_PROTOCOL = type { %struct.GUID, ptr, ptr, ptr, ptr }
%struct.GUID = type { i32, i16, i16, [8 x i8] }
%struct.ATAPI_IDENTIFY_DATA = type { i16, i16, i16, [7 x i16], [20 x i8], [3 x i16], [8 x i8], [40 x i8], [2 x i16], i16, i16, i16, i16, i16, [8 x i16], i16, i16, i16, i16, i16, i16, i16, [2 x i16], [2 x i16], [2 x i16], i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, [13 x i16], [4 x i16], [4 x i16], [3 x i16], i16, i16, [4 x i16], i16, [2 x i16], i16, [31 x i16], [16 x i16], [46 x i16], i16, i16, [31 x i16], i16 }
%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 }

@gBS = external global ptr, align 8

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

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

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

31:                                               ; preds = %3
  %32 = load i64, ptr %8, align 8, !tbaa !10
  store i64 %32, ptr %4, align 8
  store i32 1, ptr %18, align 4
  br label %263

33:                                               ; preds = %3
  %34 = load ptr, ptr @gBS, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %34, i32 0, i32 9
  %36 = load ptr, ptr %35, align 8, !tbaa !25
  %37 = load ptr, ptr %17, align 8, !tbaa !5
  %38 = call i64 @MultU64x32(i64 noundef 120, i32 noundef 10000000)
  %39 = call i64 %36(ptr noundef %37, i32 noundef 2, i64 noundef %38)
  store i64 %39, ptr %8, align 8, !tbaa !10
  %40 = load i64, ptr %8, align 8, !tbaa !10
  %41 = icmp slt i64 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %33
  br label %252

43:                                               ; preds = %33
  br label %44

44:                                               ; preds = %82, %67, %43
  %45 = load ptr, ptr @gBS, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %45, i32 0, i32 13
  %47 = load ptr, ptr %46, align 8, !tbaa !26
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  %49 = call i64 %47(ptr noundef %48)
  %50 = icmp slt i64 %49, 0
  br i1 %50, label %51, label %83

51:                                               ; preds = %44
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = call i64 @ScsiDiskTestUnitReady(ptr noundef %52, ptr noundef %11, ptr noundef %9, ptr noundef %10)
  store i64 %53, ptr %8, align 8, !tbaa !10
  %54 = load i64, ptr %8, align 8, !tbaa !10
  %55 = icmp slt i64 %54, 0
  br i1 %55, label %69, label %56

56:                                               ; preds = %51
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load i64, ptr %10, align 8, !tbaa !10
  %60 = call i64 @DetectMediaParsingSenseKeys(ptr noundef %57, ptr noundef %58, i64 noundef %59, ptr noundef %16)
  store i64 %60, ptr %8, align 8, !tbaa !10
  %61 = load i64, ptr %8, align 8, !tbaa !10
  %62 = icmp slt i64 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %56
  br label %252

64:                                               ; preds = %56
  %65 = load i64, ptr %16, align 8, !tbaa !10
  %66 = icmp eq i64 %65, 2
  br i1 %66, label %67, label %68

67:                                               ; preds = %64
  br label %44, !llvm.loop !27

68:                                               ; preds = %64
  br label %83

69:                                               ; preds = %51
  %70 = load i8, ptr %13, align 1, !tbaa !9
  %71 = add i8 %70, 1
  store i8 %71, ptr %13, align 1, !tbaa !9
  %72 = load i8, ptr %11, align 1, !tbaa !9
  %73 = icmp ne i8 %72, 0
  br i1 %73, label %74, label %80

74:                                               ; preds = %69
  %75 = load i8, ptr %13, align 1, !tbaa !9
  %76 = zext i8 %75 to i32
  %77 = load i8, ptr %14, align 1, !tbaa !9
  %78 = zext i8 %77 to i32
  %79 = icmp sge i32 %76, %78
  br i1 %79, label %80, label %81

80:                                               ; preds = %74, %69
  br label %252

81:                                               ; preds = %74
  br label %82

82:                                               ; preds = %81
  br label %44, !llvm.loop !27

83:                                               ; preds = %68, %44
  %84 = load i64, ptr %8, align 8, !tbaa !10
  %85 = icmp slt i64 %84, 0
  br i1 %85, label %86, label %87

86:                                               ; preds = %83
  br label %252

87:                                               ; preds = %83
  %88 = load i64, ptr %16, align 8, !tbaa !10
  %89 = icmp eq i64 %88, 1
  br i1 %89, label %90, label %91

90:                                               ; preds = %87
  store i8 1, ptr %12, align 1, !tbaa !9
  br label %91

91:                                               ; preds = %90, %87
  %92 = load i8, ptr %12, align 1, !tbaa !9
  %93 = zext i8 %92 to i32
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %99, label %95

95:                                               ; preds = %91
  %96 = load i8, ptr %6, align 1, !tbaa !9
  %97 = zext i8 %96 to i32
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %146

99:                                               ; preds = %95, %91
  store i8 0, ptr %13, align 1, !tbaa !9
  br label %100

100:                                              ; preds = %138, %99
  %101 = load i8, ptr %13, align 1, !tbaa !9
  %102 = zext i8 %101 to i32
  %103 = load i8, ptr %14, align 1, !tbaa !9
  %104 = zext i8 %103 to i32
  %105 = icmp slt i32 %102, %104
  br i1 %105, label %106, label %141

106:                                              ; preds = %100
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = call i64 @ScsiDiskReadCapacity(ptr noundef %107, ptr noundef %11, ptr noundef %9, ptr noundef %10)
  store i64 %108, ptr %8, align 8, !tbaa !10
  %109 = load i64, ptr %8, align 8, !tbaa !10
  %110 = icmp slt i64 %109, 0
  br i1 %110, label %124, label %111

111:                                              ; preds = %106
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = load i64, ptr %10, align 8, !tbaa !10
  %115 = call i64 @DetectMediaParsingSenseKeys(ptr noundef %112, ptr noundef %113, i64 noundef %114, ptr noundef %16)
  store i64 %115, ptr %8, align 8, !tbaa !10
  %116 = load i64, ptr %8, align 8, !tbaa !10
  %117 = icmp slt i64 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %111
  br label %252

119:                                              ; preds = %111
  %120 = load i64, ptr %16, align 8, !tbaa !10
  %121 = icmp eq i64 %120, 2
  br i1 %121, label %122, label %123

122:                                              ; preds = %119
  store i8 0, ptr %13, align 1, !tbaa !9
  br label %138

123:                                              ; preds = %119
  br label %141

124:                                              ; preds = %106
  %125 = load i8, ptr %13, align 1, !tbaa !9
  %126 = add i8 %125, 1
  store i8 %126, ptr %13, align 1, !tbaa !9
  %127 = load i8, ptr %11, align 1, !tbaa !9
  %128 = icmp ne i8 %127, 0
  br i1 %128, label %129, label %135

129:                                              ; preds = %124
  %130 = load i8, ptr %13, align 1, !tbaa !9
  %131 = zext i8 %130 to i32
  %132 = load i8, ptr %14, align 1, !tbaa !9
  %133 = zext i8 %132 to i32
  %134 = icmp sge i32 %131, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %129, %124
  br label %252

136:                                              ; preds = %129
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137, %122
  %139 = load i8, ptr %13, align 1, !tbaa !9
  %140 = add i8 %139, 1
  store i8 %140, ptr %13, align 1, !tbaa !9
  br label %100, !llvm.loop !29

141:                                              ; preds = %123, %100
  %142 = load i64, ptr %8, align 8, !tbaa !10
  %143 = icmp slt i64 %142, 0
  br i1 %143, label %144, label %145

144:                                              ; preds = %141
  br label %252

145:                                              ; preds = %141
  br label %146

146:                                              ; preds = %145, %95
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %147, i32 0, i32 2
  %149 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %148, i32 0, i32 1
  %150 = load ptr, ptr %149, align 8, !tbaa !12
  %151 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %150, i32 0, i32 0
  %152 = load i32, ptr %151, align 8, !tbaa !30
  %153 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %15, i32 0, i32 0
  %154 = load i32, ptr %153, align 8, !tbaa !30
  %155 = icmp ne i32 %152, %154
  br i1 %155, label %156, label %158

156:                                              ; preds = %146
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  store i8 1, ptr %157, align 1, !tbaa !9
  br label %158

158:                                              ; preds = %156, %146
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %159, i32 0, i32 2
  %161 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %160, i32 0, i32 1
  %162 = load ptr, ptr %161, align 8, !tbaa !12
  %163 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %162, i32 0, i32 4
  %164 = load i8, ptr %163, align 1, !tbaa !31
  %165 = zext i8 %164 to i32
  %166 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %15, i32 0, i32 4
  %167 = load i8, ptr %166, align 1, !tbaa !31
  %168 = zext i8 %167 to i32
  %169 = icmp ne i32 %165, %168
  br i1 %169, label %170, label %179

170:                                              ; preds = %158
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  store i8 1, ptr %171, align 1, !tbaa !9
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %172, i32 0, i32 2
  %174 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %173, i32 0, i32 1
  %175 = load ptr, ptr %174, align 8, !tbaa !12
  %176 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %175, i32 0, i32 0
  %177 = load i32, ptr %176, align 8, !tbaa !30
  %178 = add i32 %177, 1
  store i32 %178, ptr %176, align 8, !tbaa !30
  br label %179

179:                                              ; preds = %170, %158
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %180, i32 0, i32 2
  %182 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %181, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !12
  %184 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %184, align 4, !tbaa !32
  %186 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %15, i32 0, i32 6
  %187 = load i32, ptr %186, align 4, !tbaa !32
  %188 = icmp ne i32 %185, %187
  br i1 %188, label %189, label %198

189:                                              ; preds = %179
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  store i8 1, ptr %190, align 1, !tbaa !9
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %191, i32 0, i32 2
  %193 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %192, i32 0, i32 1
  %194 = load ptr, ptr %193, align 8, !tbaa !12
  %195 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %194, i32 0, i32 0
  %196 = load i32, ptr %195, align 8, !tbaa !30
  %197 = add i32 %196, 1
  store i32 %197, ptr %195, align 8, !tbaa !30
  br label %198

198:                                              ; preds = %189, %179
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %199, i32 0, i32 2
  %201 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %200, i32 0, i32 1
  %202 = load ptr, ptr %201, align 8, !tbaa !12
  %203 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %202, i32 0, i32 8
  %204 = load i64, ptr %203, align 8, !tbaa !33
  %205 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %15, i32 0, i32 8
  %206 = load i64, ptr %205, align 8, !tbaa !33
  %207 = icmp ne i64 %204, %206
  br i1 %207, label %208, label %217

208:                                              ; preds = %198
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  store i8 1, ptr %209, align 1, !tbaa !9
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %210, i32 0, i32 2
  %212 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %211, i32 0, i32 1
  %213 = load ptr, ptr %212, align 8, !tbaa !12
  %214 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %213, i32 0, i32 0
  %215 = load i32, ptr %214, align 8, !tbaa !30
  %216 = add i32 %215, 1
  store i32 %216, ptr %214, align 8, !tbaa !30
  br label %217

217:                                              ; preds = %208, %198
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %218, i32 0, i32 2
  %220 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %219, i32 0, i32 1
  %221 = load ptr, ptr %220, align 8, !tbaa !12
  %222 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %221, i32 0, i32 2
  %223 = load i8, ptr %222, align 1, !tbaa !34
  %224 = zext i8 %223 to i32
  %225 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %15, i32 0, i32 2
  %226 = load i8, ptr %225, align 1, !tbaa !34
  %227 = zext i8 %226 to i32
  %228 = icmp ne i32 %224, %227
  br i1 %228, label %229, label %251

229:                                              ; preds = %217
  %230 = load ptr, ptr %5, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %230, i32 0, i32 2
  %232 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %231, i32 0, i32 1
  %233 = load ptr, ptr %232, align 8, !tbaa !12
  %234 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %233, i32 0, i32 2
  %235 = load i8, ptr %234, align 1, !tbaa !34
  %236 = icmp ne i8 %235, 0
  br i1 %236, label %237, label %243

237:                                              ; preds = %229
  %238 = load ptr, ptr %5, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %238, i32 0, i32 2
  %240 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %239, i32 0, i32 1
  %241 = load ptr, ptr %240, align 8, !tbaa !12
  %242 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %241, i32 0, i32 0
  store i32 1, ptr %242, align 8, !tbaa !30
  br label %249

243:                                              ; preds = %229
  %244 = load ptr, ptr %5, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %244, i32 0, i32 2
  %246 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %245, i32 0, i32 1
  %247 = load ptr, ptr %246, align 8, !tbaa !12
  %248 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %247, i32 0, i32 0
  store i32 0, ptr %248, align 8, !tbaa !30
  br label %249

249:                                              ; preds = %243, %237
  %250 = load ptr, ptr %7, align 8, !tbaa !5
  store i8 1, ptr %250, align 1, !tbaa !9
  br label %251

251:                                              ; preds = %249, %217
  br label %252

252:                                              ; preds = %251, %144, %135, %118, %86, %80, %63, %42
  %253 = load ptr, ptr %17, align 8, !tbaa !5
  %254 = icmp ne ptr %253, null
  br i1 %254, label %255, label %261

255:                                              ; preds = %252
  %256 = load ptr, ptr @gBS, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %256, i32 0, i32 12
  %258 = load ptr, ptr %257, align 8, !tbaa !35
  %259 = load ptr, ptr %17, align 8, !tbaa !5
  %260 = call i64 %258(ptr noundef %259)
  br label %261

261:                                              ; preds = %255, %252
  %262 = load i64, ptr %8, align 8, !tbaa !10
  store i64 %262, ptr %4, align 8
  store i32 1, ptr %18, align 4
  br label %263

263:                                              ; preds = %261, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 1, 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 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
  %264 = load i64, ptr %4, align 8
  ret i64 %264
}

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

declare i64 @MultU64x32(i64 noundef, i32 noundef) #2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !7, i64 0}
!12 = !{!13, !6, i64 24}
!13 = !{!"", !14, i64 0, !6, i64 8, !15, i64 16, !16, i64 64, !6, i64 112, !7, i64 120, !7, i64 121, !17, i64 122, !6, i64 128, !11, i64 136, !18, i64 144, !6, i64 240, !19, i64 248, !14, i64 296, !14, i64 300, !21, i64 304, !7, i64 816}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_EFI_BLOCK_IO_PROTOCOL", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!16 = !{!"", !14, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !14, i64 12, !14, i64 16, !11, i64 24, !11, i64 32, !14, i64 40, !14, i64 44}
!17 = !{!"short", !7, i64 0}
!18 = !{!"", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5}
!19 = !{!"_EFI_DISK_INFO_PROTOCOL", !20, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!20 = !{!"", !14, i64 0, !17, i64 4, !17, i64 6, !7, i64 8}
!21 = !{!"", !17, i64 0, !17, i64 2, !17, i64 4, !7, i64 6, !7, i64 20, !7, i64 40, !7, i64 46, !7, i64 54, !7, i64 94, !17, i64 98, !17, i64 100, !17, i64 102, !17, i64 104, !17, i64 106, !7, i64 108, !17, i64 124, !17, i64 126, !17, i64 128, !17, i64 130, !17, i64 132, !17, i64 134, !17, i64 136, !7, i64 138, !7, i64 142, !7, i64 146, !17, i64 150, !17, i64 152, !17, i64 154, !17, i64 156, !17, i64 158, !17, i64 160, !17, i64 162, !17, i64 164, !17, i64 166, !17, i64 168, !17, i64 170, !17, i64 172, !17, i64 174, !17, i64 176, !17, i64 178, !17, i64 180, !17, i64 182, !17, i64 184, !17, i64 186, !17, i64 188, !7, i64 190, !7, i64 216, !7, i64 224, !7, i64 232, !17, i64 238, !17, i64 240, !7, i64 242, !17, i64 250, !7, i64 252, !17, i64 256, !7, i64 258, !7, i64 320, !7, i64 352, !17, i64 444, !17, i64 446, !7, i64 448, !17, i64 510}
!22 = !{!23, !6, i64 80}
!23 = !{!"", !24, 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}
!24 = !{!"", !11, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}
!25 = !{!23, !6, i64 88}
!26 = !{!23, !6, i64 120}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!16, !14, i64 0}
!31 = !{!16, !7, i64 7}
!32 = !{!16, !14, i64 12}
!33 = !{!16, !11, i64 24}
!34 = !{!16, !7, i64 5}
!35 = !{!23, !6, i64 112}


; 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_BLOCK_IO_MEDIA = type { i32, i8, i8, i8, i8, i8, i32, i32, i64, i64, i32, i32 }

@gBS = external local_unnamed_addr global ptr, align 8

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @ScsiDiskDetectMedia(ptr noundef %0, i8 noundef zeroext %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i8, align 1
  %7 = alloca %struct.EFI_BLOCK_IO_MEDIA, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, 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 1, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 48, 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
  store ptr null, ptr %4, align 8, !tbaa !5
  store i64 0, ptr %5, align 8, !tbaa !9
  store i64 0, ptr %8, align 8, !tbaa !9
  store i8 0, ptr %2, align 1, !tbaa !11
  store ptr null, ptr %9, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 24
  %11 = load ptr, ptr %10, align 8, !tbaa !12
  %12 = call ptr @CopyMem(ptr noundef nonnull %7, ptr noundef %11, i64 noundef 48) #3
  %13 = load ptr, ptr @gBS, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %13, i64 80
  %15 = load ptr, ptr %14, align 8, !tbaa !22
  %16 = call i64 %15(i32 noundef -2147483648, i64 noundef 8, ptr noundef null, ptr noundef null, ptr noundef nonnull %9) #3
  %17 = icmp slt i64 %16, 0
  br i1 %17, label %129, label %18

18:                                               ; preds = %3
  %19 = load ptr, ptr @gBS, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 88
  %21 = load ptr, ptr %20, align 8, !tbaa !25
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = call i64 @MultU64x32(i64 noundef 120, i32 noundef 10000000) #3
  %24 = call i64 %21(ptr noundef %22, i32 noundef 2, i64 noundef %23) #3
  %25 = icmp slt i64 %24, 0
  br i1 %25, label %.loopexit, label %.preheader76

.preheader76:                                     ; preds = %18
  %26 = load ptr, ptr @gBS, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 120
  %28 = load ptr, ptr %27, align 8, !tbaa !26
  %29 = load ptr, ptr %9, align 8, !tbaa !5
  %30 = call i64 %28(ptr noundef %29) #3
  %31 = icmp slt i64 %30, 0
  br i1 %31, label %.lr.ph, label %.outer._crit_edge..thread_crit_edge

.outer:                                           ; preds = %57
  %32 = add nuw nsw i8 %.045.ph91, 1
  %33 = load ptr, ptr @gBS, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %33, i64 120
  %35 = load ptr, ptr %34, align 8, !tbaa !26
  %36 = load ptr, ptr %9, align 8, !tbaa !5
  %37 = call i64 %35(ptr noundef %36) #3
  %38 = icmp slt i64 %37, 0
  br i1 %38, label %.lr.ph, label %.loopexit, !llvm.loop !27

.lr.ph:                                           ; preds = %.preheader76, %.outer
  %.045.ph91 = phi i8 [ %32, %.outer ], [ 0, %.preheader76 ]
  br label %46

39:                                               ; preds = %54
  %40 = load ptr, ptr @gBS, align 8, !tbaa !5
  %41 = getelementptr inbounds i8, ptr %40, i64 120
  %42 = load ptr, ptr %41, align 8, !tbaa !26
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = call i64 %42(ptr noundef %43) #3
  %45 = icmp slt i64 %44, 0
  br i1 %45, label %46, label %.outer._crit_edge..thread_crit_edge, !llvm.loop !27

46:                                               ; preds = %.lr.ph, %39
  %47 = call i64 @ScsiDiskTestUnitReady(ptr noundef %0, ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %48 = icmp slt i64 %47, 0
  br i1 %48, label %57, label %49

49:                                               ; preds = %46
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = load i64, ptr %5, align 8, !tbaa !9
  %52 = call i64 @DetectMediaParsingSenseKeys(ptr noundef %0, ptr noundef %50, i64 noundef %51, ptr noundef nonnull %8)
  %53 = icmp slt i64 %52, 0
  br i1 %53, label %.loopexit, label %54

54:                                               ; preds = %49
  %55 = load i64, ptr %8, align 8, !tbaa !9
  %56 = icmp eq i64 %55, 2
  br i1 %56, label %39, label %.thread, !llvm.loop !27

57:                                               ; preds = %46
  %58 = load i8, ptr %6, align 1, !tbaa !11
  %.not66 = icmp eq i8 %58, 0
  %59 = icmp ugt i8 %.045.ph91, 1
  %or.cond69 = select i1 %.not66, i1 true, i1 %59
  br i1 %or.cond69, label %.loopexit, label %.outer, !llvm.loop !27

.outer._crit_edge..thread_crit_edge:              ; preds = %39, %.preheader76
  %.047.lcssa.ph = phi i64 [ %24, %.preheader76 ], [ %52, %39 ]
  %.pre = load i64, ptr %8, align 8, !tbaa !9
  br label %.thread

.thread:                                          ; preds = %54, %.outer._crit_edge..thread_crit_edge
  %60 = phi i64 [ %.pre, %.outer._crit_edge..thread_crit_edge ], [ %55, %54 ]
  %.14873 = phi i64 [ %.047.lcssa.ph, %.outer._crit_edge..thread_crit_edge ], [ %52, %54 ]
  %61 = icmp eq i64 %60, 1
  %62 = icmp ne i8 %1, 0
  %or.cond = or i1 %62, %61
  br i1 %or.cond, label %.preheader, label %.thread74

.preheader:                                       ; preds = %.thread, %77
  %.193 = phi i8 [ %78, %77 ], [ 0, %.thread ]
  %63 = call i64 @ScsiDiskReadCapacity(ptr noundef %0, ptr noundef nonnull %6, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %64 = icmp slt i64 %63, 0
  br i1 %64, label %73, label %65

65:                                               ; preds = %.preheader
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load i64, ptr %5, align 8, !tbaa !9
  %68 = call i64 @DetectMediaParsingSenseKeys(ptr noundef %0, ptr noundef %66, i64 noundef %67, ptr noundef nonnull %8)
  %69 = icmp slt i64 %68, 0
  br i1 %69, label %.loopexit, label %70

70:                                               ; preds = %65
  %71 = load i64, ptr %8, align 8, !tbaa !9
  %72 = icmp eq i64 %71, 2
  br i1 %72, label %77, label %.thread74

73:                                               ; preds = %.preheader
  %74 = load i8, ptr %6, align 1, !tbaa !11
  %.not65 = icmp eq i8 %74, 0
  %75 = add nuw nsw i8 %.193, 1
  %76 = icmp eq i8 %.193, 2
  %or.cond71 = or i1 %76, %.not65
  br i1 %or.cond71, label %.loopexit, label %77

77:                                               ; preds = %73, %70
  %.3 = phi i64 [ %68, %70 ], [ %63, %73 ]
  %.2 = phi i8 [ 0, %70 ], [ %75, %73 ]
  %78 = add nuw nsw i8 %.2, 1
  %79 = icmp ult i8 %.2, 2
  br i1 %79, label %.preheader, label %80, !llvm.loop !29

80:                                               ; preds = %77
  %81 = icmp slt i64 %.3, 0
  br i1 %81, label %.loopexit, label %.thread74

.thread74:                                        ; preds = %70, %80, %.thread
  %.5 = phi i64 [ %.3, %80 ], [ %.14873, %.thread ], [ %68, %70 ]
  %82 = load ptr, ptr %10, align 8, !tbaa !12
  %83 = load i32, ptr %82, align 8, !tbaa !30
  %84 = load i32, ptr %7, align 8, !tbaa !30
  %.not = icmp eq i32 %83, %84
  br i1 %.not, label %86, label %85

85:                                               ; preds = %.thread74
  store i8 1, ptr %2, align 1, !tbaa !11
  %.pre105 = load ptr, ptr %10, align 8, !tbaa !12
  br label %86

86:                                               ; preds = %85, %.thread74
  %87 = phi ptr [ %.pre105, %85 ], [ %82, %.thread74 ]
  %88 = getelementptr inbounds i8, ptr %87, i64 7
  %89 = load i8, ptr %88, align 1, !tbaa !31
  %90 = getelementptr inbounds i8, ptr %7, i64 7
  %91 = load i8, ptr %90, align 1, !tbaa !31
  %.not60 = icmp eq i8 %89, %91
  br i1 %.not60, label %96, label %92

92:                                               ; preds = %86
  store i8 1, ptr %2, align 1, !tbaa !11
  %93 = load ptr, ptr %10, align 8, !tbaa !12
  %94 = load i32, ptr %93, align 8, !tbaa !30
  %95 = add i32 %94, 1
  store i32 %95, ptr %93, align 8, !tbaa !30
  br label %96

96:                                               ; preds = %92, %86
  %97 = phi ptr [ %93, %92 ], [ %87, %86 ]
  %98 = getelementptr inbounds i8, ptr %97, i64 12
  %99 = load i32, ptr %98, align 4, !tbaa !32
  %100 = getelementptr inbounds i8, ptr %7, i64 12
  %101 = load i32, ptr %100, align 4, !tbaa !32
  %.not61 = icmp eq i32 %99, %101
  br i1 %.not61, label %106, label %102

102:                                              ; preds = %96
  store i8 1, ptr %2, align 1, !tbaa !11
  %103 = load ptr, ptr %10, align 8, !tbaa !12
  %104 = load i32, ptr %103, align 8, !tbaa !30
  %105 = add i32 %104, 1
  store i32 %105, ptr %103, align 8, !tbaa !30
  br label %106

106:                                              ; preds = %102, %96
  %107 = phi ptr [ %103, %102 ], [ %97, %96 ]
  %108 = getelementptr inbounds i8, ptr %107, i64 24
  %109 = load i64, ptr %108, align 8, !tbaa !33
  %110 = getelementptr inbounds i8, ptr %7, i64 24
  %111 = load i64, ptr %110, align 8, !tbaa !33
  %.not62 = icmp eq i64 %109, %111
  br i1 %.not62, label %116, label %112

112:                                              ; preds = %106
  store i8 1, ptr %2, align 1, !tbaa !11
  %113 = load ptr, ptr %10, align 8, !tbaa !12
  %114 = load i32, ptr %113, align 8, !tbaa !30
  %115 = add i32 %114, 1
  store i32 %115, ptr %113, align 8, !tbaa !30
  br label %116

116:                                              ; preds = %112, %106
  %117 = phi ptr [ %113, %112 ], [ %107, %106 ]
  %118 = getelementptr inbounds i8, ptr %117, i64 5
  %119 = load i8, ptr %118, align 1, !tbaa !34
  %120 = getelementptr inbounds i8, ptr %7, i64 5
  %121 = load i8, ptr %120, align 1, !tbaa !34
  %.not63 = icmp eq i8 %119, %121
  br i1 %.not63, label %.loopexit, label %122

122:                                              ; preds = %116
  %.not64 = icmp ne i8 %119, 0
  %. = zext i1 %.not64 to i32
  store i32 %., ptr %117, align 8, !tbaa !30
  store i8 1, ptr %2, align 1, !tbaa !11
  br label %.loopexit

.loopexit:                                        ; preds = %57, %.outer, %49, %73, %65, %116, %122, %80, %18
  %.6 = phi i64 [ %24, %18 ], [ %.3, %80 ], [ %.5, %122 ], [ %.5, %116 ], [ %68, %65 ], [ %63, %73 ], [ %52, %49 ], [ %47, %.outer ], [ %47, %57 ]
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %.not67 = icmp eq ptr %123, null
  br i1 %.not67, label %129, label %124

124:                                              ; preds = %.loopexit
  %125 = load ptr, ptr @gBS, align 8, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %125, i64 112
  %127 = load ptr, ptr %126, align 8, !tbaa !35
  %128 = call i64 %127(ptr noundef nonnull %123) #3
  br label %129

129:                                              ; preds = %.loopexit, %124, %3
  %.0 = phi i64 [ %16, %3 ], [ %.6, %124 ], [ %.6, %.loopexit ]
  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 48, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 1, 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 %.0
}

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

declare i64 @MultU64x32(i64 noundef, i32 noundef) local_unnamed_addr #2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 24}
!13 = !{!"", !14, i64 0, !6, i64 8, !15, i64 16, !16, i64 64, !6, i64 112, !7, i64 120, !7, i64 121, !17, i64 122, !6, i64 128, !10, i64 136, !18, i64 144, !6, i64 240, !19, i64 248, !14, i64 296, !14, i64 300, !21, i64 304, !7, i64 816}
!14 = !{!"int", !7, i64 0}
!15 = !{!"_EFI_BLOCK_IO_PROTOCOL", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!16 = !{!"", !14, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !14, i64 12, !14, i64 16, !10, i64 24, !10, i64 32, !14, i64 40, !14, i64 44}
!17 = !{!"short", !7, i64 0}
!18 = !{!"", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5}
!19 = !{!"_EFI_DISK_INFO_PROTOCOL", !20, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!20 = !{!"", !14, i64 0, !17, i64 4, !17, i64 6, !7, i64 8}
!21 = !{!"", !17, i64 0, !17, i64 2, !17, i64 4, !7, i64 6, !7, i64 20, !7, i64 40, !7, i64 46, !7, i64 54, !7, i64 94, !17, i64 98, !17, i64 100, !17, i64 102, !17, i64 104, !17, i64 106, !7, i64 108, !17, i64 124, !17, i64 126, !17, i64 128, !17, i64 130, !17, i64 132, !17, i64 134, !17, i64 136, !7, i64 138, !7, i64 142, !7, i64 146, !17, i64 150, !17, i64 152, !17, i64 154, !17, i64 156, !17, i64 158, !17, i64 160, !17, i64 162, !17, i64 164, !17, i64 166, !17, i64 168, !17, i64 170, !17, i64 172, !17, i64 174, !17, i64 176, !17, i64 178, !17, i64 180, !17, i64 182, !17, i64 184, !17, i64 186, !17, i64 188, !7, i64 190, !7, i64 216, !7, i64 224, !7, i64 232, !17, i64 238, !17, i64 240, !7, i64 242, !17, i64 250, !7, i64 252, !17, i64 256, !7, i64 258, !7, i64 320, !7, i64 352, !17, i64 444, !17, i64 446, !7, i64 448, !17, i64 510}
!22 = !{!23, !6, i64 80}
!23 = !{!"", !24, 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}
!24 = !{!"", !10, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}
!25 = !{!23, !6, i64 88}
!26 = !{!23, !6, i64 120}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!16, !14, i64 0}
!31 = !{!16, !7, i64 7}
!32 = !{!16, !14, i64 12}
!33 = !{!16, !10, i64 24}
!34 = !{!16, !7, i64 5}
!35 = !{!23, !6, i64 112}


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