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

; 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_COMPONENT_NAME_PROTOCOL = type { ptr, ptr, ptr }
%struct._EFI_COMPONENT_NAME2_PROTOCOL = type { ptr, ptr, ptr }
%struct.GUID = type { i32, i16, i16, [8 x i8] }
%struct.EFI_BOOT_SERVICES = type { %struct.EFI_TABLE_HEADER, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_TABLE_HEADER = type { i64, i32, i32, i32, i32 }
%struct._EFI_DRIVER_BINDING_PROTOCOL = type { ptr, ptr, ptr, i32, ptr, ptr }
%struct.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.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_IO_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, i32 }

@gScsiDiskComponentName = external global %struct._EFI_COMPONENT_NAME_PROTOCOL, align 8
@gScsiDiskComponentName2 = external global %struct._EFI_COMPONENT_NAME2_PROTOCOL, align 8
@gBS = external global ptr, align 8
@gEfiScsiIoProtocolGuid = external global %struct.GUID, align 4
@gEfiBlockIoProtocolGuid = external global %struct.GUID, align 4
@gEfiDiskInfoProtocolGuid = external global %struct.GUID, align 4
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i32], align 4
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @ScsiDiskDriverBindingStart(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i8, align 1
  %16 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 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 1, ptr %15) #3
  store i8 1, ptr %15, align 1, !tbaa !9
  %17 = call ptr @AllocateZeroPool(i64 noundef 824)
  store ptr %17, ptr %10, align 8, !tbaa !5
  %18 = load ptr, ptr %10, align 8, !tbaa !5
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %3
  store i64 -9223372036854775799, ptr %4, align 8
  store i32 1, ptr %16, align 4
  br label %214

21:                                               ; preds = %3
  %22 = load ptr, ptr @gBS, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %22, i32 0, i32 33
  %24 = load ptr, ptr %23, align 8, !tbaa !10
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %26, i32 0, i32 5
  %28 = load ptr, ptr %27, align 8, !tbaa !15
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call i64 %24(ptr noundef %25, ptr noundef @gEfiScsiIoProtocolGuid, ptr noundef %9, ptr noundef %28, ptr noundef %29, i32 noundef 16)
  store i64 %30, ptr %8, align 8, !tbaa !17
  %31 = load i64, ptr %8, align 8, !tbaa !17
  %32 = icmp slt i64 %31, 0
  br i1 %32, label %33, label %36

33:                                               ; preds = %21
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  call void @FreePool(ptr noundef %34)
  %35 = load i64, ptr %8, align 8, !tbaa !17
  store i64 %35, ptr %4, align 8
  store i32 1, ptr %16, align 4
  br label %214

36:                                               ; preds = %21
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %37, i32 0, i32 0
  store i32 1801741171, ptr %38, align 8, !tbaa !18
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %40, i32 0, i32 4
  store ptr %39, ptr %41, align 8, !tbaa !27
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %42, i32 0, i32 2
  %44 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %43, i32 0, i32 0
  store i64 131121, ptr %44, align 8, !tbaa !28
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %45, i32 0, i32 3
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %47, i32 0, i32 2
  %49 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %48, i32 0, i32 1
  store ptr %46, ptr %49, align 8, !tbaa !29
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct._EFI_SCSI_IO_PROTOCOL, ptr %50, i32 0, i32 5
  %52 = load i32, ptr %51, align 8, !tbaa !30
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %53, i32 0, i32 2
  %55 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %54, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !29
  %57 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %56, i32 0, i32 7
  store i32 %52, ptr %57, align 8, !tbaa !32
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %58, i32 0, i32 2
  %60 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %59, i32 0, i32 2
  store ptr @ScsiDiskReset, ptr %60, align 8, !tbaa !33
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %61, i32 0, i32 2
  %63 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %62, i32 0, i32 3
  store ptr @ScsiDiskReadBlocks, ptr %63, align 8, !tbaa !34
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %64, i32 0, i32 2
  %66 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %65, i32 0, i32 4
  store ptr @ScsiDiskWriteBlocks, ptr %66, align 8, !tbaa !35
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %67, i32 0, i32 2
  %69 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %68, i32 0, i32 5
  store ptr @ScsiDiskFlushBlocks, ptr %69, align 8, !tbaa !36
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %71, i32 0, i32 1
  store ptr %70, ptr %72, align 8, !tbaa !37
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._EFI_SCSI_IO_PROTOCOL, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !38
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %77, i32 0, i32 5
  %79 = call i64 %75(ptr noundef %76, ptr noundef %78)
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %80, i32 0, i32 5
  %82 = load i8, ptr %81, align 8, !tbaa !39
  %83 = zext i8 %82 to i32
  switch i32 %83, label %96 [
    i32 0, label %84
    i32 5, label %90
  ]

