; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal (SimpleNetworkDriverSupported)

; 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._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL = type { i64, i64, i64, i32, [4 x i8], i8, i8, i8, i8, i16 }
%struct.s_pxe_hw_undi = type { i32, i8, i8, i8, i8, i8, i8, i8, i8, i32 }
%struct.s_pxe_sw_undi = type { i32, i8, i8, i8, i8, i8, i8, i8, i8, i32, i64, [3 x i8], i8, [1 x i32] }

@gBS = external global ptr, align 8
@gEfiDevicePathProtocolGuid = external global %struct.GUID, align 4
@gEfiNetworkInterfaceIdentifierProtocolGuid_31 = external global %struct.GUID, align 4
@.str.1 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [28 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 @DebugPrintEnabled() #1

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i64 @SimpleNetworkDriverSupported(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %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 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
  %12 = load ptr, ptr @gBS, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %12, i32 0, i32 33
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %16, i32 0, i32 5
  %18 = load ptr, ptr %17, align 8, !tbaa !14
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call i64 %14(ptr noundef %15, ptr noundef @gEfiDevicePathProtocolGuid, ptr noundef null, ptr noundef %18, ptr noundef %19, i32 noundef 4)
  store i64 %20, ptr %8, align 8, !tbaa !16
  %21 = load i64, ptr %8, align 8, !tbaa !16
  %22 = icmp slt i64 %21, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %3
  %24 = load i64, ptr %8, align 8, !tbaa !16
  store i64 %24, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %274

25:                                               ; preds = %3
  %26 = load ptr, ptr @gBS, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %26, i32 0, i32 33
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %30, i32 0, i32 5
  %32 = load ptr, ptr %31, align 8, !tbaa !14
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = call i64 %28(ptr noundef %29, ptr noundef @gEfiNetworkInterfaceIdentifierProtocolGuid_31, ptr noundef %9, ptr noundef %32, ptr noundef %33, i32 noundef 16)
  store i64 %34, ptr %8, align 8, !tbaa !16
  %35 = load i64, ptr %8, align 8, !tbaa !16
  %36 = icmp slt i64 %35, 0
  br i1 %36, label %37, label %58

37:                                               ; preds = %25
  %38 = load i64, ptr %8, align 8, !tbaa !16
  %39 = icmp eq i64 %38, -9223372036854775788
  br i1 %39, label %40, label %56

40:                                               ; preds = %37
  br label %41

41:                                               ; preds = %40
  %42 = call zeroext i8 @DebugPrintEnabled()
  %43 = icmp ne i8 %42, 0
  br i1 %43, label %44, label %53

44:                                               ; preds = %41
  br label %45

45:                                               ; preds = %44
  %46 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %47 = icmp ne i8 %46, 0
  br i1 %47, label %48, label %50

48:                                               ; preds = %45
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str.1, ptr noundef %49)
  br label %50

50:                                               ; preds = %48, %45
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52, %41
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55, %37
  %57 = load i64, ptr %8, align 8, !tbaa !16
  store i64 %57, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %274

58:                                               ; preds = %25
  br label %59

59:                                               ; preds = %58
  %60 = call zeroext i8 @DebugPrintEnabled()
  %61 = icmp ne i8 %60, 0
  br i1 %61, label %62, label %71

62:                                               ; preds = %59
  br label %63

63:                                               ; preds = %62
  %64 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %65 = icmp ne i8 %64, 0
  br i1 %65, label %66, label %68

66:                                               ; preds = %63
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str.2, ptr noundef %67)
  br label %68

68:                                               ; preds = %66, %63
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70, %59
  br label %72

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %74, i32 0, i32 5
  %76 = load i8, ptr %75, align 8, !tbaa !17
  %77 = zext i8 %76 to i32
  %78 = icmp ne i32 %77, 1
  br i1 %78, label %79, label %80

79:                                               ; preds = %73
  store i64 -9223372036854775805, ptr %8, align 8, !tbaa !16
  br label %263

