; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/NetworkPkg/IScsiDxe (IScsiStop)

; 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._ISCSI_DRIVER_DATA = type { i32, ptr, ptr, %struct._ISCSI_PRIVATE_PROTOCOL, ptr, %struct._EFI_EXT_SCSI_PASS_THRU_PROTOCOL, %struct.EFI_EXT_SCSI_PASS_THRU_MODE, ptr, ptr, ptr, ptr }
%struct._ISCSI_PRIVATE_PROTOCOL = type { i32 }
%struct._EFI_EXT_SCSI_PASS_THRU_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_EXT_SCSI_PASS_THRU_MODE = type { i32, i32, i32 }
%struct._ISCSI_SESSION = type { i32, ptr, ptr, i8, %union.anon.0, i8, [6 x i8], i16, i32, i32, i32, i32, i16, %struct._LIST_ENTRY, i32, %struct._LIST_ENTRY, i16, i32, i8, i8, i32, i32, i32, i32, i16, i8, i8, i8 }
%union.anon.0 = type { %struct._ISCSI_CHAP_AUTH_DATA }
%struct._ISCSI_CHAP_AUTH_DATA = type { ptr, i32, [1024 x i8], i32, [16 x i8], i32, [1024 x i8], i32 }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct._ISCSI_CONNECTION = type { i32, %struct._LIST_ENTRY, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, i8, i16, i32, %struct.NET_BUF_QUEUE, i8, %struct.TCP_IO, i32, i32, i32 }
%struct.NET_BUF_QUEUE = type { i32, i64, %struct._LIST_ENTRY, %struct._LIST_ENTRY, i32, i32 }
%struct.TCP_IO = type { i8, ptr, ptr, ptr, %union.TCP_IO_PROTOCOL, %union.TCP_IO_PROTOCOL, %union.TCP_IO_CONNECTION_TOKEN, %union.TCP_IO_IO_TOKEN, %union.TCP_IO_IO_TOKEN, %union.TCP_IO_CLOSE_TOKEN, %union.TCP_IO_LISTEN_TOKEN, i8, i8, i8, i8, i8 }
%union.TCP_IO_PROTOCOL = type { ptr }
%union.TCP_IO_CONNECTION_TOKEN = type { %struct.EFI_TCP4_CONNECTION_TOKEN }
%struct.EFI_TCP4_CONNECTION_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN }
%struct.EFI_TCP4_COMPLETION_TOKEN = type { ptr, i64 }
%union.TCP_IO_IO_TOKEN = type { %struct.EFI_TCP4_IO_TOKEN }
%struct.EFI_TCP4_IO_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN, %union.anon.1 }
%union.anon.1 = type { ptr }
%union.TCP_IO_CLOSE_TOKEN = type { %struct.EFI_TCP4_CLOSE_TOKEN }
%struct.EFI_TCP4_CLOSE_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN, i8 }
%union.TCP_IO_LISTEN_TOKEN = type { %struct.EFI_TCP4_LISTEN_TOKEN }
%struct.EFI_TCP4_LISTEN_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN, ptr }