84:                                               ; preds = %36
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %85, i32 0, i32 2
  %87 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %86, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !29
  %89 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %88, i32 0, i32 6
  store i32 512, ptr %89, align 4, !tbaa !40
  store i8 1, ptr %15, align 1, !tbaa !9
  br label %96

90:                                               ; preds = %36
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %91, i32 0, i32 2
  %93 = getelementptr inbounds %struct._EFI_BLOCK_IO_PROTOCOL, ptr %92, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !29
  %95 = getelementptr inbounds %struct.EFI_BLOCK_IO_MEDIA, ptr %94, i32 0, i32 6
  store i32 2048, ptr %95, align 4, !tbaa !40
  store i8 0, ptr %15, align 1, !tbaa !9
  br label %96

96:                                               ; preds = %90, %84, %36
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %97, i32 0, i32 9
  store i64 6, ptr %98, align 8, !tbaa !41
  %99 = load ptr, ptr %10, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %99, i32 0, i32 9
  %101 = load i64, ptr %100, align 8, !tbaa !41
  %102 = mul i64 18, %101
  %103 = call ptr @AllocateZeroPool(i64 noundef %102)
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %104, i32 0, i32 8
  store ptr %103, ptr %105, align 8, !tbaa !42
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %106, i32 0, i32 8
  %108 = load ptr, ptr %107, align 8, !tbaa !42
  %109 = icmp eq ptr %108, null
  br i1 %109, label %110, label %121

110:                                              ; preds = %96
  %111 = load ptr, ptr @gBS, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %111, i32 0, i32 34
  %113 = load ptr, ptr %112, align 8, !tbaa !43
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %115, i32 0, i32 5
  %117 = load ptr, ptr %116, align 8, !tbaa !15
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = call i64 %113(ptr noundef %114, ptr noundef @gEfiScsiIoProtocolGuid, ptr noundef %117, ptr noundef %118)
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  call void @FreePool(ptr noundef %120)
  store i64 -9223372036854775799, ptr %4, align 8
  store i32 1, ptr %16, align 4
  br label %214

121:                                              ; preds = %96
  store i8 2, ptr %13, align 1, !tbaa !9
  store i8 0, ptr %12, align 1, !tbaa !9
  br label %122

122:                                              ; preds = %152, %121
  %123 = load i8, ptr %12, align 1, !tbaa !9
  %124 = zext i8 %123 to i32
  %125 = load i8, ptr %13, align 1, !tbaa !9
  %126 = zext i8 %125 to i32
  %127 = icmp slt i32 %124, %126
  br i1 %127, label %128, label %155

128:                                              ; preds = %122
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = call i64 @ScsiDiskInquiryDevice(ptr noundef %129, ptr noundef %14)
  store i64 %130, ptr %8, align 8, !tbaa !17
  %131 = load i64, ptr %8, align 8, !tbaa !17
  %132 = icmp slt i64 %131, 0
  br i1 %132, label %134, label %133

133:                                              ; preds = %128
  br label %155

134:                                              ; preds = %128
  %135 = load i8, ptr %14, align 1, !tbaa !9
  %136 = icmp ne i8 %135, 0
  br i1 %136, label %151, label %137