80:                                               ; preds = %73
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %81, i32 0, i32 1
  %83 = load i64, ptr %82, align 8, !tbaa !20
  %84 = and i64 %83, 15
  %85 = icmp ne i64 %84, 0
  br i1 %85, label %86, label %101

86:                                               ; preds = %80
  br label %87

87:                                               ; preds = %86
  %88 = call zeroext i8 @DebugPrintEnabled()
  %89 = icmp ne i8 %88, 0
  br i1 %89, label %90, label %98

90:                                               ; preds = %87
  br label %91

91:                                               ; preds = %90
  %92 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384)
  %93 = icmp ne i8 %92, 0
  br i1 %93, label %94, label %95

94:                                               ; preds = %91
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef @.str.3)
  br label %95

95:                                               ; preds = %94, %91
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97, %87
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  store i64 -9223372036854775805, ptr %8, align 8, !tbaa !16
  br label %263

101:                                              ; preds = %80
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct._EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL, ptr %102, i32 0, i32 1
  %104 = load i64, ptr %103, align 8, !tbaa !20
  %105 = inttoptr i64 %104 to ptr
  store ptr %105, ptr %10, align 8, !tbaa !5
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.s_pxe_hw_undi, ptr %106, i32 0, i32 0
  %108 = load i32, ptr %107, align 1, !tbaa !21
  %109 = icmp ne i32 %108, 1163415585
  br i1 %109, label %110, label %125

110:                                              ; preds = %101
  br label %111

111:                                              ; preds = %110
  %112 = call zeroext i8 @DebugPrintEnabled()
  %113 = icmp ne i8 %112, 0
  br i1 %113, label %114, label %122

114:                                              ; preds = %111
  br label %115

115:                                              ; preds = %114
  %116 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384)
  %117 = icmp ne i8 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %115
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef @.str.4)
  br label %119

119:                                              ; preds = %118, %115
  br label %120

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121, %111
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  store i64 -9223372036854775805, ptr %8, align 8, !tbaa !16
  br label %263

125:                                              ; preds = %101
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.s_pxe_hw_undi, ptr %126, i32 0, i32 3
  %128 = load i8, ptr %127, align 1, !tbaa !21
  %129 = zext i8 %128 to i32
  %130 = icmp slt i32 %129, 2
  br i1 %130, label %131, label %146

131:                                              ; preds = %125
  br label %132

132:                                              ; preds = %131
  %133 = call zeroext i8 @DebugPrintEnabled()
  %134 = icmp ne i8 %133, 0
  br i1 %134, label %135, label %143

135:                                              ; preds = %132
  br label %136

136:                                              ; preds = %135
  %137 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384)
  %138 = icmp ne i8 %137, 0
  br i1 %138, label %139, label %140

139:                                              ; preds = %136
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef @.str.5)
  br label %140

140:                                              ; preds = %139, %136
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142, %132
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  store i64 -9223372036854775805, ptr %8, align 8, !tbaa !16
  br label %263

146:                                              ; preds = %125
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.s_pxe_hw_undi, ptr %147, i32 0, i32 5
  %149 = load i8, ptr %148, align 1, !tbaa !21
  %150 = zext i8 %149 to i32
  %151 = icmp slt i32 %150, 3
  br i1 %151, label %152, label %167

152:                                              ; preds = %146
  br label %153

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

156:                                              ; preds = %153
  br label %157

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

160:                                              ; preds = %157
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef @.str.6)
  br label %161

161:                                              ; preds = %160, %157
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163, %153
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  store i64 -9223372036854775805, ptr %8, align 8, !tbaa !16
  br label %263

167:                                              ; preds = %146
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.s_pxe_hw_undi, ptr %168, i32 0, i32 5
  %170 = load i8, ptr %169, align 1, !tbaa !21
  %171 = zext i8 %170 to i32
  %172 = icmp eq i32 %171, 3
  br i1 %172, label %173, label %194

173:                                              ; preds = %167
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.s_pxe_hw_undi, ptr %174, i32 0, i32 6
  %176 = load i8, ptr %175, align 1, !tbaa !21
  %177 = zext i8 %176 to i32
  %178 = icmp slt i32 %177, 1
  br i1 %178, label %179, label %194