@gIScsiV4PrivateGuid = external dso_local global %struct.GUID, align 4
@gIScsiV6PrivateGuid = external dso_local global %struct.GUID, align 4
@gEfiTcp4ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gEfiTcp6ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gBS = external global ptr, align 8
@gEfiTcp4ProtocolGuid = external global %struct.GUID, align 4
@gEfiTcp6ProtocolGuid = external global %struct.GUID, align 4
@gEfiExtScsiPassThruProtocolGuid = external global %struct.GUID, align 4
@.str.1 = external hidden unnamed_addr constant [135 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1

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

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

declare zeroext i8 @DebugAssertEnabled() #1

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

declare void @IScsiSessionAbort(ptr noundef) #1

declare i64 @IScsiRemoveNic(ptr noundef) #1

declare void @IScsiCleanDriverData(ptr noundef) #1

declare void @IScsiPublishIbft() #1

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

24:                                               ; preds = %5
  %25 = load ptr, ptr @gBS, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %25, i32 0, i32 33
  %27 = load ptr, ptr %26, align 8, !tbaa !12
  %28 = load ptr, ptr %10, align 8, !tbaa !5
  %29 = getelementptr inbounds ptr, ptr %28, i64 0
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %31, i32 0, i32 5
  %33 = load ptr, ptr %32, align 8, !tbaa !16
  %34 = load ptr, ptr %8, align 8, !tbaa !5
  %35 = call i64 %27(ptr noundef %30, ptr noundef @gEfiExtScsiPassThruProtocolGuid, ptr noundef %16, ptr noundef %33, ptr noundef %34, i32 noundef 2)
  store i64 %35, ptr %13, align 8, !tbaa !9
  %36 = load i64, ptr %13, align 8, !tbaa !9
  %37 = icmp slt i64 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %24
  store i64 -9223372036854775801, ptr %6, align 8
  store i32 1, ptr %21, align 4
  br label %232

39:                                               ; preds = %24
  %40 = call zeroext i8 @DebugAssertEnabled()
  %41 = zext i8 %40 to i32
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %53

43:                                               ; preds = %39
  %44 = load ptr, ptr %16, align 8, !tbaa !5
  %45 = ptrtoint ptr %44 to i64
  %46 = sub i64 %45, ptrtoint (ptr getelementptr inbounds (%struct._ISCSI_DRIVER_DATA, ptr null, i32 0, i32 5) to i64)
  %47 = inttoptr i64 %46 to ptr
  %48 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 8, !tbaa !18
  %50 = icmp ne i32 %49, 1094996809
  br i1 %50, label %51, label %53

51:                                               ; preds = %43
  call void @DebugAssert(ptr noundef @.str.1, i64 noundef 851, ptr noundef @.str.3)
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  br label %58

53:                                               ; preds = %43, %39
  %54 = load ptr, ptr %16, align 8, !tbaa !5
  %55 = ptrtoint ptr %54 to i64
  %56 = sub i64 %55, ptrtoint (ptr getelementptr inbounds (%struct._ISCSI_DRIVER_DATA, ptr null, i32 0, i32 5) to i64)
  %57 = inttoptr i64 %56 to ptr
  br label %58

58:                                               ; preds = %53, %51
  %59 = phi ptr [ %52, %51 ], [ %57, %53 ]
  store ptr %59, ptr %15, align 8, !tbaa !5
  %60 = load ptr, ptr %15, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %60, i32 0, i32 10
  %62 = load ptr, ptr %61, align 8, !tbaa !23
  %63 = getelementptr inbounds %struct._ISCSI_SESSION, ptr %62, i32 0, i32 13
  %64 = getelementptr inbounds %struct._LIST_ENTRY, ptr %63, i32 0, i32 0
  %65 = load ptr, ptr %64, align 8, !tbaa !24
  %66 = ptrtoint ptr %65 to i64
  %67 = sub i64 %66, ptrtoint (ptr getelementptr inbounds (%struct._ISCSI_CONNECTION, ptr null, i32 0, i32 1) to i64)
  %68 = inttoptr i64 %67 to ptr
  store ptr %68, ptr %17, align 8, !tbaa !5
  %69 = load i8, ptr %11, align 1, !tbaa !11
  %70 = zext i8 %69 to i32
  %71 = icmp eq i32 %70, 4
  br i1 %71, label %72, label %73

72:                                               ; preds = %58
  store ptr @gEfiTcp4ProtocolGuid, ptr %18, align 8, !tbaa !5
  br label %74

73:                                               ; preds = %58
  store ptr @gEfiTcp6ProtocolGuid, ptr %18, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %73, %72
  %75 = load ptr, ptr @gBS, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %75, i32 0, i32 34
  %77 = load ptr, ptr %76, align 8, !tbaa !28
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %78, i32 0, i32 9
  %80 = load ptr, ptr %79, align 8, !tbaa !29
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !30
  %85 = load ptr, ptr %15, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %85, i32 0, i32 7
  %87 = load ptr, ptr %86, align 8, !tbaa !31
  %88 = call i64 %77(ptr noundef %80, ptr noundef %81, ptr noundef %84, ptr noundef %87)
  %89 = load ptr, ptr @gBS, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %89, i32 0, i32 34
  %91 = load ptr, ptr %90, align 8, !tbaa !28
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._ISCSI_CONNECTION, ptr %92, i32 0, i32 16
  %94 = getelementptr inbounds %struct.TCP_IO, ptr %93, i32 0, i32 3
  %95 = load ptr, ptr %94, align 8, !tbaa !32
  %96 = load ptr, ptr %18, align 8, !tbaa !5
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %97, i32 0, i32 1
  %99 = load ptr, ptr %98, align 8, !tbaa !30
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %100, i32 0, i32 7
  %102 = load ptr, ptr %101, align 8, !tbaa !31
  %103 = call i64 %91(ptr noundef %95, ptr noundef %96, ptr noundef %99, ptr noundef %102)
  store i64 0, ptr %6, align 8
  store i32 1, ptr %21, align 4
  br label %232

104:                                              ; preds = %5
  %105 = load i8, ptr %11, align 1, !tbaa !11
  %106 = zext i8 %105 to i32
  %107 = icmp eq i32 %106, 4
  br i1 %107, label %108, label %109

108:                                              ; preds = %104
  store ptr @gIScsiV4PrivateGuid, ptr %18, align 8, !tbaa !5
  store ptr @gEfiTcp4ProtocolGuid, ptr %20, align 8, !tbaa !5
  store ptr @gEfiTcp4ServiceBindingProtocolGuid, ptr %19, align 8, !tbaa !5
  br label %110

109:                                              ; preds = %104
  store ptr @gIScsiV6PrivateGuid, ptr %18, align 8, !tbaa !5
  store ptr @gEfiTcp6ProtocolGuid, ptr %20, align 8, !tbaa !5
  store ptr @gEfiTcp6ServiceBindingProtocolGuid, ptr %19, align 8, !tbaa !5
  br label %110

110:                                              ; preds = %109, %108
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = load ptr, ptr %20, align 8, !tbaa !5
  %113 = call ptr @NetLibGetNicHandle(ptr noundef %111, ptr noundef %112)
  store ptr %113, ptr %12, align 8, !tbaa !5
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  %115 = icmp eq ptr %114, null
  br i1 %115, label %116, label %117

116:                                              ; preds = %110
  store i64 0, ptr %6, align 8
  store i32 1, ptr %21, align 4
  br label %232

117:                                              ; preds = %110
  %118 = load ptr, ptr @gBS, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %118, i32 0, i32 33
  %120 = load ptr, ptr %119, align 8, !tbaa !12
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %123, i32 0, i32 5
  %125 = load ptr, ptr %124, align 8, !tbaa !16
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = call i64 %120(ptr noundef %121, ptr noundef %122, ptr noundef %14, ptr noundef %125, ptr noundef %126, i32 noundef 2)
  store i64 %127, ptr %13, align 8, !tbaa !9
  %128 = load i64, ptr %13, align 8, !tbaa !9
  %129 = icmp slt i64 %128, 0
  br i1 %129, label %130, label %131

130:                                              ; preds = %117
  store i64 -9223372036854775801, ptr %6, align 8
  store i32 1, ptr %21, align 4
  br label %232

131:                                              ; preds = %117
  %132 = call zeroext i8 @DebugAssertEnabled()
  %133 = zext i8 %132 to i32
  %134 = icmp ne i32 %133, 0
  br i1 %134, label %135, label %145

135:                                              ; preds = %131
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = ptrtoint ptr %136 to i64
  %138 = sub i64 %137, ptrtoint (ptr getelementptr inbounds (%struct._ISCSI_DRIVER_DATA, ptr null, i32 0, i32 3) to i64)
  %139 = inttoptr i64 %138 to ptr
  %140 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 8, !tbaa !18
  %142 = icmp ne i32 %141, 1094996809
  br i1 %142, label %143, label %145

143:                                              ; preds = %135
  call void @DebugAssert(ptr noundef @.str.1, i64 noundef 911, ptr noundef @.str.3)
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  br label %150

145:                                              ; preds = %135, %131
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = ptrtoint ptr %146 to i64
  %148 = sub i64 %147, ptrtoint (ptr getelementptr inbounds (%struct._ISCSI_DRIVER_DATA, ptr null, i32 0, i32 3) to i64)
  %149 = inttoptr i64 %148 to ptr
  br label %150

150:                                              ; preds = %145, %143
  %151 = phi ptr [ %144, %143 ], [ %149, %145 ]
  store ptr %151, ptr %15, align 8, !tbaa !5
  br label %152

152:                                              ; preds = %150
  %153 = call zeroext i8 @DebugAssertEnabled()
  %154 = icmp ne i8 %153, 0
  br i1 %154, label %155, label %160

155:                                              ; preds = %152
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = icmp ne ptr %156, null
  br i1 %157, label %159, label %158

158:                                              ; preds = %155
  call void @DebugAssert(ptr noundef @.str.1, i64 noundef 912, ptr noundef @.str.6)
  br label %159

159:                                              ; preds = %158, %155
  br label %160

160:                                              ; preds = %159, %152
  br label %161

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161
  %163 = load ptr, ptr %15, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %163, i32 0, i32 9
  %165 = load ptr, ptr %164, align 8, !tbaa !29
  %166 = icmp ne ptr %165, null
  br i1 %166, label %167, label %211

167:                                              ; preds = %162
  %168 = load ptr, ptr @gBS, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %168, i32 0, i32 34
  %170 = load ptr, ptr %169, align 8, !tbaa !28
  %171 = load ptr, ptr %15, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %171, i32 0, i32 9
  %173 = load ptr, ptr %172, align 8, !tbaa !29
  %174 = load ptr, ptr %20, align 8, !tbaa !5
  %175 = load ptr, ptr %7, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %175, i32 0, i32 5
  %177 = load ptr, ptr %176, align 8, !tbaa !16
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  %179 = call i64 %170(ptr noundef %173, ptr noundef %174, ptr noundef %177, ptr noundef %178)
  store i64 %179, ptr %13, align 8, !tbaa !9
  br label %180

180:                                              ; preds = %167
  %181 = call zeroext i8 @DebugAssertEnabled()
  %182 = icmp ne i8 %181, 0
  br i1 %182, label %183, label %188

183:                                              ; preds = %180
  %184 = load i64, ptr %13, align 8, !tbaa !9
  %185 = icmp slt i64 %184, 0
  br i1 %185, label %186, label %187

186:                                              ; preds = %183
  call void @DebugAssert(ptr noundef @.str.1, i64 noundef 922, ptr noundef @.str.7)
  br label %187

187:                                              ; preds = %186, %183
  br label %188

188:                                              ; preds = %187, %180
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  %191 = load ptr, ptr %12, align 8, !tbaa !5
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %192, i32 0, i32 5
  %194 = load ptr, ptr %193, align 8, !tbaa !16
  %195 = load ptr, ptr %19, align 8, !tbaa !5
  %196 = load ptr, ptr %15, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %196, i32 0, i32 9
  %198 = load ptr, ptr %197, align 8, !tbaa !29
  %199 = call i64 @NetLibDestroyServiceChild(ptr noundef %191, ptr noundef %194, ptr noundef %195, ptr noundef %198)
  store i64 %199, ptr %13, align 8, !tbaa !9
  br label %200

200:                                              ; preds = %190
  %201 = call zeroext i8 @DebugAssertEnabled()
  %202 = icmp ne i8 %201, 0
  br i1 %202, label %203, label %208

203:                                              ; preds = %200
  %204 = load i64, ptr %13, align 8, !tbaa !9
  %205 = icmp slt i64 %204, 0
  br i1 %205, label %206, label %207

206:                                              ; preds = %203
  call void @DebugAssert(ptr noundef @.str.1, i64 noundef 931, ptr noundef @.str.7)
  br label %207

207:                                              ; preds = %206, %203
  br label %208

208:                                              ; preds = %207, %200
  br label %209

209:                                              ; preds = %208
  br label %210

210:                                              ; preds = %209
  br label %211

211:                                              ; preds = %210, %162
  %212 = load ptr, ptr @gBS, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %212, i32 0, i32 16
  %214 = load ptr, ptr %213, align 8, !tbaa !36
  %215 = load ptr, ptr %12, align 8, !tbaa !5
  %216 = load ptr, ptr %18, align 8, !tbaa !5
  %217 = load ptr, ptr %15, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %217, i32 0, i32 3
  %219 = call i64 %214(ptr noundef %215, ptr noundef %216, ptr noundef %218)
  %220 = load ptr, ptr %12, align 8, !tbaa !5
  %221 = call i64 @IScsiRemoveNic(ptr noundef %220)
  call void @IScsiPublishIbft()
  %222 = load ptr, ptr %15, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %222, i32 0, i32 10
  %224 = load ptr, ptr %223, align 8, !tbaa !23
  %225 = icmp ne ptr %224, null
  br i1 %225, label %226, label %230

226:                                              ; preds = %211
  %227 = load ptr, ptr %15, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct._ISCSI_DRIVER_DATA, ptr %227, i32 0, i32 10
  %229 = load ptr, ptr %228, align 8, !tbaa !23
  call void @IScsiSessionAbort(ptr noundef %229)
  br label %230

230:                                              ; preds = %226, %211
  %231 = load ptr, ptr %15, align 8, !tbaa !5
  call void @IScsiCleanDriverData(ptr noundef %231)
  store i64 0, ptr %6, align 8
  store i32 1, ptr %21, align 4
  br label %232

232:                                              ; preds = %230, %130, %116, %74, %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  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 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
  %233 = load i64, ptr %6, align 8
  ret i64 %233
}