137:                                              ; preds = %134
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %138, i32 0, i32 8
  %140 = load ptr, ptr %139, align 8, !tbaa !42
  call void @FreePool(ptr noundef %140)
  %141 = load ptr, ptr @gBS, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %141, i32 0, i32 34
  %143 = load ptr, ptr %142, align 8, !tbaa !43
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %145, i32 0, i32 5
  %147 = load ptr, ptr %146, align 8, !tbaa !15
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = call i64 %143(ptr noundef %144, ptr noundef @gEfiScsiIoProtocolGuid, ptr noundef %147, ptr noundef %148)
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  call void @FreePool(ptr noundef %150)
  store i64 -9223372036854775801, ptr %4, align 8
  store i32 1, ptr %16, align 4
  br label %214

151:                                              ; preds = %134
  br label %152

152:                                              ; preds = %151
  %153 = load i8, ptr %12, align 1, !tbaa !9
  %154 = add i8 %153, 1
  store i8 %154, ptr %12, align 1, !tbaa !9
  br label %122, !llvm.loop !44

155:                                              ; preds = %133, %122
  %156 = load ptr, ptr %10, align 8, !tbaa !5
  %157 = load i8, ptr %15, align 1, !tbaa !9
  %158 = call i64 @ScsiDiskDetectMedia(ptr noundef %156, i8 noundef zeroext %157, ptr noundef %11)
  store i64 %158, ptr %8, align 8, !tbaa !17
  %159 = load i64, ptr %8, align 8, !tbaa !17
  %160 = icmp slt i64 %159, 0
  br i1 %160, label %191, label %161

161:                                              ; preds = %155
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = call zeroext i8 @DetermineInstallBlockIo(ptr noundef %162)
  %164 = icmp ne i8 %163, 0
  br i1 %164, label %165, label %190

165:                                              ; preds = %161
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  call void @InitializeInstallDiskInfo(ptr noundef %166, ptr noundef %167)
  %168 = load ptr, ptr @gBS, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %168, i32 0, i32 39
  %170 = load ptr, ptr %169, align 8, !tbaa !46
  %171 = load ptr, ptr %10, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %171, i32 0, i32 2
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %173, i32 0, i32 12
  %175 = call i64 (ptr, ...) %170(ptr noundef %6, ptr noundef @gEfiBlockIoProtocolGuid, ptr noundef %172, ptr noundef @gEfiDiskInfoProtocolGuid, ptr noundef %174, ptr noundef null)
  store i64 %175, ptr %8, align 8, !tbaa !17
  %176 = load i64, ptr %8, align 8, !tbaa !17
  %177 = icmp slt i64 %176, 0
  br i1 %177, label %189, label %178

178:                                              ; preds = %165
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %179, i32 0, i32 11
  store ptr null, ptr %180, align 8, !tbaa !47
  %181 = load ptr, ptr getelementptr inbounds (%struct._EFI_COMPONENT_NAME_PROTOCOL, ptr @gScsiDiskComponentName, i32 0, i32 2), align 8, !tbaa !48
  %182 = load ptr, ptr %10, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %182, i32 0, i32 11
  %184 = call i64 @AddUnicodeString2(ptr noundef @.str.3, ptr noundef %181, ptr noundef %183, ptr noundef @.str.4, i8 noundef zeroext 1)
  %185 = load ptr, ptr getelementptr inbounds (%struct._EFI_COMPONENT_NAME2_PROTOCOL, ptr @gScsiDiskComponentName2, i32 0, i32 2), align 8, !tbaa !50
  %186 = load ptr, ptr %10, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %186, i32 0, i32 11
  %188 = call i64 @AddUnicodeString2(ptr noundef @.str.5, ptr noundef %185, ptr noundef %187, ptr noundef @.str.4, i8 noundef zeroext 0)
  store i64 0, ptr %4, align 8
  store i32 1, ptr %16, align 4
  br label %214

