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

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

%struct.GUID = type { i32, i16, i16, [8 x i8] }
%struct.EFI_BOOT_SERVICES = type { %struct.EFI_TABLE_HEADER, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_TABLE_HEADER = type { i64, i32, i32, i32, i32 }
%struct._EFI_DRIVER_BINDING_PROTOCOL = type { ptr, ptr, ptr, i32, ptr, ptr }
%struct._USB_MASS_DEVICE = type { i32, ptr, ptr, ptr, %struct._EFI_BLOCK_IO_PROTOCOL, %struct.EFI_BLOCK_IO_MEDIA, i8, i8, i8, ptr, ptr, %struct._EFI_DISK_INFO_PROTOCOL, %struct.USB_BOOT_INQUIRY_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_DISK_INFO_PROTOCOL = type { %struct.GUID, ptr, ptr, ptr, ptr }
%struct.USB_BOOT_INQUIRY_DATA = type { i8, i8, [2 x i8], i8, [3 x i8], [8 x i8], [16 x i8], [4 x i8] }
%struct._USB_MASS_TRANSPORT = type { i8, ptr, ptr, ptr, ptr, ptr }

@gBS = external global ptr, align 8
@.str = external hidden unnamed_addr constant [154 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@gEfiUsbIoProtocolGuid = external global %struct.GUID, align 4
@gEfiDevicePathProtocolGuid = external global %struct.GUID, align 4
@gEfiBlockIoProtocolGuid = external global %struct.GUID, align 4
@gEfiDiskInfoProtocolGuid = external global %struct.GUID, align 4
@.str.19 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [51 x i8], align 1

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

19:                                               ; preds = %4
  %20 = load ptr, ptr @gBS, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %20, i32 0, i32 33
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %24, i32 0, i32 5
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = call i64 %22(ptr noundef %23, ptr noundef @gEfiBlockIoProtocolGuid, ptr noundef %13, ptr noundef %26, ptr noundef %27, i32 noundef 2)
  store i64 %28, ptr %10, align 8, !tbaa !9
  %29 = load i64, ptr %10, align 8, !tbaa !9
  %30 = icmp slt i64 %29, 0
  br i1 %30, label %31, label %64

31:                                               ; preds = %19
  %32 = load ptr, ptr @gBS, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %32, i32 0, i32 34
  %34 = load ptr, ptr %33, align 8, !tbaa !17
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %36, i32 0, i32 5
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = call i64 %34(ptr noundef %35, ptr noundef @gEfiDevicePathProtocolGuid, ptr noundef %38, ptr noundef %39)
  %41 = load ptr, ptr @gBS, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %41, i32 0, i32 34
  %43 = load ptr, ptr %42, align 8, !tbaa !17
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %45, i32 0, i32 5
  %47 = load ptr, ptr %46, align 8, !tbaa !15
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = call i64 %43(ptr noundef %44, ptr noundef @gEfiUsbIoProtocolGuid, ptr noundef %47, ptr noundef %48)
  br label %50

50:                                               ; preds = %31
  %51 = call zeroext i8 @DebugPrintEnabled()
  %52 = icmp ne i8 %51, 0
  br i1 %52, label %53, label %61

53:                                               ; preds = %50
  br label %54

54:                                               ; preds = %53
  %55 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %56 = icmp ne i8 %55, 0
  br i1 %56, label %57, label %58

57:                                               ; preds = %54
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str.19)
  br label %58

58:                                               ; preds = %57, %54
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  br label %61

61:                                               ; preds = %60, %50
  br label %62

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62
  store i64 0, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %294

64:                                               ; preds = %19
  %65 = call zeroext i8 @DebugAssertEnabled()
  %66 = zext i8 %65 to i32
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %78

68:                                               ; preds = %64
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = ptrtoint ptr %69 to i64
  %71 = sub i64 %70, ptrtoint (ptr getelementptr inbounds (%struct._USB_MASS_DEVICE, ptr null, i32 0, i32 4) to i64)
  %72 = inttoptr i64 %71 to ptr
  %73 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !18
  %75 = icmp ne i32 %74, 1298297685
  br i1 %75, label %76, label %78

76:                                               ; preds = %68
  call void @DebugAssert(ptr noundef @.str, i64 noundef 962, ptr noundef @.str.1)
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  br label %83

78:                                               ; preds = %68, %64
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = ptrtoint ptr %79 to i64
  %81 = sub i64 %80, ptrtoint (ptr getelementptr inbounds (%struct._USB_MASS_DEVICE, ptr null, i32 0, i32 4) to i64)
  %82 = inttoptr i64 %81 to ptr
  br label %83

83:                                               ; preds = %78, %76
  %84 = phi ptr [ %77, %76 ], [ %82, %78 ]
  store ptr %84, ptr %11, align 8, !tbaa !5
  %85 = load ptr, ptr @gBS, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %85, i32 0, i32 40
  %87 = load ptr, ptr %86, align 8, !tbaa !26
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %89, i32 0, i32 4
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %91, i32 0, i32 11
  %93 = call i64 (ptr, ...) %87(ptr noundef %88, ptr noundef @gEfiBlockIoProtocolGuid, ptr noundef %90, ptr noundef @gEfiDiskInfoProtocolGuid, ptr noundef %92, ptr noundef null)
  store i64 %93, ptr %10, align 8, !tbaa !9
  %94 = load i64, ptr %10, align 8, !tbaa !9
  %95 = icmp slt i64 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %83
  %97 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %97, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %294

98:                                               ; preds = %83
  %99 = load ptr, ptr @gBS, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %99, i32 0, i32 34
  %101 = load ptr, ptr %100, align 8, !tbaa !17
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %103, i32 0, i32 5
  %105 = load ptr, ptr %104, align 8, !tbaa !15
  %106 = load ptr, ptr %7, align 8, !tbaa !5
  %107 = call i64 %101(ptr noundef %102, ptr noundef @gEfiUsbIoProtocolGuid, ptr noundef %105, ptr noundef %106)
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %108, i32 0, i32 9
  %110 = load ptr, ptr %109, align 8, !tbaa !27
  %111 = getelementptr inbounds %struct._USB_MASS_TRANSPORT, ptr %110, i32 0, i32 5
  %112 = load ptr, ptr %111, align 8, !tbaa !28
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %113, i32 0, i32 10
  %115 = load ptr, ptr %114, align 8, !tbaa !30
  %116 = call i64 %112(ptr noundef %115)
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  call void @FreePool(ptr noundef %117)
  br label %118

118:                                              ; preds = %98
  %119 = call zeroext i8 @DebugPrintEnabled()
  %120 = icmp ne i8 %119, 0
  br i1 %120, label %121, label %129

121:                                              ; preds = %118
  br label %122

122:                                              ; preds = %121
  %123 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %124 = icmp ne i8 %123, 0
  br i1 %124, label %125, label %126

125:                                              ; preds = %122
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str.20)
  br label %126

126:                                              ; preds = %125, %122
  br label %127

127:                                              ; preds = %126
  br label %128

128:                                              ; preds = %127
  br label %129

129:                                              ; preds = %128, %118
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  store i64 0, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %294

132:                                              ; preds = %4
  store i8 1, ptr %15, align 1, !tbaa !31
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %133

133:                                              ; preds = %270, %132
  %134 = load i64, ptr %14, align 8, !tbaa !9
  %135 = load i64, ptr %8, align 8, !tbaa !9
  %136 = icmp ult i64 %134, %135
  br i1 %136, label %137, label %273

137:                                              ; preds = %133
  %138 = load ptr, ptr @gBS, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %138, i32 0, i32 33
  %140 = load ptr, ptr %139, align 8, !tbaa !11
  %141 = load ptr, ptr %9, align 8, !tbaa !5
  %142 = load i64, ptr %14, align 8, !tbaa !9
  %143 = getelementptr inbounds ptr, ptr %141, i64 %142
  %144 = load ptr, ptr %143, align 8, !tbaa !5
  %145 = load ptr, ptr %6, 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 %7, align 8, !tbaa !5
  %149 = call i64 %140(ptr noundef %144, ptr noundef @gEfiBlockIoProtocolGuid, ptr noundef %13, ptr noundef %147, ptr noundef %148, i32 noundef 2)
  store i64 %149, ptr %10, align 8, !tbaa !9
  %150 = load i64, ptr %10, align 8, !tbaa !9
  %151 = icmp slt i64 %150, 0
  br i1 %151, label %152, label %169

152:                                              ; preds = %137
  store i8 0, ptr %15, align 1, !tbaa !31
  br label %153

153:                                              ; preds = %152
  %154 = call zeroext i8 @DebugPrintEnabled()
  %155 = icmp ne i8 %154, 0
  br i1 %155, label %156, label %166

156:                                              ; preds = %153
  br label %157

157:                                              ; preds = %156
  %158 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648)
  %159 = icmp ne i8 %158, 0
  br i1 %159, label %160, label %163