declare ptr @NetLibGetNicHandle(ptr noundef, ptr noundef) #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 280}
!13 = !{!"", !14, 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}
!14 = !{!"", !10, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !6, i64 40}
!17 = !{!"_EFI_DRIVER_BINDING_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !15, i64 24, !6, i64 32, !6, i64 40}
!18 = !{!19, !15, i64 0}
!19 = !{!"_ISCSI_DRIVER_DATA", !15, i64 0, !6, i64 8, !6, i64 16, !20, i64 24, !6, i64 32, !21, i64 40, !22, i64 104, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144}
!20 = !{!"_ISCSI_PRIVATE_PROTOCOL", !15, i64 0}
!21 = !{!"_EFI_EXT_SCSI_PASS_THRU_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!22 = !{!"", !15, i64 0, !15, i64 4, !15, i64 8}
!23 = !{!19, !6, i64 144}
!24 = !{!25, !6, i64 2152}
!25 = !{!"_ISCSI_SESSION", !15, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !7, i64 32, !7, i64 2120, !7, i64 2121, !26, i64 2128, !15, i64 2132, !15, i64 2136, !15, i64 2140, !15, i64 2144, !26, i64 2148, !27, i64 2152, !15, i64 2168, !27, i64 2176, !26, i64 2192, !15, i64 2196, !7, i64 2200, !7, i64 2201, !15, i64 2204, !15, i64 2208, !15, i64 2212, !15, i64 2216, !26, i64 2220, !7, i64 2222, !7, i64 2223, !7, i64 2224}
!26 = !{!"short", !7, i64 0}
!27 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!28 = !{!13, !6, i64 288}
!29 = !{!19, !6, i64 136}
!30 = !{!19, !6, i64 8}
!31 = !{!19, !6, i64 120}
!32 = !{!33, !6, i64 144}
!33 = !{!"_ISCSI_CONNECTION", !15, i64 0, !27, i64 8, !6, i64 24, !6, i64 32, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !7, i64 45, !7, i64 46, !7, i64 47, !26, i64 48, !15, i64 52, !34, i64 56, !7, i64 112, !35, i64 120, !15, i64 288, !15, i64 292, !15, i64 296}
!34 = !{!"", !15, i64 0, !10, i64 8, !27, i64 16, !27, i64 32, !15, i64 48, !15, i64 52}
!35 = !{!"", !7, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 64, !7, i64 88, !7, i64 112, !7, i64 136, !7, i64 160, !7, i64 161, !7, i64 162, !7, i64 163, !7, i64 164}
!36 = !{!13, !6, i64 144}


; 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] }