179:                                              ; preds = %173
  br label %180

180:                                              ; preds = %179
  %181 = call zeroext i8 @DebugPrintEnabled()
  %182 = icmp ne i8 %181, 0
  br i1 %182, label %183, label %191

183:                                              ; preds = %180
  br label %184

184:                                              ; preds = %183
  %185 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384)
  %186 = icmp ne i8 %185, 0
  br i1 %186, label %187, label %188

187:                                              ; preds = %184
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef @.str.7)
  br label %188

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

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  br label %191

191:                                              ; preds = %190, %180
  br label %192

192:                                              ; preds = %191
  br label %193

193:                                              ; preds = %192
  store i64 -9223372036854775805, ptr %8, align 8, !tbaa !16
  br label %263

194:                                              ; preds = %173, %167
  br label %195

195:                                              ; preds = %194
  %196 = load ptr, ptr %10, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.s_pxe_hw_undi, ptr %196, i32 0, i32 9
  %198 = load i32, ptr %197, align 1, !tbaa !21
  %199 = and i32 %198, -2147483648
  %200 = icmp eq i32 %199, 0
  br i1 %200, label %201, label %247

201:                                              ; preds = %195
  %202 = load ptr, ptr %10, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.s_pxe_sw_undi, ptr %202, i32 0, i32 10
  %204 = load i64, ptr %203, align 1, !tbaa !21
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.s_pxe_sw_undi, ptr %205, i32 0, i32 1
  %207 = load i8, ptr %206, align 1, !tbaa !21
  %208 = zext i8 %207 to i64
  %209 = icmp ult i64 %204, %208
  br i1 %209, label %210, label %225

210:                                              ; preds = %201
  br label %211

211:                                              ; preds = %210
  %212 = call zeroext i8 @DebugPrintEnabled()
  %213 = icmp ne i8 %212, 0
  br i1 %213, label %214, label %222

214:                                              ; preds = %211
  br label %215

215:                                              ; preds = %214
  %216 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384)
  %217 = icmp ne i8 %216, 0
  br i1 %217, label %218, label %219

218:                                              ; preds = %215
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef @.str.8)
  br label %219

219:                                              ; preds = %218, %215
  br label %220

220:                                              ; preds = %219
  br label %221

221:                                              ; preds = %220
  br label %222

222:                                              ; preds = %221, %211
  br label %223

223:                                              ; preds = %222
  br label %224

224:                                              ; preds = %223
  store i64 -9223372036854775805, ptr %8, align 8, !tbaa !16
  br label %263

225:                                              ; preds = %201
  %226 = load ptr, ptr %10, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.s_pxe_sw_undi, ptr %226, i32 0, i32 12
  %228 = load i8, ptr %227, align 1, !tbaa !21
  %229 = zext i8 %228 to i32
  %230 = icmp eq i32 %229, 0
  br i1 %230, label %231, label %246

231:                                              ; preds = %225
  br label %232

232:                                              ; preds = %231
  %233 = call zeroext i8 @DebugPrintEnabled()
  %234 = icmp ne i8 %233, 0
  br i1 %234, label %235, label %243

235:                                              ; preds = %232
  br label %236

236:                                              ; preds = %235
  %237 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384)
  %238 = icmp ne i8 %237, 0
  br i1 %238, label %239, label %240

239:                                              ; preds = %236
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef @.str.9)
  br label %240

240:                                              ; preds = %239, %236
  br label %241

241:                                              ; preds = %240
  br label %242

242:                                              ; preds = %241
  br label %243

243:                                              ; preds = %242, %232
  br label %244

244:                                              ; preds = %243
  br label %245

245:                                              ; preds = %244
  store i64 -9223372036854775805, ptr %8, align 8, !tbaa !16
  br label %263

246:                                              ; preds = %225
  br label %247

247:                                              ; preds = %246, %195
  store i64 0, ptr %8, align 8, !tbaa !16
  br label %248

248:                                              ; preds = %247
  %249 = call zeroext i8 @DebugPrintEnabled()
  %250 = icmp ne i8 %249, 0
  br i1 %250, label %251, label %260

251:                                              ; preds = %248
  br label %252

252:                                              ; preds = %251
  %253 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %254 = icmp ne i8 %253, 0
  br i1 %254, label %255, label %257

255:                                              ; preds = %252
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str.10, ptr noundef %256)
  br label %257

257:                                              ; preds = %255, %252
  br label %258

258:                                              ; preds = %257
  br label %259

259:                                              ; preds = %258
  br label %260

260:                                              ; preds = %259, %248
  br label %261

261:                                              ; preds = %260
  br label %262

262:                                              ; preds = %261
  br label %263

263:                                              ; preds = %262, %245, %224, %193, %166, %145, %124, %100, %79
  %264 = load ptr, ptr @gBS, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %264, i32 0, i32 34
  %266 = load ptr, ptr %265, align 8, !tbaa !22
  %267 = load ptr, ptr %6, align 8, !tbaa !5
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct._EFI_DRIVER_BINDING_PROTOCOL, ptr %268, i32 0, i32 5
  %270 = load ptr, ptr %269, align 8, !tbaa !14
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = call i64 %266(ptr noundef %267, ptr noundef @gEfiNetworkInterfaceIdentifierProtocolGuid_31, ptr noundef %270, ptr noundef %271)
  %273 = load i64, ptr %8, align 8, !tbaa !16
  store i64 %273, ptr %4, align 8
  store i32 1, ptr %11, align 4
  br label %274

274:                                              ; preds = %263, %56, %23
  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
  %275 = load i64, ptr %4, align 8
  ret i64 %275
}

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, !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 = !{!12, !12, i64 0}
!17 = !{!18, !7, i64 32}
!18 = !{!"_EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !7, i64 28, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !19, i64 36}
!19 = !{!"short", !7, i64 0}
!20 = !{!18, !12, i64 8}
!21 = !{!7, !7, i64 0}
!22 = !{!10, !6, i64 288}


; 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
@gEfiDevicePathProtocolGuid = external global %struct.GUID, align 4
@gEfiNetworkInterfaceIdentifierProtocolGuid_31 = external global %struct.GUID, align 4
@.str.1 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [28 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 @DebugPrintEnabled() local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775808, 1) i64 @SimpleNetworkDriverSupported(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef readnone %2) local_unnamed_addr #2 {
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %5 = load ptr, ptr @gBS, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 280
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = load ptr, ptr %8, align 8, !tbaa !14
  %10 = tail call i64 %7(ptr noundef %1, ptr noundef nonnull @gEfiDevicePathProtocolGuid, ptr noundef null, ptr noundef %9, ptr noundef %1, i32 noundef 4) #3
  %11 = icmp slt i64 %10, 0
  br i1 %11, label %117, label %12

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

19:                                               ; preds = %12
  %20 = icmp eq i64 %17, -9223372036854775788
  br i1 %20, label %21, label %117

21:                                               ; preds = %19
  %22 = call zeroext i8 @DebugPrintEnabled() #3
  %.not51 = icmp eq i8 %22, 0
  br i1 %.not51, label %117, label %23

23:                                               ; preds = %21
  %24 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #3
  %.not52 = icmp eq i8 %24, 0
  br i1 %.not52, label %117, label %25

25:                                               ; preds = %23
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str.1, ptr noundef %1) #3
  br label %117

26:                                               ; preds = %12
  %27 = call zeroext i8 @DebugPrintEnabled() #3
  %.not = icmp eq i8 %27, 0
  br i1 %.not, label %31, label %28

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

30:                                               ; preds = %28
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str.2, ptr noundef %1) #3
  br label %31

31:                                               ; preds = %28, %30, %26
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds i8, ptr %32, i64 32
  %34 = load i8, ptr %33, align 8, !tbaa !16
  %.not32 = icmp eq i8 %34, 1
  br i1 %.not32, label %35, label %111

35:                                               ; preds = %31
  %36 = getelementptr inbounds i8, ptr %32, i64 8
  %37 = load i64, ptr %36, align 8, !tbaa !19
  %38 = and i64 %37, 15
  %.not33 = icmp eq i64 %38, 0
  br i1 %.not33, label %44, label %39

39:                                               ; preds = %35
  %40 = call zeroext i8 @DebugPrintEnabled() #3
  %.not49 = icmp eq i8 %40, 0
  br i1 %.not49, label %111, label %41

41:                                               ; preds = %39
  %42 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384) #3
  %.not50 = icmp eq i8 %42, 0
  br i1 %.not50, label %111, label %43

43:                                               ; preds = %41
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef nonnull @.str.3) #3
  br label %111

44:                                               ; preds = %35
  %45 = inttoptr i64 %37 to ptr
  %46 = load i32, ptr %45, align 1, !tbaa !20
  %.not34 = icmp eq i32 %46, 1163415585
  br i1 %.not34, label %52, label %47

47:                                               ; preds = %44
  %48 = call zeroext i8 @DebugPrintEnabled() #3
  %.not47 = icmp eq i8 %48, 0
  br i1 %.not47, label %111, label %49

49:                                               ; preds = %47
  %50 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384) #3
  %.not48 = icmp eq i8 %50, 0
  br i1 %.not48, label %111, label %51

51:                                               ; preds = %49
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef nonnull @.str.4) #3
  br label %111

52:                                               ; preds = %44
  %53 = getelementptr inbounds i8, ptr %45, i64 6
  %54 = load i8, ptr %53, align 1, !tbaa !20
  %55 = icmp ult i8 %54, 2
  br i1 %55, label %56, label %61

56:                                               ; preds = %52
  %57 = call zeroext i8 @DebugPrintEnabled() #3
  %.not45 = icmp eq i8 %57, 0
  br i1 %.not45, label %111, label %58

58:                                               ; preds = %56
  %59 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384) #3
  %.not46 = icmp eq i8 %59, 0
  br i1 %.not46, label %111, label %60

60:                                               ; preds = %58
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef nonnull @.str.5) #3
  br label %111

61:                                               ; preds = %52
  %62 = getelementptr inbounds i8, ptr %45, i64 8
  %63 = load i8, ptr %62, align 1, !tbaa !20
  %64 = icmp ult i8 %63, 3
  br i1 %64, label %65, label %70

65:                                               ; preds = %61
  %66 = call zeroext i8 @DebugPrintEnabled() #3
  %.not43 = icmp eq i8 %66, 0
  br i1 %.not43, label %111, label %67

67:                                               ; preds = %65
  %68 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384) #3
  %.not44 = icmp eq i8 %68, 0
  br i1 %.not44, label %111, label %69

69:                                               ; preds = %67
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef nonnull @.str.6) #3
  br label %111

70:                                               ; preds = %61
  %71 = icmp eq i8 %63, 3
  br i1 %71, label %72, label %81

72:                                               ; preds = %70
  %73 = getelementptr inbounds i8, ptr %45, i64 9
  %74 = load i8, ptr %73, align 1, !tbaa !20
  %75 = icmp eq i8 %74, 0
  br i1 %75, label %76, label %81

76:                                               ; preds = %72
  %77 = call zeroext i8 @DebugPrintEnabled() #3
  %.not41 = icmp eq i8 %77, 0
  br i1 %.not41, label %111, label %78

78:                                               ; preds = %76
  %79 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384) #3
  %.not42 = icmp eq i8 %79, 0
  br i1 %.not42, label %111, label %80

80:                                               ; preds = %78
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef nonnull @.str.7) #3
  br label %111

81:                                               ; preds = %70, %72
  %82 = getelementptr inbounds i8, ptr %45, i64 12
  %83 = load i32, ptr %82, align 1, !tbaa !20
  %84 = icmp sgt i32 %83, -1
  br i1 %84, label %85, label %106