160:                                              ; preds = %157
  %161 = load i64, ptr %14, align 8, !tbaa !9
  %162 = trunc i64 %161 to i32
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef @.str.21, i32 noundef %162)
  br label %163

163:                                              ; preds = %160, %157
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165, %153
  br label %167

167:                                              ; preds = %166
  br label %168

168:                                              ; preds = %167
  br label %270

169:                                              ; preds = %137
  %170 = call zeroext i8 @DebugAssertEnabled()
  %171 = zext i8 %170 to i32
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %183

173:                                              ; preds = %169
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  %175 = ptrtoint ptr %174 to i64
  %176 = sub i64 %175, ptrtoint (ptr getelementptr inbounds (%struct._USB_MASS_DEVICE, ptr null, i32 0, i32 4) to i64)
  %177 = inttoptr i64 %176 to ptr
  %178 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %177, i32 0, i32 0
  %179 = load i32, ptr %178, align 8, !tbaa !18
  %180 = icmp ne i32 %179, 1298297685
  br i1 %180, label %181, label %183

181:                                              ; preds = %173
  call void @DebugAssert(ptr noundef @.str, i64 noundef 1017, ptr noundef @.str.1)
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  br label %188

183:                                              ; preds = %173, %169
  %184 = load ptr, ptr %13, align 8, !tbaa !5
  %185 = ptrtoint ptr %184 to i64
  %186 = sub i64 %185, ptrtoint (ptr getelementptr inbounds (%struct._USB_MASS_DEVICE, ptr null, i32 0, i32 4) to i64)
  %187 = inttoptr i64 %186 to ptr
  br label %188

188:                                              ; preds = %183, %181
  %189 = phi ptr [ %182, %181 ], [ %187, %183 ]
  store ptr %189, ptr %11, align 8, !tbaa !5
  %190 = load ptr, ptr @gBS, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %190, i32 0, i32 34
  %192 = load ptr, ptr %191, align 8, !tbaa !17
  %193 = load ptr, ptr %7, align 8, !tbaa !5
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %194, i32 0, i32 5
  %196 = load ptr, ptr %195, align 8, !tbaa !15
  %197 = load ptr, ptr %9, align 8, !tbaa !5
  %198 = load i64, ptr %14, align 8, !tbaa !9
  %199 = getelementptr inbounds ptr, ptr %197, i64 %198
  %200 = load ptr, ptr %199, align 8, !tbaa !5
  %201 = call i64 %192(ptr noundef %193, ptr noundef @gEfiUsbIoProtocolGuid, ptr noundef %196, ptr noundef %200)
  %202 = load ptr, ptr @gBS, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %202, i32 0, i32 40
  %204 = load ptr, ptr %203, align 8, !tbaa !26
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = load i64, ptr %14, align 8, !tbaa !9
  %207 = getelementptr inbounds ptr, ptr %205, i64 %206
  %208 = load ptr, ptr %207, align 8, !tbaa !5
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %209, i32 0, i32 3
  %211 = load ptr, ptr %210, align 8, !tbaa !32
  %212 = load ptr, ptr %11, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %212, i32 0, i32 4
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %214, i32 0, i32 11
  %216 = call i64 (ptr, ...) %204(ptr noundef %208, ptr noundef @gEfiDevicePathProtocolGuid, ptr noundef %211, ptr noundef @gEfiBlockIoProtocolGuid, ptr noundef %213, ptr noundef @gEfiDiskInfoProtocolGuid, ptr noundef %215, ptr noundef null)
  store i64 %216, ptr %10, align 8, !tbaa !9
  %217 = load i64, ptr %10, align 8, !tbaa !9
  %218 = icmp slt i64 %217, 0
  br i1 %218, label %219, label %248

219:                                              ; preds = %188
  store i8 0, ptr %15, align 1, !tbaa !31
  br label %220

220:                                              ; preds = %219
  %221 = call zeroext i8 @DebugPrintEnabled()
  %222 = icmp ne i8 %221, 0
  br i1 %222, label %223, label %233

223:                                              ; preds = %220
  br label %224

224:                                              ; preds = %223
  %225 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648)
  %226 = icmp ne i8 %225, 0
  br i1 %226, label %227, label %230

227:                                              ; preds = %224
  %228 = load i64, ptr %14, align 8, !tbaa !9
  %229 = trunc i64 %228 to i32
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef @.str.22, i32 noundef %229)
  br label %230

230:                                              ; preds = %227, %224
  br label %231

231:                                              ; preds = %230
  br label %232

232:                                              ; preds = %231
  br label %233

233:                                              ; preds = %232, %220
  br label %234

234:                                              ; preds = %233
  br label %235

235:                                              ; preds = %234
  %236 = load ptr, ptr @gBS, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %236, i32 0, i32 33
  %238 = load ptr, ptr %237, align 8, !tbaa !11
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %240, i32 0, i32 5
  %242 = load ptr, ptr %241, align 8, !tbaa !15
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = load i64, ptr %14, align 8, !tbaa !9
  %245 = getelementptr inbounds ptr, ptr %243, i64 %244
  %246 = load ptr, ptr %245, align 8, !tbaa !5
  %247 = call i64 %238(ptr noundef %239, ptr noundef @gEfiUsbIoProtocolGuid, ptr noundef %12, ptr noundef %242, ptr noundef %246, i32 noundef 8)
  br label %269

248:                                              ; preds = %188
  %249 = load i64, ptr %14, align 8, !tbaa !9
  %250 = add i64 %249, 1
  %251 = load i64, ptr %8, align 8, !tbaa !9
  %252 = icmp eq i64 %250, %251
  br i1 %252, label %253, label %267

253:                                              ; preds = %248
  %254 = load i8, ptr %15, align 1, !tbaa !31
  %255 = zext i8 %254 to i32
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %267

257:                                              ; preds = %253
  %258 = load ptr, ptr %11, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %258, i32 0, i32 9
  %260 = load ptr, ptr %259, align 8, !tbaa !27
  %261 = getelementptr inbounds %struct._USB_MASS_TRANSPORT, ptr %260, i32 0, i32 5
  %262 = load ptr, ptr %261, align 8, !tbaa !28
  %263 = load ptr, ptr %11, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct._USB_MASS_DEVICE, ptr %263, i32 0, i32 10
  %265 = load ptr, ptr %264, align 8, !tbaa !30
  %266 = call i64 %262(ptr noundef %265)
  br label %267

267:                                              ; preds = %257, %253, %248
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  call void @FreePool(ptr noundef %268)
  br label %269

269:                                              ; preds = %267, %235
  br label %270

270:                                              ; preds = %269, %168
  %271 = load i64, ptr %14, align 8, !tbaa !9
  %272 = add i64 %271, 1
  store i64 %272, ptr %14, align 8, !tbaa !9
  br label %133, !llvm.loop !33

273:                                              ; preds = %133
  %274 = load i8, ptr %15, align 1, !tbaa !31
  %275 = icmp ne i8 %274, 0
  br i1 %275, label %277, label %276

276:                                              ; preds = %273
  store i64 -9223372036854775801, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %294

277:                                              ; preds = %273
  br label %278

278:                                              ; preds = %277
  %279 = call zeroext i8 @DebugPrintEnabled()
  %280 = icmp ne i8 %279, 0
  br i1 %280, label %281, label %291

281:                                              ; preds = %278
  br label %282

282:                                              ; preds = %281
  %283 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %284 = icmp ne i8 %283, 0
  br i1 %284, label %285, label %288

285:                                              ; preds = %282
  %286 = load i64, ptr %8, align 8, !tbaa !9
  %287 = trunc i64 %286 to i32
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str.23, i32 noundef %287)
  br label %288

288:                                              ; preds = %285, %282
  br label %289

289:                                              ; preds = %288
  br label %290

290:                                              ; preds = %289
  br label %291

291:                                              ; preds = %290, %278
  br label %292

292:                                              ; preds = %291
  br label %293

293:                                              ; preds = %292
  store i64 0, ptr %5, align 8
  store i32 1, ptr %16, align 4
  br label %294

294:                                              ; preds = %293, %276, %131, %96, %63
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 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
  %295 = load i64, ptr %5, align 8
  ret i64 %295
}

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

declare zeroext i8 @DebugAssertEnabled() #2

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

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

declare zeroext i8 @DebugPrintEnabled() #2

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #2

declare void @DebugPrint(i64 noundef, ptr noundef, ...) #2

declare void @FreePool(ptr noundef) #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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !6, i64 280}
!12 = !{!"", !13, 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}
!13 = !{!"", !10, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}
!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 = !{!12, !6, i64 288}
!18 = !{!19, !14, i64 0}
!19 = !{!"_USB_MASS_DEVICE", !14, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !20, i64 32, !21, i64 80, !7, i64 128, !7, i64 129, !7, i64 130, !6, i64 136, !6, i64 144, !22, i64 152, !25, i64 200, !7, i64 236}
!20 = !{!"_EFI_BLOCK_IO_PROTOCOL", !10, 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, !10, i64 24, !10, i64 32, !14, i64 40, !14, i64 44}
!22 = !{!"_EFI_DISK_INFO_PROTOCOL", !23, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!23 = !{!"", !14, i64 0, !24, i64 4, !24, i64 6, !7, i64 8}
!24 = !{!"short", !7, i64 0}
!25 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 4, !7, i64 5, !7, i64 8, !7, i64 16, !7, i64 32}
!26 = !{!12, !6, i64 336}
!27 = !{!19, !6, i64 136}
!28 = !{!29, !6, i64 40}
!29 = !{!"_USB_MASS_TRANSPORT", !7, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!30 = !{!19, !6, i64 144}
!31 = !{!7, !7, i64 0}
!32 = !{!19, !6, i64 24}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


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

%struct.GUID = type { i32, i16, i16, [8 x i8] }

@gBS = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [154 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@gEfiUsbIoProtocolGuid = external global %struct.GUID, align 4
@gEfiDevicePathProtocolGuid = external global %struct.GUID, align 4
@gEfiBlockIoProtocolGuid = external global %struct.GUID, align 4
@gEfiDiskInfoProtocolGuid = external global %struct.GUID, align 4
@.str.19 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [51 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775808, 1) i64 @USBMassDriverBindingStop(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %7 = icmp eq i64 %2, 0
  br i1 %7, label %9, label %.preheader

.preheader:                                       ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  br label %63

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

17:                                               ; preds = %9
  %18 = load ptr, ptr @gBS, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 288
  %20 = load ptr, ptr %19, align 8, !tbaa !16
  %21 = load ptr, ptr %13, align 8, !tbaa !14
  %22 = call i64 %20(ptr noundef %1, ptr noundef nonnull @gEfiDevicePathProtocolGuid, ptr noundef %21, ptr noundef %1) #3
  %23 = load ptr, ptr @gBS, align 8, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %23, i64 288
  %25 = load ptr, ptr %24, align 8, !tbaa !16
  %26 = load ptr, ptr %13, align 8, !tbaa !14
  %27 = call i64 %25(ptr noundef %1, ptr noundef nonnull @gEfiUsbIoProtocolGuid, ptr noundef %26, ptr noundef %1) #3
  %28 = call zeroext i8 @DebugPrintEnabled() #3
  %.not72 = icmp eq i8 %28, 0
  br i1 %.not72, label %136, label %29

29:                                               ; preds = %17
  %30 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #3
  %.not73 = icmp eq i8 %30, 0
  br i1 %.not73, label %136, label %31

31:                                               ; preds = %29
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str.19) #3
  br label %136

32:                                               ; preds = %9
  %33 = call zeroext i8 @DebugAssertEnabled() #3
  %.not68 = icmp eq i8 %33, 0
  %.pre76 = load ptr, ptr %6, align 8, !tbaa !5
  %.pre78 = ptrtoint ptr %.pre76 to i64
  %.pre79 = add i64 %.pre78, -32
  %.pre81 = inttoptr i64 %.pre79 to ptr
  br i1 %.not68, label %._crit_edge77, label %34

34:                                               ; preds = %32
  %35 = load i32, ptr %.pre81, align 8, !tbaa !17
  %.not69 = icmp eq i32 %35, 1298297685
  br i1 %.not69, label %._crit_edge77, label %36

36:                                               ; preds = %34
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 962, ptr noundef nonnull @.str.1) #3
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  br label %._crit_edge77

._crit_edge77:                                    ; preds = %32, %34, %36
  %38 = phi ptr [ %37, %36 ], [ %.pre81, %34 ], [ %.pre81, %32 ]
  %39 = load ptr, ptr @gBS, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 336
  %41 = load ptr, ptr %40, align 8, !tbaa !25
  %42 = getelementptr inbounds i8, ptr %38, i64 32
  %43 = getelementptr inbounds i8, ptr %38, i64 152
  %44 = call i64 (ptr, ...) %41(ptr noundef %1, ptr noundef nonnull @gEfiBlockIoProtocolGuid, ptr noundef nonnull %42, ptr noundef nonnull @gEfiDiskInfoProtocolGuid, ptr noundef nonnull %43, ptr noundef null) #3
  %45 = icmp slt i64 %44, 0
  br i1 %45, label %136, label %46

46:                                               ; preds = %._crit_edge77
  %47 = load ptr, ptr @gBS, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %47, i64 288
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  %50 = load ptr, ptr %13, align 8, !tbaa !14
  %51 = call i64 %49(ptr noundef %1, ptr noundef nonnull @gEfiUsbIoProtocolGuid, ptr noundef %50, ptr noundef %1) #3
  %52 = getelementptr inbounds i8, ptr %38, i64 136
  %53 = load ptr, ptr %52, align 8, !tbaa !26
  %54 = getelementptr inbounds i8, ptr %53, i64 40
  %55 = load ptr, ptr %54, align 8, !tbaa !27
  %56 = getelementptr inbounds i8, ptr %38, i64 144
  %57 = load ptr, ptr %56, align 8, !tbaa !29
  %58 = call i64 %55(ptr noundef %57) #3
  call void @FreePool(ptr noundef %38) #3
  %59 = call zeroext i8 @DebugPrintEnabled() #3
  %.not70 = icmp eq i8 %59, 0
  br i1 %.not70, label %136, label %60

60:                                               ; preds = %46
  %61 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #3
  %.not71 = icmp eq i8 %61, 0
  br i1 %.not71, label %136, label %62

62:                                               ; preds = %60
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str.20) #3
  br label %136

63:                                               ; preds = %.preheader, %127
  %.075 = phi i8 [ 1, %.preheader ], [ %.1, %127 ]
  %.05674 = phi i64 [ 0, %.preheader ], [ %128, %127 ]
  %64 = load ptr, ptr @gBS, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 280
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  %67 = getelementptr inbounds ptr, ptr %3, i64 %.05674
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = load ptr, ptr %8, align 8, !tbaa !14
  %70 = call i64 %66(ptr noundef %68, ptr noundef nonnull @gEfiBlockIoProtocolGuid, ptr noundef nonnull %6, ptr noundef %69, ptr noundef %1, i32 noundef 2) #3
  %71 = icmp slt i64 %70, 0
  br i1 %71, label %72, label %78

72:                                               ; preds = %63
  %73 = call zeroext i8 @DebugPrintEnabled() #3
  %.not66 = icmp eq i8 %73, 0
  br i1 %.not66, label %127, label %74

74:                                               ; preds = %72
  %75 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648) #3
  %.not67 = icmp eq i8 %75, 0
  br i1 %.not67, label %127, label %76

76:                                               ; preds = %74
  %77 = trunc i64 %.05674 to i32
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef nonnull @.str.21, i32 noundef %77) #3
  br label %127

78:                                               ; preds = %63
  %79 = call zeroext i8 @DebugAssertEnabled() #3
  %.not62 = icmp eq i8 %79, 0
  %.pre = load ptr, ptr %6, align 8, !tbaa !5
  %.pre83 = ptrtoint ptr %.pre to i64
  %.pre85 = add i64 %.pre83, -32
  %.pre87 = inttoptr i64 %.pre85 to ptr
  br i1 %.not62, label %._crit_edge, label %80

80:                                               ; preds = %78
  %81 = load i32, ptr %.pre87, align 8, !tbaa !17
  %.not63 = icmp eq i32 %81, 1298297685
  br i1 %.not63, label %._crit_edge, label %82

82:                                               ; preds = %80
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1017, ptr noundef nonnull @.str.1) #3
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %78, %80, %82
  %84 = phi ptr [ %83, %82 ], [ %.pre87, %80 ], [ %.pre87, %78 ]
  %85 = load ptr, ptr @gBS, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %85, i64 288
  %87 = load ptr, ptr %86, align 8, !tbaa !16
  %88 = load ptr, ptr %8, align 8, !tbaa !14
  %89 = load ptr, ptr %67, align 8, !tbaa !5
  %90 = call i64 %87(ptr noundef %1, ptr noundef nonnull @gEfiUsbIoProtocolGuid, ptr noundef %88, ptr noundef %89) #3
  %91 = load ptr, ptr @gBS, align 8, !tbaa !5
  %92 = getelementptr inbounds i8, ptr %91, i64 336
  %93 = load ptr, ptr %92, align 8, !tbaa !25
  %94 = load ptr, ptr %67, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %84, i64 24
  %96 = load ptr, ptr %95, align 8, !tbaa !30
  %97 = getelementptr inbounds i8, ptr %84, i64 32
  %98 = getelementptr inbounds i8, ptr %84, i64 152
  %99 = call i64 (ptr, ...) %93(ptr noundef %94, ptr noundef nonnull @gEfiDevicePathProtocolGuid, ptr noundef %96, ptr noundef nonnull @gEfiBlockIoProtocolGuid, ptr noundef nonnull %97, ptr noundef nonnull @gEfiDiskInfoProtocolGuid, ptr noundef nonnull %98, ptr noundef null) #3
  %100 = icmp slt i64 %99, 0
  br i1 %100, label %101, label %114

101:                                              ; preds = %._crit_edge
  %102 = call zeroext i8 @DebugPrintEnabled() #3
  %.not64 = icmp eq i8 %102, 0
  br i1 %.not64, label %107, label %103

103:                                              ; preds = %101
  %104 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648) #3
  %.not65 = icmp eq i8 %104, 0
  br i1 %.not65, label %107, label %105

105:                                              ; preds = %103
  %106 = trunc i64 %.05674 to i32
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef nonnull @.str.22, i32 noundef %106) #3
  br label %107

107:                                              ; preds = %103, %105, %101
  %108 = load ptr, ptr @gBS, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i64 280
  %110 = load ptr, ptr %109, align 8, !tbaa !9
  %111 = load ptr, ptr %8, align 8, !tbaa !14
  %112 = load ptr, ptr %67, align 8, !tbaa !5
  %113 = call i64 %110(ptr noundef %1, ptr noundef nonnull @gEfiUsbIoProtocolGuid, ptr noundef nonnull %5, ptr noundef %111, ptr noundef %112, i32 noundef 8) #3
  br label %127