@gIScsiV4PrivateGuid = external dso_local global %struct.GUID, align 4
@gIScsiV6PrivateGuid = external dso_local global %struct.GUID, align 4
@gEfiTcp4ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gEfiTcp6ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gBS = external local_unnamed_addr global ptr, align 8
@gEfiTcp4ProtocolGuid = external global %struct.GUID, align 4
@gEfiTcp6ProtocolGuid = external global %struct.GUID, align 4
@gEfiExtScsiPassThruProtocolGuid = external global %struct.GUID, align 4
@.str.1 = external hidden unnamed_addr constant [135 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1

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

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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

declare void @IScsiSessionAbort(ptr noundef) local_unnamed_addr #1

declare i64 @IScsiRemoveNic(ptr noundef) local_unnamed_addr #1

declare void @IScsiCleanDriverData(ptr noundef) local_unnamed_addr #1

declare void @IScsiPublishIbft() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775801, 1) i64 @IScsiStop(ptr nocapture noundef readonly %0, ptr noundef %1, i64 noundef %2, ptr nocapture noundef readonly %3, i8 noundef zeroext %4) local_unnamed_addr #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %.not = icmp eq i64 %2, 0
  br i1 %.not, label %50, label %8

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

17:                                               ; preds = %8
  %18 = call zeroext i8 @DebugAssertEnabled() #3
  %.not58 = icmp eq i8 %18, 0
  %.pre = load ptr, ptr %7, align 8, !tbaa !5
  %.pre68 = ptrtoint ptr %.pre to i64
  %.pre70 = add i64 %.pre68, -40
  %.pre72 = inttoptr i64 %.pre70 to ptr
  br i1 %.not58, label %._crit_edge, label %19

19:                                               ; preds = %17
  %20 = load i32, ptr %.pre72, align 8, !tbaa !16
  %.not59 = icmp eq i32 %20, 1094996809
  br i1 %.not59, label %._crit_edge, label %21

21:                                               ; preds = %19
  call void @DebugAssert(ptr noundef nonnull @.str.1, i64 noundef 851, ptr noundef nonnull @.str.3) #3
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %17, %19, %21
  %23 = phi ptr [ %22, %21 ], [ %.pre72, %19 ], [ %.pre72, %17 ]
  %24 = getelementptr inbounds i8, ptr %23, i64 144
  %25 = load ptr, ptr %24, align 8, !tbaa !21
  %26 = getelementptr inbounds i8, ptr %25, i64 2152
  %27 = load ptr, ptr %26, align 8, !tbaa !22
  %28 = ptrtoint ptr %27 to i64
  %29 = add i64 %28, -8
  %30 = inttoptr i64 %29 to ptr
  %31 = icmp eq i8 %4, 4
  %gEfiTcp4ProtocolGuid.gEfiTcp6ProtocolGuid = select i1 %31, ptr @gEfiTcp4ProtocolGuid, ptr @gEfiTcp6ProtocolGuid
  %32 = load ptr, ptr @gBS, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 288
  %34 = load ptr, ptr %33, align 8, !tbaa !26
  %35 = getelementptr inbounds i8, ptr %23, i64 136
  %36 = load ptr, ptr %35, align 8, !tbaa !27
  %37 = getelementptr inbounds i8, ptr %23, i64 8
  %38 = load ptr, ptr %37, align 8, !tbaa !28
  %39 = getelementptr inbounds i8, ptr %23, i64 120
  %40 = load ptr, ptr %39, align 8, !tbaa !29
  %41 = call i64 %34(ptr noundef %36, ptr noundef nonnull %gEfiTcp4ProtocolGuid.gEfiTcp6ProtocolGuid, ptr noundef %38, ptr noundef %40) #3
  %42 = load ptr, ptr @gBS, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 288
  %44 = load ptr, ptr %43, align 8, !tbaa !26
  %45 = getelementptr inbounds i8, ptr %30, i64 144
  %46 = load ptr, ptr %45, align 8, !tbaa !30
  %47 = load ptr, ptr %37, align 8, !tbaa !28
  %48 = load ptr, ptr %39, align 8, !tbaa !29
  %49 = call i64 %44(ptr noundef %46, ptr noundef nonnull %gEfiTcp4ProtocolGuid.gEfiTcp6ProtocolGuid, ptr noundef %47, ptr noundef %48) #3
  br label %105

50:                                               ; preds = %5
  %51 = icmp eq i8 %4, 4
  %gIScsiV4PrivateGuid.gIScsiV6PrivateGuid = select i1 %51, ptr @gIScsiV4PrivateGuid, ptr @gIScsiV6PrivateGuid
  %gEfiTcp4ServiceBindingProtocolGuid.gEfiTcp6ServiceBindingProtocolGuid = select i1 %51, ptr @gEfiTcp4ServiceBindingProtocolGuid, ptr @gEfiTcp6ServiceBindingProtocolGuid
  %gEfiTcp4ProtocolGuid.gEfiTcp6ProtocolGuid60 = select i1 %51, ptr @gEfiTcp4ProtocolGuid, ptr @gEfiTcp6ProtocolGuid
  %52 = tail call ptr @NetLibGetNicHandle(ptr noundef %1, ptr noundef nonnull %gEfiTcp4ProtocolGuid.gEfiTcp6ProtocolGuid60) #3
  %53 = icmp eq ptr %52, null
  br i1 %53, label %105, label %54

54:                                               ; preds = %50
  %55 = load ptr, ptr @gBS, align 8, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %55, i64 280
  %57 = load ptr, ptr %56, align 8, !tbaa !9
  %58 = getelementptr inbounds i8, ptr %0, i64 40
  %59 = load ptr, ptr %58, align 8, !tbaa !14
  %60 = call i64 %57(ptr noundef nonnull %52, ptr noundef nonnull %gIScsiV4PrivateGuid.gIScsiV6PrivateGuid, ptr noundef nonnull %6, ptr noundef %59, ptr noundef %1, i32 noundef 2) #3
  %61 = icmp slt i64 %60, 0
  br i1 %61, label %105, label %62

62:                                               ; preds = %54
  %63 = call zeroext i8 @DebugAssertEnabled() #3
  %.not54 = icmp eq i8 %63, 0
  %.pre61 = load ptr, ptr %6, align 8, !tbaa !5
  %.pre63 = ptrtoint ptr %.pre61 to i64
  %.pre64 = add i64 %.pre63, -24
  %.pre66 = inttoptr i64 %.pre64 to ptr
  br i1 %.not54, label %._crit_edge62, label %64

64:                                               ; preds = %62
  %65 = load i32, ptr %.pre66, align 8, !tbaa !16
  %.not55 = icmp eq i32 %65, 1094996809
  br i1 %.not55, label %._crit_edge62, label %66

66:                                               ; preds = %64
  call void @DebugAssert(ptr noundef nonnull @.str.1, i64 noundef 911, ptr noundef nonnull @.str.3) #3
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  br label %._crit_edge62

._crit_edge62:                                    ; preds = %62, %64, %66
  %68 = phi ptr [ %67, %66 ], [ %.pre66, %64 ], [ %.pre66, %62 ]
  %69 = call zeroext i8 @DebugAssertEnabled() #3
  %70 = icmp eq i8 %69, 0
  %71 = icmp ne ptr %68, null
  %or.cond = select i1 %70, i1 true, i1 %71
  br i1 %or.cond, label %73, label %72

72:                                               ; preds = %._crit_edge62
  call void @DebugAssert(ptr noundef nonnull @.str.1, i64 noundef 912, ptr noundef nonnull @.str.6) #3
  br label %73

73:                                               ; preds = %72, %._crit_edge62
  %74 = getelementptr inbounds i8, ptr %68, i64 136
  %75 = load ptr, ptr %74, align 8, !tbaa !27
  %.not56 = icmp eq ptr %75, null
  br i1 %.not56, label %94, label %76

76:                                               ; preds = %73
  %77 = load ptr, ptr @gBS, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 288
  %79 = load ptr, ptr %78, align 8, !tbaa !26
  %80 = load ptr, ptr %58, align 8, !tbaa !14
  %81 = call i64 %79(ptr noundef nonnull %75, ptr noundef nonnull %gEfiTcp4ProtocolGuid.gEfiTcp6ProtocolGuid60, ptr noundef %80, ptr noundef nonnull %52) #3
  %82 = call zeroext i8 @DebugAssertEnabled() #3
  %83 = icmp ne i8 %82, 0
  %84 = icmp slt i64 %81, 0
  %or.cond3 = select i1 %83, i1 %84, i1 false
  br i1 %or.cond3, label %85, label %86

85:                                               ; preds = %76
  call void @DebugAssert(ptr noundef nonnull @.str.1, i64 noundef 922, ptr noundef nonnull @.str.7) #3
  br label %86

86:                                               ; preds = %85, %76
  %87 = load ptr, ptr %58, align 8, !tbaa !14
  %88 = load ptr, ptr %74, align 8, !tbaa !27
  %89 = call i64 @NetLibDestroyServiceChild(ptr noundef nonnull %52, ptr noundef %87, ptr noundef nonnull %gEfiTcp4ServiceBindingProtocolGuid.gEfiTcp6ServiceBindingProtocolGuid, ptr noundef %88) #3
  %90 = call zeroext i8 @DebugAssertEnabled() #3
  %91 = icmp ne i8 %90, 0
  %92 = icmp slt i64 %89, 0
  %or.cond5 = select i1 %91, i1 %92, i1 false
  br i1 %or.cond5, label %93, label %94

93:                                               ; preds = %86
  call void @DebugAssert(ptr noundef nonnull @.str.1, i64 noundef 931, ptr noundef nonnull @.str.7) #3
  br label %94

94:                                               ; preds = %86, %93, %73
  %95 = load ptr, ptr @gBS, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 144
  %97 = load ptr, ptr %96, align 8, !tbaa !34
  %98 = getelementptr inbounds i8, ptr %68, i64 24
  %99 = call i64 %97(ptr noundef nonnull %52, ptr noundef nonnull %gIScsiV4PrivateGuid.gIScsiV6PrivateGuid, ptr noundef nonnull %98) #3
  %100 = call i64 @IScsiRemoveNic(ptr noundef nonnull %52) #3
  call void @IScsiPublishIbft() #3
  %101 = getelementptr inbounds i8, ptr %68, i64 144
  %102 = load ptr, ptr %101, align 8, !tbaa !21
  %.not57 = icmp eq ptr %102, null
  br i1 %.not57, label %104, label %103

103:                                              ; preds = %94
  call void @IScsiSessionAbort(ptr noundef nonnull %102) #3
  br label %104

104:                                              ; preds = %103, %94
  call void @IScsiCleanDriverData(ptr noundef nonnull %68) #3
  br label %105

105:                                              ; preds = %54, %50, %8, %104, %._crit_edge
  %.050 = phi i64 [ 0, %._crit_edge ], [ 0, %104 ], [ -9223372036854775801, %8 ], [ 0, %50 ], [ -9223372036854775801, %54 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  ret i64 %.050
}

declare ptr @NetLibGetNicHandle(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!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 = !{!"_ISCSI_DRIVER_DATA", !13, i64 0, !6, i64 8, !6, i64 16, !18, i64 24, !6, i64 32, !19, i64 40, !20, i64 104, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144}
!18 = !{!"_ISCSI_PRIVATE_PROTOCOL", !13, i64 0}
!19 = !{!"_EFI_EXT_SCSI_PASS_THRU_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!20 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8}
!21 = !{!17, !6, i64 144}
!22 = !{!23, !6, i64 2152}
!23 = !{!"_ISCSI_SESSION", !13, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !7, i64 32, !7, i64 2120, !7, i64 2121, !24, i64 2128, !13, i64 2132, !13, i64 2136, !13, i64 2140, !13, i64 2144, !24, i64 2148, !25, i64 2152, !13, i64 2168, !25, i64 2176, !24, i64 2192, !13, i64 2196, !7, i64 2200, !7, i64 2201, !13, i64 2204, !13, i64 2208, !13, i64 2212, !13, i64 2216, !24, i64 2220, !7, i64 2222, !7, i64 2223, !7, i64 2224}
!24 = !{!"short", !7, i64 0}
!25 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!26 = !{!10, !6, i64 288}
!27 = !{!17, !6, i64 136}
!28 = !{!17, !6, i64 8}
!29 = !{!17, !6, i64 120}
!30 = !{!31, !6, i64 144}
!31 = !{!"_ISCSI_CONNECTION", !13, i64 0, !25, i64 8, !6, i64 24, !6, i64 32, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44, !7, i64 45, !7, i64 46, !7, i64 47, !24, i64 48, !13, i64 52, !32, i64 56, !7, i64 112, !33, i64 120, !13, i64 288, !13, i64 292, !13, i64 296}
!32 = !{!"", !13, i64 0, !12, i64 8, !25, i64 16, !25, i64 32, !13, i64 48, !13, i64 52}
!33 = !{!"", !7, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 64, !7, i64 88, !7, i64 112, !7, i64 136, !7, i64 160, !7, i64 161, !7, i64 162, !7, i64 163, !7, i64 164}
!34 = !{!10, !6, i64 144}


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