85:                                               ; preds = %81
  %86 = getelementptr inbounds i8, ptr %45, i64 16
  %87 = load i64, ptr %86, align 1, !tbaa !20
  %88 = getelementptr inbounds i8, ptr %45, i64 4
  %89 = load i8, ptr %88, align 1, !tbaa !20
  %90 = zext i8 %89 to i64
  %91 = icmp ult i64 %87, %90
  br i1 %91, label %92, label %97

92:                                               ; preds = %85
  %93 = call zeroext i8 @DebugPrintEnabled() #3
  %.not39 = icmp eq i8 %93, 0
  br i1 %.not39, label %111, label %94

94:                                               ; preds = %92
  %95 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 16384) #3
  %.not40 = icmp eq i8 %95, 0
  br i1 %.not40, label %111, label %96

96:                                               ; preds = %94
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef nonnull @.str.8) #3
  br label %111

97:                                               ; preds = %85
  %98 = getelementptr inbounds i8, ptr %45, i64 27
  %99 = load i8, ptr %98, align 1, !tbaa !20
  %100 = icmp eq i8 %99, 0
  br i1 %100, label %101, label %106

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

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

105:                                              ; preds = %103
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 16384, ptr noundef nonnull @.str.9) #3
  br label %111

106:                                              ; preds = %97, %81
  %107 = call zeroext i8 @DebugPrintEnabled() #3
  %.not35 = icmp eq i8 %107, 0
  br i1 %.not35, label %111, label %108

108:                                              ; preds = %106
  %109 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #3
  %.not36 = icmp eq i8 %109, 0
  br i1 %.not36, label %111, label %110

110:                                              ; preds = %108
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str.10, ptr noundef %1) #3
  br label %111

111:                                              ; preds = %101, %105, %103, %92, %96, %94, %76, %80, %78, %65, %69, %67, %56, %60, %58, %47, %51, %49, %39, %43, %41, %31, %106, %110, %108
  %.027 = phi i64 [ 0, %110 ], [ 0, %108 ], [ 0, %106 ], [ -9223372036854775805, %31 ], [ -9223372036854775805, %41 ], [ -9223372036854775805, %43 ], [ -9223372036854775805, %39 ], [ -9223372036854775805, %49 ], [ -9223372036854775805, %51 ], [ -9223372036854775805, %47 ], [ -9223372036854775805, %58 ], [ -9223372036854775805, %60 ], [ -9223372036854775805, %56 ], [ -9223372036854775805, %67 ], [ -9223372036854775805, %69 ], [ -9223372036854775805, %65 ], [ -9223372036854775805, %78 ], [ -9223372036854775805, %80 ], [ -9223372036854775805, %76 ], [ -9223372036854775805, %94 ], [ -9223372036854775805, %96 ], [ -9223372036854775805, %92 ], [ -9223372036854775805, %103 ], [ -9223372036854775805, %105 ], [ -9223372036854775805, %101 ]
  %112 = load ptr, ptr @gBS, align 8, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %112, i64 288
  %114 = load ptr, ptr %113, align 8, !tbaa !21
  %115 = load ptr, ptr %8, align 8, !tbaa !14
  %116 = call i64 %114(ptr noundef %1, ptr noundef nonnull @gEfiNetworkInterfaceIdentifierProtocolGuid_31, ptr noundef %115, ptr noundef %1) #3
  br label %117

117:                                              ; preds = %19, %23, %25, %21, %3, %111
  %.0 = phi i64 [ %.027, %111 ], [ %10, %3 ], [ -9223372036854775788, %21 ], [ -9223372036854775788, %25 ], [ -9223372036854775788, %23 ], [ %17, %19 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret i64 %.0
}

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, !7, i64 32}
!17 = !{!"_EFI_NETWORK_INTERFACE_IDENTIFIER_PROTOCOL", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !7, i64 28, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !18, i64 36}
!18 = !{!"short", !7, i64 0}
!19 = !{!17, !12, i64 8}
!20 = !{!7, !7, i64 0}
!21 = !{!10, !6, i64 288}


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