189:                                              ; preds = %165
  br label %190

190:                                              ; preds = %189, %161
  br label %191

191:                                              ; preds = %190, %155
  %192 = load ptr, ptr @gBS, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %192, i32 0, i32 7
  %194 = load ptr, ptr %193, align 8, !tbaa !52
  %195 = load ptr, ptr %10, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.SCSI_DISK_DEV, ptr %195, i32 0, i32 8
  %197 = load ptr, ptr %196, align 8, !tbaa !42
  %198 = call i64 %194(ptr noundef %197)
  %199 = load ptr, ptr @gBS, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %199, i32 0, i32 7
  %201 = load ptr, ptr %200, align 8, !tbaa !52
  %202 = load ptr, ptr %10, align 8, !tbaa !5
  %203 = call i64 %201(ptr noundef %202)
  %204 = load ptr, ptr @gBS, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %204, i32 0, i32 34
  %206 = load ptr, ptr %205, align 8, !tbaa !43
  %207 = load ptr, ptr %6, align 8, !tbaa !5
  %208 = load ptr, ptr %5, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %208, i32 0, i32 5
  %210 = load ptr, ptr %209, align 8, !tbaa !15
  %211 = load ptr, ptr %6, align 8, !tbaa !5
  %212 = call i64 %206(ptr noundef %207, ptr noundef @gEfiScsiIoProtocolGuid, ptr noundef %210, ptr noundef %211)
  %213 = load i64, ptr %8, align 8, !tbaa !17
  store i64 %213, ptr %4, align 8
  store i32 1, ptr %16, align 4
  br label %214

214:                                              ; preds = %191, %178, %137, %110, %33, %20
  call void @llvm.lifetime.end.p0(i64 1, 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
  %215 = load i64, ptr %4, align 8
  ret i64 %215
}

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

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

declare ptr @AllocateZeroPool(i64 noundef) #2