114:                                              ; preds = %._crit_edge
  %115 = add nuw i64 %.05674, 1
  %116 = icmp eq i64 %115, %2
  %117 = icmp ne i8 %.075, 0
  %or.cond = select i1 %116, i1 %117, i1 false
  br i1 %or.cond, label %118, label %126

118:                                              ; preds = %114
  %119 = getelementptr inbounds i8, ptr %84, i64 136
  %120 = load ptr, ptr %119, align 8, !tbaa !26
  %121 = getelementptr inbounds i8, ptr %120, i64 40
  %122 = load ptr, ptr %121, align 8, !tbaa !27
  %123 = getelementptr inbounds i8, ptr %84, i64 144
  %124 = load ptr, ptr %123, align 8, !tbaa !29
  %125 = call i64 %122(ptr noundef %124) #3
  br label %126

126:                                              ; preds = %118, %114
  call void @FreePool(ptr noundef nonnull %84) #3
  br label %127

127:                                              ; preds = %107, %126, %72, %76, %74
  %.1 = phi i8 [ 0, %76 ], [ 0, %74 ], [ 0, %72 ], [ 0, %107 ], [ %.075, %126 ]
  %128 = add nuw i64 %.05674, 1
  %exitcond.not = icmp eq i64 %128, %2
  br i1 %exitcond.not, label %129, label %63, !llvm.loop !31

129:                                              ; preds = %127
  %.not = icmp eq i8 %.1, 0
  br i1 %.not, label %136, label %130

130:                                              ; preds = %129
  %131 = call zeroext i8 @DebugPrintEnabled() #3
  %.not60 = icmp eq i8 %131, 0
  br i1 %.not60, label %136, label %132

132:                                              ; preds = %130
  %133 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #3
  %.not61 = icmp eq i8 %133, 0
  br i1 %.not61, label %136, label %134

134:                                              ; preds = %132
  %135 = trunc i64 %2 to i32
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str.23, i32 noundef %135) #3
  br label %136

136:                                              ; preds = %130, %134, %132, %129, %46, %62, %60, %._crit_edge77, %17, %31, %29
  %.057 = phi i64 [ 0, %29 ], [ 0, %31 ], [ 0, %17 ], [ %44, %._crit_edge77 ], [ 0, %60 ], [ 0, %62 ], [ 0, %46 ], [ -9223372036854775801, %129 ], [ 0, %132 ], [ 0, %134 ], [ 0, %130 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret i64 %.057
}

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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #2

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

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

declare zeroext i8 @DebugPrintEnabled() local_unnamed_addr #2

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) local_unnamed_addr #2

declare void @DebugPrint(i64 noundef, ptr noundef, ...) local_unnamed_addr #2

declare void @FreePool(ptr noundef) 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 = !{!10, !6, i64 288}
!17 = !{!18, !13, i64 0}
!18 = !{!"_USB_MASS_DEVICE", !13, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !19, i64 32, !20, i64 80, !7, i64 128, !7, i64 129, !7, i64 130, !6, i64 136, !6, i64 144, !21, i64 152, !24, i64 200, !7, i64 236}
!19 = !{!"_EFI_BLOCK_IO_PROTOCOL", !12, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!20 = !{!"", !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}
!21 = !{!"_EFI_DISK_INFO_PROTOCOL", !22, i64 0, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!22 = !{!"", !13, i64 0, !23, i64 4, !23, i64 6, !7, i64 8}
!23 = !{!"short", !7, i64 0}
!24 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 4, !7, i64 5, !7, i64 8, !7, i64 16, !7, i64 32}
!25 = !{!10, !6, i64 336}
!26 = !{!18, !6, i64 136}
!27 = !{!28, !6, i64 40}
!28 = !{!"_USB_MASS_TRANSPORT", !7, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!29 = !{!18, !6, i64 144}
!30 = !{!18, !6, i64 24}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}


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