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

; 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.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_BLOCK_IO_MEDIA = type { i32, i8, i8, i8, i8, i8, i32, i32, i64, i64, i32, i32 }
%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_SCSI_SUPPORTED_VPD_PAGES_VPD_PAGE = type { i8, i8, i8, i8, [256 x i8] }
%struct.EFI_SCSI_BLOCK_LIMITS_VPD_PAGE = type { i8, i8, i8, i8, [2 x i8], i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
%struct._EFI_SCSI_IO_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, i32 }

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

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

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

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

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

28:                                               ; preds = %2
  %29 = load i64, ptr %12, align 8, !tbaa !22
  %30 = icmp eq i64 %29, 4
  br i1 %30, label %31, label %133

31:                                               ; preds = %28, %2
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ParseInquiryData(ptr noundef %32)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %33, i32 0, i32 5
  %35 = load i8, ptr %34, align 8, !tbaa !23
  %36 = zext i8 %35 to i32
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %132

38:                                               ; preds = %31
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = call ptr @AllocateAlignedBuffer(ptr noundef %39, i64 noundef 260)
  store ptr %40, ptr %15, align 8, !tbaa !5
  %41 = load ptr, ptr %15, align 8, !tbaa !5
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %45

43:                                               ; preds = %38
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 0, ptr %44, align 1, !tbaa !11
  store i64 -9223372036854775801, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %225

45:                                               ; preds = %38
  %46 = load ptr, ptr %15, align 8, !tbaa !5
  %47 = call ptr @ZeroMem(ptr noundef %46, i64 noundef 260)
  store i32 260, ptr %6, align 4, !tbaa !9
  store i8 0, ptr %7, align 1, !tbaa !11
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %48, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !12
  %51 = call i64 @MultU64x32(i64 noundef 3, i32 noundef 10000000)
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = call i64 @ScsiInquiryCommandEx(ptr noundef %50, i64 noundef %51, ptr noundef null, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %52, ptr noundef %6, i8 noundef zeroext 1, i8 noundef zeroext 0)
  store i64 %53, ptr %12, align 8, !tbaa !22
  %54 = load i64, ptr %12, align 8, !tbaa !22
  %55 = icmp slt i64 %54, 0
  br i1 %55, label %130, label %56

56:                                               ; preds = %45
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.EFI_SCSI_SUPPORTED_VPD_PAGES_VPD_PAGE, ptr %57, i32 0, i32 2
  %59 = load i8, ptr %58, align 1, !tbaa !24
  %60 = zext i8 %59 to i32
  %61 = shl i32 %60, 8
  %62 = load ptr, ptr %15, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.EFI_SCSI_SUPPORTED_VPD_PAGES_VPD_PAGE, ptr %62, i32 0, i32 3
  %64 = load i8, ptr %63, align 1, !tbaa !26
  %65 = zext i8 %64 to i32
  %66 = or i32 %61, %65
  %67 = sext i32 %66 to i64
  store i64 %67, ptr %17, align 8, !tbaa !22
  store i8 0, ptr %14, align 1, !tbaa !11
  br label %68

68:                                               ; preds = %84, %56
  %69 = load i8, ptr %14, align 1, !tbaa !11
  %70 = zext i8 %69 to i64
  %71 = load i64, ptr %17, align 8, !tbaa !22
  %72 = icmp ult i64 %70, %71
  br i1 %72, label %73, label %87

73:                                               ; preds = %68
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.EFI_SCSI_SUPPORTED_VPD_PAGES_VPD_PAGE, ptr %74, i32 0, i32 4
  %76 = load i8, ptr %14, align 1, !tbaa !11
  %77 = zext i8 %76 to i64
  %78 = getelementptr inbounds [256 x i8], ptr %75, i64 0, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !11
  %80 = zext i8 %79 to i32
  %81 = icmp eq i32 %80, 176
  br i1 %81, label %82, label %83

82:                                               ; preds = %73
  br label %87

83:                                               ; preds = %73
  br label %84

84:                                               ; preds = %83
  %85 = load i8, ptr %14, align 1, !tbaa !11
  %86 = add i8 %85, 1
  store i8 %86, ptr %14, align 1, !tbaa !11
  br label %68, !llvm.loop !27

87:                                               ; preds = %82, %68
  %88 = load i8, ptr %14, align 1, !tbaa !11
  %89 = zext i8 %88 to i64
  %90 = load i64, ptr %17, align 8, !tbaa !22
  %91 = icmp ult i64 %89, %90
  br i1 %91, label %92, label %129

92:                                               ; preds = %87
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = call ptr @AllocateAlignedBuffer(ptr noundef %93, i64 noundef 20)
  store ptr %94, ptr %16, align 8, !tbaa !5
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = icmp eq ptr %95, null
  br i1 %96, label %97, label %100

97:                                               ; preds = %92
  %98 = load ptr, ptr %15, align 8, !tbaa !5
  call void @FreeAlignedBuffer(ptr noundef %98, i64 noundef 260)
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 0, ptr %99, align 1, !tbaa !11
  store i64 -9223372036854775801, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %225

100:                                              ; preds = %92
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = call ptr @ZeroMem(ptr noundef %101, i64 noundef 20)
  store i32 20, ptr %6, align 4, !tbaa !9
  store i8 0, ptr %7, align 1, !tbaa !11
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !12
  %106 = call i64 @MultU64x32(i64 noundef 3, i32 noundef 10000000)
  %107 = load ptr, ptr %16, align 8, !tbaa !5
  %108 = call i64 @ScsiInquiryCommandEx(ptr noundef %105, i64 noundef %106, ptr noundef null, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %107, ptr noundef %6, i8 noundef zeroext 1, i8 noundef zeroext -80)
  store i64 %108, ptr %12, align 8, !tbaa !22
  %109 = load i64, ptr %12, align 8, !tbaa !22
  %110 = icmp slt i64 %109, 0
  br i1 %110, label %127, label %111

111:                                              ; preds = %100
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.EFI_SCSI_BLOCK_LIMITS_VPD_PAGE, ptr %112, i32 0, i32 5
  %114 = load i8, ptr %113, align 1, !tbaa !29
  %115 = zext i8 %114 to i32
  %116 = shl i32 %115, 8
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.EFI_SCSI_BLOCK_LIMITS_VPD_PAGE, ptr %117, i32 0, i32 6
  %119 = load i8, ptr %118, align 1, !tbaa !31
  %120 = zext i8 %119 to i32
  %121 = or i32 %116, %120
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %122, i32 0, i32 2
  %124 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %123, i32 0, i32 1
  %125 = load ptr, ptr %124, align 8, !tbaa !32
  %126 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %125, i32 0, i32 11
  store i32 %121, ptr %126, align 4, !tbaa !33
  br label %127

127:                                              ; preds = %111, %100
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  call void @FreeAlignedBuffer(ptr noundef %128, i64 noundef 20)
  br label %129

129:                                              ; preds = %127, %87
  br label %130

130:                                              ; preds = %129, %45
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  call void @FreeAlignedBuffer(ptr noundef %131, i64 noundef 260)
  br label %132

132:                                              ; preds = %130, %31
  br label %133

133:                                              ; preds = %132, %28
  %134 = load i64, ptr %12, align 8, !tbaa !22
  %135 = icmp slt i64 %134, 0
  br i1 %135, label %137, label %136

136:                                              ; preds = %133
  store i64 0, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %225

137:                                              ; preds = %133
  %138 = load i64, ptr %12, align 8, !tbaa !22
  %139 = icmp eq i64 %138, -9223372036854775802
  br i1 %139, label %140, label %142

140:                                              ; preds = %137
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 1, ptr %141, align 1, !tbaa !11
  store i64 -9223372036854775801, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %225

142:                                              ; preds = %137
  %143 = load i64, ptr %12, align 8, !tbaa !22
  %144 = icmp eq i64 %143, -9223372036854775806
  br i1 %144, label %148, label %145

145:                                              ; preds = %142
  %146 = load i64, ptr %12, align 8, !tbaa !22
  %147 = icmp eq i64 %146, -9223372036854775805
  br i1 %147, label %148, label %150

148:                                              ; preds = %145, %142
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 0, ptr %149, align 1, !tbaa !11
  store i64 -9223372036854775801, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %225

150:                                              ; preds = %145
  br label %151

151:                                              ; preds = %150
  br label %152

152:                                              ; preds = %151
  %153 = load i8, ptr %8, align 1, !tbaa !11
  %154 = call i64 @CheckHostAdapterStatus(i8 noundef zeroext %153)
  store i64 %154, ptr %12, align 8, !tbaa !22
  %155 = load i64, ptr %12, align 8, !tbaa !22
  %156 = icmp eq i64 %155, -9223372036854775790
  br i1 %156, label %160, label %157

157:                                              ; preds = %152
  %158 = load i64, ptr %12, align 8, !tbaa !22
  %159 = icmp eq i64 %158, -9223372036854775802
  br i1 %159, label %160, label %162

160:                                              ; preds = %157, %152
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 1, ptr %161, align 1, !tbaa !11
  store i64 -9223372036854775801, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %225

162:                                              ; preds = %157
  %163 = load i64, ptr %12, align 8, !tbaa !22
  %164 = icmp eq i64 %163, -9223372036854775801
  br i1 %164, label %165, label %176

165:                                              ; preds = %162
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %166, i32 0, i32 4
  %168 = load ptr, ptr %167, align 8, !tbaa !12
  %169 = getelementptr inbounds %struct._EFI_SCSI_IO_PROTOCOL, ptr %168, i32 0, i32 2
  %170 = load ptr, ptr %169, align 8, !tbaa !34
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !12
  %174 = call i64 %170(ptr noundef %173)
  %175 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 0, ptr %175, align 1, !tbaa !11
  store i64 -9223372036854775801, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %225

176:                                              ; preds = %162
  br label %177

177:                                              ; preds = %176
  %178 = load i8, ptr %9, align 1, !tbaa !11
  %179 = call i64 @CheckTargetStatus(i8 noundef zeroext %178)
  store i64 %179, ptr %12, align 8, !tbaa !22
  %180 = load i64, ptr %12, align 8, !tbaa !22
  %181 = icmp eq i64 %180, -9223372036854775802
  br i1 %181, label %182, label %193

182:                                              ; preds = %177
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %183, i32 0, i32 4
  %185 = load ptr, ptr %184, align 8, !tbaa !12
  %186 = getelementptr inbounds %struct._EFI_SCSI_IO_PROTOCOL, ptr %185, i32 0, i32 3
  %187 = load ptr, ptr %186, align 8, !tbaa !36
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %188, i32 0, i32 4
  %190 = load ptr, ptr %189, align 8, !tbaa !12
  %191 = call i64 %187(ptr noundef %190)
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 1, ptr %192, align 1, !tbaa !11
  store i64 -9223372036854775801, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %225

193:                                              ; preds = %177
  %194 = load i64, ptr %12, align 8, !tbaa !22
  %195 = icmp eq i64 %194, -9223372036854775801
  br i1 %195, label %196, label %198

196:                                              ; preds = %193
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 0, ptr %197, align 1, !tbaa !11
  store i64 -9223372036854775801, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %225

198:                                              ; preds = %193
  br label %199

199:                                              ; preds = %198
  store i8 3, ptr %13, align 1, !tbaa !11
  store i8 0, ptr %14, align 1, !tbaa !11
  br label %200

200:                                              ; preds = %220, %199
  %201 = load i8, ptr %14, align 1, !tbaa !11
  %202 = zext i8 %201 to i32
  %203 = load i8, ptr %13, align 1, !tbaa !11
  %204 = zext i8 %203 to i32
  %205 = icmp slt i32 %202, %204
  br i1 %205, label %206, label %223

206:                                              ; preds = %200
  %207 = load ptr, ptr %4, align 8, !tbaa !5
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = call i64 @ScsiDiskRequestSenseKeys(ptr noundef %207, ptr noundef %208, ptr noundef %10, ptr noundef %11, i8 noundef zeroext 1)
  store i64 %209, ptr %12, align 8, !tbaa !22
  %210 = load i64, ptr %12, align 8, !tbaa !22
  %211 = icmp slt i64 %210, 0
  br i1 %211, label %214, label %212

212:                                              ; preds = %206
  %213 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 1, ptr %213, align 1, !tbaa !11
  store i64 -9223372036854775801, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %225

214:                                              ; preds = %206
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = load i8, ptr %215, align 1, !tbaa !11
  %217 = icmp ne i8 %216, 0
  br i1 %217, label %219, label %218

218:                                              ; preds = %214
  store i64 -9223372036854775801, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %225

219:                                              ; preds = %214
  br label %220

220:                                              ; preds = %219
  %221 = load i8, ptr %14, align 1, !tbaa !11
  %222 = add i8 %221, 1
  store i8 %222, ptr %14, align 1, !tbaa !11
  br label %200, !llvm.loop !37

223:                                              ; preds = %200
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  store i8 0, ptr %224, align 1, !tbaa !11
  store i64 -9223372036854775801, ptr %3, align 8
  store i32 1, ptr %18, align 4
  br label %225

225:                                              ; preds = %223, %218, %212, %196, %182, %165, %160, %148, %140, %136, %97, %43
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %226 = load i64, ptr %3, align 8
  ret i64 %226
}

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

declare i64 @ScsiInquiryCommand(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext) #2

; Function Attrs: nounwind uwtable
declare dso_local void @ParseInquiryData(ptr noundef) #0

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

declare i64 @ScsiInquiryCommandEx(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @CheckHostAdapterStatus(i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @CheckTargetStatus(i8 noundef zeroext) #0

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 112}
!13 = !{!"", !10, i64 0, !6, i64 8, !14, i64 16, !16, i64 64, !6, i64 112, !7, i64 120, !7, i64 121, !17, i64 122, !6, i64 128, !15, i64 136, !18, i64 144, !6, i64 240, !19, i64 248, !10, i64 296, !10, i64 300, !21, i64 304, !7, i64 816}
!14 = !{!"_EFI_BLOCK_IO_PROTOCOL", !15, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!15 = !{!"long long", !7, i64 0}
!16 = !{!"", !10, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !10, i64 12, !10, i64 16, !15, i64 24, !15, i64 32, !10, i64 40, !10, 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 = !{!"", !10, 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 = !{!15, !15, i64 0}
!23 = !{!13, !7, i64 120}
!24 = !{!25, !7, i64 2}
!25 = !{!"", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!26 = !{!25, !7, i64 3}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!30, !7, i64 6}
!30 = !{!"", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !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 19}
!31 = !{!30, !7, i64 7}
!32 = !{!13, !6, i64 24}
!33 = !{!16, !10, i64 44}
!34 = !{!35, !6, i64 16}
!35 = !{!"_EFI_SCSI_IO_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !10, i64 40}
!36 = !{!35, !6, i64 24}
!37 = distinct !{!37, !28}


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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775801, 1) i64 @ScsiDiskInquiryDevice(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  store i32 96, ptr %3, align 4, !tbaa !5
  store i8 0, ptr %4, align 1, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %0, i64 112
  %10 = load ptr, ptr %9, align 8, !tbaa !10
  %11 = tail call i64 @MultU64x32(i64 noundef 3, i32 noundef 10000000) #3
  %12 = getelementptr inbounds i8, ptr %0, i64 144
  %13 = call i64 @ScsiInquiryCommand(ptr noundef %10, i64 noundef %11, ptr noundef null, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %12, ptr noundef nonnull %3, i8 noundef zeroext 0) #3
  %14 = and i64 %13, -5
  %or.cond = icmp eq i64 %14, 0
  br i1 %or.cond, label %15, label %70

15:                                               ; preds = %2
  call void @ParseInquiryData(ptr noundef nonnull %0)
  %16 = getelementptr inbounds i8, ptr %0, i64 120
  %17 = load i8, ptr %16, align 8, !tbaa !21
  %18 = icmp eq i8 %17, 0
  br i1 %18, label %19, label %.thread

19:                                               ; preds = %15
  %20 = call ptr @AllocateAlignedBuffer(ptr noundef nonnull %0, i64 noundef 260)
  %21 = icmp eq ptr %20, null
  br i1 %21, label %.thread.sink.split, label %22

22:                                               ; preds = %19
  %23 = call ptr @ZeroMem(ptr noundef nonnull %20, i64 noundef 260) #3
  store i32 260, ptr %3, align 4, !tbaa !5
  store i8 0, ptr %4, align 1, !tbaa !9
  %24 = load ptr, ptr %9, align 8, !tbaa !10
  %25 = call i64 @MultU64x32(i64 noundef 3, i32 noundef 10000000) #3
  %26 = call i64 @ScsiInquiryCommandEx(ptr noundef %24, i64 noundef %25, ptr noundef null, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %20, ptr noundef nonnull %3, i8 noundef zeroext 1, i8 noundef zeroext 0) #3
  %27 = icmp slt i64 %26, 0
  br i1 %27, label %.critedge, label %28

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %20, i64 2
  %30 = load i8, ptr %29, align 1, !tbaa !22
  %31 = zext i8 %30 to i64
  %32 = shl nuw nsw i64 %31, 8
  %33 = getelementptr inbounds i8, ptr %20, i64 3
  %34 = load i8, ptr %33, align 1, !tbaa !24
  %35 = zext i8 %34 to i64
  %36 = or disjoint i64 %32, %35
  %.not82 = icmp eq i64 %36, 0
  br i1 %.not82, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %28
  %37 = getelementptr inbounds i8, ptr %20, i64 4
  br label %42

38:                                               ; preds = %42
  %39 = add i8 %.06980, 1
  %40 = zext i8 %39 to i64
  %41 = icmp ugt i64 %36, %40
  br i1 %41, label %42, label %.critedge, !llvm.loop !25

42:                                               ; preds = %.lr.ph, %38
  %43 = phi i64 [ 0, %.lr.ph ], [ %40, %38 ]
  %.06980 = phi i8 [ 0, %.lr.ph ], [ %39, %38 ]
  %44 = getelementptr inbounds [256 x i8], ptr %37, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !9
  %46 = icmp eq i8 %45, -80
  br i1 %46, label %47, label %38

47:                                               ; preds = %42
  %48 = call ptr @AllocateAlignedBuffer(ptr noundef %0, i64 noundef 20)
  %49 = icmp eq ptr %48, null
  br i1 %49, label %50, label %51

50:                                               ; preds = %47
  call void @FreeAlignedBuffer(ptr noundef nonnull %20, i64 noundef 260)
  br label %.thread.sink.split

51:                                               ; preds = %47
  %52 = call ptr @ZeroMem(ptr noundef nonnull %48, i64 noundef 20) #3
  store i32 20, ptr %3, align 4, !tbaa !5
  store i8 0, ptr %4, align 1, !tbaa !9
  %53 = load ptr, ptr %9, align 8, !tbaa !10
  %54 = call i64 @MultU64x32(i64 noundef 3, i32 noundef 10000000) #3
  %55 = call i64 @ScsiInquiryCommandEx(ptr noundef %53, i64 noundef %54, ptr noundef null, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %48, ptr noundef nonnull %3, i8 noundef zeroext 1, i8 noundef zeroext -80) #3
  %56 = icmp slt i64 %55, 0
  br i1 %56, label %69, label %57

57:                                               ; preds = %51
  %58 = getelementptr inbounds i8, ptr %48, i64 6
  %59 = load i8, ptr %58, align 1, !tbaa !27
  %60 = zext i8 %59 to i32
  %61 = shl nuw nsw i32 %60, 8
  %62 = getelementptr inbounds i8, ptr %48, i64 7
  %63 = load i8, ptr %62, align 1, !tbaa !29
  %64 = zext i8 %63 to i32
  %65 = or disjoint i32 %61, %64
  %66 = getelementptr inbounds i8, ptr %0, i64 24
  %67 = load ptr, ptr %66, align 8, !tbaa !30
  %68 = getelementptr inbounds i8, ptr %67, i64 44
  store i32 %65, ptr %68, align 4, !tbaa !31
  br label %69

69:                                               ; preds = %57, %51
  call void @FreeAlignedBuffer(ptr noundef nonnull %48, i64 noundef 20)
  br label %.critedge

.critedge:                                        ; preds = %38, %28, %69, %22
  %.068 = phi i64 [ %26, %22 ], [ %55, %69 ], [ %26, %28 ], [ %26, %38 ]
  call void @FreeAlignedBuffer(ptr noundef nonnull %20, i64 noundef 260)
  br label %70

70:                                               ; preds = %.critedge, %2
  %.1 = phi i64 [ %.068, %.critedge ], [ %13, %2 ]
  %71 = icmp slt i64 %.1, 0
  br i1 %71, label %72, label %.thread

72:                                               ; preds = %70
  %73 = icmp eq i64 %.1, -9223372036854775802
  br i1 %73, label %.thread.sink.split, label %74

74:                                               ; preds = %72
  %75 = and i64 %.1, -2
  %or.cond3 = icmp eq i64 %75, -9223372036854775806
  br i1 %or.cond3, label %.thread.sink.split, label %76

76:                                               ; preds = %74
  %77 = load i8, ptr %5, align 1, !tbaa !9
  %78 = call i64 @CheckHostAdapterStatus(i8 noundef zeroext %77)
  switch i64 %78, label %84 [
    i64 -9223372036854775790, label %.thread.sink.split
    i64 -9223372036854775802, label %.thread.sink.split
    i64 -9223372036854775801, label %79
  ]

79:                                               ; preds = %76
  %80 = load ptr, ptr %9, align 8, !tbaa !10
  %81 = getelementptr inbounds i8, ptr %80, i64 16
  %82 = load ptr, ptr %81, align 8, !tbaa !32
  %83 = call i64 %82(ptr noundef %80) #3
  br label %.thread.sink.split

84:                                               ; preds = %76
  %85 = load i8, ptr %6, align 1, !tbaa !9
  %86 = call i64 @CheckTargetStatus(i8 noundef zeroext %85)
  switch i64 %86, label %.preheader.preheader [
    i64 -9223372036854775802, label %89
    i64 -9223372036854775801, label %.thread.sink.split
  ]

.preheader.preheader:                             ; preds = %84
  %87 = call i64 @ScsiDiskRequestSenseKeys(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %7, ptr noundef nonnull %8, i8 noundef zeroext 1)
  %88 = icmp slt i64 %87, 0
  br i1 %88, label %102, label %.thread.sink.split

89:                                               ; preds = %84
  %90 = load ptr, ptr %9, align 8, !tbaa !10
  %91 = getelementptr inbounds i8, ptr %90, i64 24
  %92 = load ptr, ptr %91, align 8, !tbaa !34
  %93 = call i64 %92(ptr noundef %90) #3
  br label %.thread.sink.split

.preheader.1:                                     ; preds = %102
  %94 = call i64 @ScsiDiskRequestSenseKeys(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %7, ptr noundef nonnull %8, i8 noundef zeroext 1)
  %95 = icmp slt i64 %94, 0
  br i1 %95, label %96, label %.thread.sink.split

96:                                               ; preds = %.preheader.1
  %97 = load i8, ptr %1, align 1, !tbaa !9
  %.not.1 = icmp eq i8 %97, 0
  br i1 %.not.1, label %.thread, label %.preheader.2

.preheader.2:                                     ; preds = %96
  %98 = call i64 @ScsiDiskRequestSenseKeys(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %7, ptr noundef nonnull %8, i8 noundef zeroext 1)
  %99 = icmp slt i64 %98, 0
  br i1 %99, label %100, label %.thread.sink.split

100:                                              ; preds = %.preheader.2
  %101 = load i8, ptr %1, align 1, !tbaa !9
  %.not.2 = icmp eq i8 %101, 0
  br i1 %.not.2, label %.thread, label %.thread.sink.split

102:                                              ; preds = %.preheader.preheader
  %103 = load i8, ptr %1, align 1, !tbaa !9
  %.not = icmp eq i8 %103, 0
  br i1 %.not, label %.thread, label %.preheader.1

.thread.sink.split:                               ; preds = %.preheader.preheader, %.preheader.1, %.preheader.2, %100, %84, %76, %76, %74, %72, %19, %50, %79, %89
  %.sink = phi i8 [ 1, %89 ], [ 0, %79 ], [ 0, %50 ], [ 0, %19 ], [ 1, %72 ], [ 0, %74 ], [ 1, %76 ], [ 1, %76 ], [ 0, %84 ], [ 0, %100 ], [ 1, %.preheader.2 ], [ 1, %.preheader.1 ], [ 1, %.preheader.preheader ]
  store i8 %.sink, ptr %1, align 1, !tbaa !9
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %102, %96, %100, %15, %70
  %.0 = phi i64 [ 0, %70 ], [ 0, %15 ], [ -9223372036854775801, %100 ], [ -9223372036854775801, %96 ], [ -9223372036854775801, %102 ], [ -9223372036854775801, %.thread.sink.split ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  ret i64 %.0
}

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

declare i64 @ScsiInquiryCommand(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @ParseInquiryData(ptr noundef) local_unnamed_addr #0

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

declare i64 @ScsiInquiryCommandEx(ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @CheckHostAdapterStatus(i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @CheckTargetStatus(i8 noundef zeroext) local_unnamed_addr #0

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 112}
!11 = !{!"", !6, i64 0, !12, i64 8, !13, i64 16, !15, i64 64, !12, i64 112, !7, i64 120, !7, i64 121, !16, i64 122, !12, i64 128, !14, i64 136, !17, i64 144, !12, i64 240, !18, i64 248, !6, i64 296, !6, i64 300, !20, i64 304, !7, i64 816}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"_EFI_BLOCK_IO_PROTOCOL", !14, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"", !6, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !6, i64 12, !6, i64 16, !14, i64 24, !14, i64 32, !6, i64 40, !6, i64 44}
!16 = !{!"short", !7, i64 0}
!17 = !{!"", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5}
!18 = !{!"_EFI_DISK_INFO_PROTOCOL", !19, i64 0, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!19 = !{!"", !6, i64 0, !16, i64 4, !16, i64 6, !7, i64 8}
!20 = !{!"", !16, i64 0, !16, i64 2, !16, i64 4, !7, i64 6, !7, i64 20, !7, i64 40, !7, i64 46, !7, i64 54, !7, i64 94, !16, i64 98, !16, i64 100, !16, i64 102, !16, i64 104, !16, i64 106, !7, i64 108, !16, i64 124, !16, i64 126, !16, i64 128, !16, i64 130, !16, i64 132, !16, i64 134, !16, i64 136, !7, i64 138, !7, i64 142, !7, i64 146, !16, i64 150, !16, i64 152, !16, i64 154, !16, i64 156, !16, i64 158, !16, i64 160, !16, i64 162, !16, i64 164, !16, i64 166, !16, i64 168, !16, i64 170, !16, i64 172, !16, i64 174, !16, i64 176, !16, i64 178, !16, i64 180, !16, i64 182, !16, i64 184, !16, i64 186, !16, i64 188, !7, i64 190, !7, i64 216, !7, i64 224, !7, i64 232, !16, i64 238, !16, i64 240, !7, i64 242, !16, i64 250, !7, i64 252, !16, i64 256, !7, i64 258, !7, i64 320, !7, i64 352, !16, i64 444, !16, i64 446, !7, i64 448, !16, i64 510}
!21 = !{!11, !7, i64 120}
!22 = !{!23, !7, i64 2}
!23 = !{!"", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4}
!24 = !{!23, !7, i64 3}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!28, !7, i64 6}
!28 = !{!"", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !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 19}
!29 = !{!28, !7, i64 7}
!30 = !{!11, !12, i64 24}
!31 = !{!15, !6, i64 44}
!32 = !{!33, !12, i64 16}
!33 = !{!"_EFI_SCSI_IO_PROTOCOL", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !6, i64 40}
!34 = !{!33, !12, i64 24}


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