declare void @FreePool(ptr noundef) #2

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

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

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

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

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

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

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

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

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

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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 280}
!11 = !{!"", !12, 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}
!12 = !{!"", !13, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 40}
!16 = !{!"_EFI_DRIVER_BINDING_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !14, i64 24, !6, i64 32, !6, i64 40}
!17 = !{!13, !13, i64 0}
!18 = !{!19, !14, i64 0}
!19 = !{!"", !14, i64 0, !6, i64 8, !20, i64 16, !21, i64 64, !6, i64 112, !7, i64 120, !7, i64 121, !22, i64 122, !6, i64 128, !13, i64 136, !23, i64 144, !6, i64 240, !24, i64 248, !14, i64 296, !14, i64 300, !26, i64 304, !7, i64 816}
!20 = !{!"_EFI_BLOCK_IO_PROTOCOL", !13, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!21 = !{!"", !14, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !14, i64 12, !14, i64 16, !13, i64 24, !13, i64 32, !14, i64 40, !14, i64 44}
!22 = !{!"short", !7, i64 0}
!23 = !{!"", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5}
!24 = !{!"_EFI_DISK_INFO_PROTOCOL", !25, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!25 = !{!"", !14, i64 0, !22, i64 4, !22, i64 6, !7, i64 8}
!26 = !{!"", !22, i64 0, !22, i64 2, !22, i64 4, !7, i64 6, !7, i64 20, !7, i64 40, !7, i64 46, !7, i64 54, !7, i64 94, !22, i64 98, !22, i64 100, !22, i64 102, !22, i64 104, !22, i64 106, !7, i64 108, !22, i64 124, !22, i64 126, !22, i64 128, !22, i64 130, !22, i64 132, !22, i64 134, !22, i64 136, !7, i64 138, !7, i64 142, !7, i64 146, !22, i64 150, !22, i64 152, !22, i64 154, !22, i64 156, !22, i64 158, !22, i64 160, !22, i64 162, !22, i64 164, !22, i64 166, !22, i64 168, !22, i64 170, !22, i64 172, !22, i64 174, !22, i64 176, !22, i64 178, !22, i64 180, !22, i64 182, !22, i64 184, !22, i64 186, !22, i64 188, !7, i64 190, !7, i64 216, !7, i64 224, !7, i64 232, !22, i64 238, !22, i64 240, !7, i64 242, !22, i64 250, !7, i64 252, !22, i64 256, !7, i64 258, !7, i64 320, !7, i64 352, !22, i64 444, !22, i64 446, !7, i64 448, !22, i64 510}
!27 = !{!19, !6, i64 112}
!28 = !{!19, !13, i64 16}
!29 = !{!19, !6, i64 24}
!30 = !{!31, !14, i64 40}
!31 = !{!"_EFI_SCSI_IO_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !14, i64 40}
!32 = !{!21, !14, i64 16}
!33 = !{!19, !6, i64 32}
!34 = !{!19, !6, i64 40}
!35 = !{!19, !6, i64 48}
!36 = !{!19, !6, i64 56}
!37 = !{!19, !6, i64 8}
!38 = !{!31, !6, i64 0}
!39 = !{!19, !7, i64 120}
!40 = !{!21, !14, i64 12}
!41 = !{!19, !13, i64 136}
!42 = !{!19, !6, i64 128}
!43 = !{!11, !6, i64 288}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}
!46 = !{!11, !6, i64 328}
!47 = !{!19, !6, i64 240}
!48 = !{!49, !6, i64 16}
!49 = !{!"_EFI_COMPONENT_NAME_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!50 = !{!51, !6, i64 16}
!51 = !{!"_EFI_COMPONENT_NAME2_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!52 = !{!11, !6, i64 72}


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

@gScsiDiskComponentName = external local_unnamed_addr global %struct._EFI_COMPONENT_NAME_PROTOCOL, align 8
@gScsiDiskComponentName2 = external local_unnamed_addr global %struct._EFI_COMPONENT_NAME2_PROTOCOL, align 8
@gBS = external local_unnamed_addr global ptr, align 8
@gEfiScsiIoProtocolGuid = external global %struct.GUID, align 4
@gEfiBlockIoProtocolGuid = external global %struct.GUID, align 4
@gEfiDiskInfoProtocolGuid = external global %struct.GUID, align 4
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i32], align 4
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @ScsiDiskDriverBindingStart(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readnone %2) local_unnamed_addr #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  store ptr %1, ptr %4, align 8, !tbaa !5
  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 1, ptr nonnull %7) #3
  %8 = tail call ptr @AllocateZeroPool(i64 noundef 824) #3
  %9 = icmp eq ptr %8, null
  br i1 %9, label %99, label %10

10:                                               ; preds = %3
  %11 = load ptr, ptr @gBS, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 280
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  %15 = load ptr, ptr %14, align 8, !tbaa !14
  %16 = call i64 %13(ptr noundef %1, ptr noundef nonnull @gEfiScsiIoProtocolGuid, ptr noundef nonnull %5, ptr noundef %15, ptr noundef %1, i32 noundef 16) #3
  %17 = icmp slt i64 %16, 0
  br i1 %17, label %18, label %19

18:                                               ; preds = %10
  call void @FreePool(ptr noundef nonnull %8) #3
  br label %99

19:                                               ; preds = %10
  store i32 1801741171, ptr %8, align 8, !tbaa !16
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %8, i64 112
  store ptr %20, ptr %21, align 8, !tbaa !25
  %22 = getelementptr inbounds i8, ptr %8, i64 16
  store i64 131121, ptr %22, align 8, !tbaa !26
  %23 = getelementptr inbounds i8, ptr %8, i64 64
  %24 = getelementptr inbounds i8, ptr %8, i64 24
  store ptr %23, ptr %24, align 8, !tbaa !27
  %25 = getelementptr inbounds i8, ptr %20, i64 40
  %26 = load i32, ptr %25, align 8, !tbaa !28
  %27 = getelementptr inbounds i8, ptr %8, i64 80
  store i32 %26, ptr %27, align 8, !tbaa !30
  %28 = getelementptr inbounds i8, ptr %8, i64 32
  store ptr @ScsiDiskReset, ptr %28, align 8, !tbaa !31
  %29 = getelementptr inbounds i8, ptr %8, i64 40
  store ptr @ScsiDiskReadBlocks, ptr %29, align 8, !tbaa !32
  %30 = getelementptr inbounds i8, ptr %8, i64 48
  store ptr @ScsiDiskWriteBlocks, ptr %30, align 8, !tbaa !33
  %31 = getelementptr inbounds i8, ptr %8, i64 56
  store ptr @ScsiDiskFlushBlocks, ptr %31, align 8, !tbaa !34
  %32 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %1, ptr %32, align 8, !tbaa !35
  %33 = load ptr, ptr %20, align 8, !tbaa !36
  %34 = getelementptr inbounds i8, ptr %8, i64 120
  %35 = call i64 %33(ptr noundef nonnull %20, ptr noundef nonnull %34) #3
  %36 = load i8, ptr %34, align 8, !tbaa !37
  switch i8 %36, label %40 [
    i8 0, label %.sink.split
    i8 5, label %37
  ]

37:                                               ; preds = %19
  br label %.sink.split

.sink.split:                                      ; preds = %19, %37
  %.sink = phi i32 [ 2048, %37 ], [ 512, %19 ]
  %.0.ph = phi i8 [ 0, %37 ], [ 1, %19 ]
  %38 = load ptr, ptr %24, align 8, !tbaa !27
  %39 = getelementptr inbounds i8, ptr %38, i64 12
  store i32 %.sink, ptr %39, align 4, !tbaa !38
  br label %40

40:                                               ; preds = %.sink.split, %19
  %.0 = phi i8 [ 1, %19 ], [ %.0.ph, %.sink.split ]
  %41 = getelementptr inbounds i8, ptr %8, i64 136
  store i64 6, ptr %41, align 8, !tbaa !39
  %42 = call ptr @AllocateZeroPool(i64 noundef 108) #3
  %43 = getelementptr inbounds i8, ptr %8, i64 128
  store ptr %42, ptr %43, align 8, !tbaa !40
  %44 = icmp eq ptr %42, null
  br i1 %44, label %47, label %.preheader.preheader

.preheader.preheader:                             ; preds = %40
  %45 = call i64 @ScsiDiskInquiryDevice(ptr noundef nonnull %8, ptr noundef nonnull %7)
  %46 = icmp slt i64 %45, 0
  br i1 %46, label %56, label %65

47:                                               ; preds = %40
  %48 = load ptr, ptr @gBS, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %48, i64 288
  %50 = load ptr, ptr %49, align 8, !tbaa !41
  %51 = load ptr, ptr %14, align 8, !tbaa !14
  %52 = call i64 %50(ptr noundef %1, ptr noundef nonnull @gEfiScsiIoProtocolGuid, ptr noundef %51, ptr noundef %1) #3
  call void @FreePool(ptr noundef nonnull %8) #3
  br label %99

.preheader.1:                                     ; preds = %56
  %53 = call i64 @ScsiDiskInquiryDevice(ptr noundef nonnull %8, ptr noundef nonnull %7)
  %54 = icmp slt i64 %53, 0
  %55 = load i8, ptr %7, align 1
  %.not55.1 = icmp eq i8 %55, 0
  %or.cond = select i1 %54, i1 %.not55.1, i1 false
  br i1 %or.cond, label %58, label %65

56:                                               ; preds = %.preheader.preheader
  %57 = load i8, ptr %7, align 1, !tbaa !42
  %.not55 = icmp eq i8 %57, 0
  br i1 %.not55, label %58, label %.preheader.1

58:                                               ; preds = %.preheader.1, %56
  %59 = load ptr, ptr %43, align 8, !tbaa !40
  call void @FreePool(ptr noundef %59) #3
  %60 = load ptr, ptr @gBS, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 288
  %62 = load ptr, ptr %61, align 8, !tbaa !41
  %63 = load ptr, ptr %14, align 8, !tbaa !14
  %64 = call i64 %62(ptr noundef %1, ptr noundef nonnull @gEfiScsiIoProtocolGuid, ptr noundef %63, ptr noundef %1) #3
  call void @FreePool(ptr noundef nonnull %8) #3
  br label %99

65:                                               ; preds = %.preheader.1, %.preheader.preheader
  %66 = call i64 @ScsiDiskDetectMedia(ptr noundef nonnull %8, i8 noundef zeroext %.0, ptr noundef nonnull %6)
  %67 = icmp slt i64 %66, 0
  br i1 %67, label %83, label %68

68:                                               ; preds = %65
  %69 = call zeroext i8 @DetermineInstallBlockIo(ptr noundef %1)
  %.not = icmp eq i8 %69, 0
  br i1 %.not, label %83, label %70

70:                                               ; preds = %68
  call void @InitializeInstallDiskInfo(ptr noundef nonnull %8, ptr noundef %1)
  %71 = load ptr, ptr @gBS, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i64 328
  %73 = load ptr, ptr %72, align 8, !tbaa !43
  %74 = getelementptr inbounds i8, ptr %8, i64 248
  %75 = call i64 (ptr, ...) %73(ptr noundef nonnull %4, ptr noundef nonnull @gEfiBlockIoProtocolGuid, ptr noundef nonnull %22, ptr noundef nonnull @gEfiDiskInfoProtocolGuid, ptr noundef nonnull %74, ptr noundef null) #3
  %76 = icmp slt i64 %75, 0
  br i1 %76, label %83, label %77

77:                                               ; preds = %70
  %78 = getelementptr inbounds i8, ptr %8, i64 240
  store ptr null, ptr %78, align 8, !tbaa !44
  %79 = load ptr, ptr getelementptr inbounds (i8, ptr @gScsiDiskComponentName, i64 16), align 8, !tbaa !45
  %80 = call i64 @AddUnicodeString2(ptr noundef nonnull @.str.3, ptr noundef %79, ptr noundef nonnull %78, ptr noundef nonnull @.str.4, i8 noundef zeroext 1) #3
  %81 = load ptr, ptr getelementptr inbounds (i8, ptr @gScsiDiskComponentName2, i64 16), align 8, !tbaa !47
  %82 = call i64 @AddUnicodeString2(ptr noundef nonnull @.str.5, ptr noundef %81, ptr noundef nonnull %78, ptr noundef nonnull @.str.4, i8 noundef zeroext 0) #3
  br label %99

83:                                               ; preds = %68, %70, %65
  %.050 = phi i64 [ %66, %65 ], [ %75, %70 ], [ %66, %68 ]
  %84 = load ptr, ptr @gBS, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 72
  %86 = load ptr, ptr %85, align 8, !tbaa !49
  %87 = load ptr, ptr %43, align 8, !tbaa !40
  %88 = call i64 %86(ptr noundef %87) #3
  %89 = load ptr, ptr @gBS, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 72
  %91 = load ptr, ptr %90, align 8, !tbaa !49
  %92 = call i64 %91(ptr noundef nonnull %8) #3
  %93 = load ptr, ptr @gBS, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %93, i64 288
  %95 = load ptr, ptr %94, align 8, !tbaa !41
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load ptr, ptr %14, align 8, !tbaa !14
  %98 = call i64 %95(ptr noundef %96, ptr noundef nonnull @gEfiScsiIoProtocolGuid, ptr noundef %97, ptr noundef %96) #3
  br label %99

99:                                               ; preds = %3, %83, %77, %58, %47, %18
  %.048 = phi i64 [ %16, %18 ], [ -9223372036854775799, %47 ], [ -9223372036854775801, %58 ], [ %.050, %83 ], [ 0, %77 ], [ -9223372036854775799, %3 ]
  call void @llvm.lifetime.end.p0(i64 1, 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
  ret i64 %.048
}

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

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

declare ptr @AllocateZeroPool(i64 noundef) local_unnamed_addr #2

declare void @FreePool(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 280}
!10 = !{!"", !11, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!11 = !{!"", !12, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !6, i64 40}
!15 = !{!"_EFI_DRIVER_BINDING_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !6, i64 32, !6, i64 40}
!16 = !{!17, !13, i64 0}
!17 = !{!"", !13, i64 0, !6, i64 8, !18, i64 16, !19, i64 64, !6, i64 112, !7, i64 120, !7, i64 121, !20, i64 122, !6, i64 128, !12, i64 136, !21, i64 144, !6, i64 240, !22, i64 248, !13, i64 296, !13, i64 300, !24, i64 304, !7, i64 816}
!18 = !{!"_EFI_BLOCK_IO_PROTOCOL", !12, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!19 = !{!"", !13, i64 0, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !13, i64 12, !13, i64 16, !12, i64 24, !12, i64 32, !13, i64 40, !13, i64 44}
!20 = !{!"short", !7, i64 0}
!21 = !{!"", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5}
!22 = !{!"_EFI_DISK_INFO_PROTOCOL", !23, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!23 = !{!"", !13, i64 0, !20, i64 4, !20, i64 6, !7, i64 8}
!24 = !{!"", !20, i64 0, !20, i64 2, !20, i64 4, !7, i64 6, !7, i64 20, !7, i64 40, !7, i64 46, !7, i64 54, !7, i64 94, !20, i64 98, !20, i64 100, !20, i64 102, !20, i64 104, !20, i64 106, !7, i64 108, !20, i64 124, !20, i64 126, !20, i64 128, !20, i64 130, !20, i64 132, !20, i64 134, !20, i64 136, !7, i64 138, !7, i64 142, !7, i64 146, !20, i64 150, !20, i64 152, !20, i64 154, !20, i64 156, !20, i64 158, !20, i64 160, !20, i64 162, !20, i64 164, !20, i64 166, !20, i64 168, !20, i64 170, !20, i64 172, !20, i64 174, !20, i64 176, !20, i64 178, !20, i64 180, !20, i64 182, !20, i64 184, !20, i64 186, !20, i64 188, !7, i64 190, !7, i64 216, !7, i64 224, !7, i64 232, !20, i64 238, !20, i64 240, !7, i64 242, !20, i64 250, !7, i64 252, !20, i64 256, !7, i64 258, !7, i64 320, !7, i64 352, !20, i64 444, !20, i64 446, !7, i64 448, !20, i64 510}
!25 = !{!17, !6, i64 112}
!26 = !{!17, !12, i64 16}
!27 = !{!17, !6, i64 24}
!28 = !{!29, !13, i64 40}
!29 = !{!"_EFI_SCSI_IO_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40}
!30 = !{!19, !13, i64 16}
!31 = !{!17, !6, i64 32}
!32 = !{!17, !6, i64 40}
!33 = !{!17, !6, i64 48}
!34 = !{!17, !6, i64 56}
!35 = !{!17, !6, i64 8}
!36 = !{!29, !6, i64 0}
!37 = !{!17, !7, i64 120}
!38 = !{!19, !13, i64 12}
!39 = !{!17, !12, i64 136}
!40 = !{!17, !6, i64 128}
!41 = !{!10, !6, i64 288}
!42 = !{!7, !7, i64 0}
!43 = !{!10, !6, i64 328}
!44 = !{!17, !6, i64 240}
!45 = !{!46, !6, i64 16}
!46 = !{!"_EFI_COMPONENT_NAME_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!48, !6, i64 16}
!48 = !{!"_EFI_COMPONENT_NAME2_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!49 = !{!10, !6, i64 72}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass