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

; 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_UDP6_CONFIG_DATA = type { i8, i8, i8, i8, i8, i32, i32, %struct.EFI_IPv6_ADDRESS, i16, %struct.EFI_IPv6_ADDRESS, i16 }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }
%struct.EFI_MTFTP6_CONFIG_DATA = type { %struct.EFI_IPv6_ADDRESS, i16, %struct.EFI_IPv6_ADDRESS, i16, i16, i16 }
%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._MTFTP6_INSTANCE = type { i32, ptr, %struct._LIST_ENTRY, %struct._EFI_MTFTP6_PROTOCOL, ptr, ptr, ptr, %struct.MTFTP6_EXT_OPTION_INFO, i16, i16, %struct._LIST_ENTRY, %struct.EFI_IPv6_ADDRESS, i16, i16, ptr, %struct.EFI_IPv6_ADDRESS, i16, ptr, ptr, i32, i32, i32, i32, i64, i8, i8, i8 }
%struct._EFI_MTFTP6_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.MTFTP6_EXT_OPTION_INFO = type { i16, i8, i32, %struct.EFI_IPv6_ADDRESS, i16, i8, i32 }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct._MTFTP6_SERVICE = type { i32, %struct._EFI_SERVICE_BINDING_PROTOCOL, ptr, ptr, i16, %struct._LIST_ENTRY, ptr, ptr }
%struct._EFI_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%struct._UDP_IO = type { i32, %struct._LIST_ENTRY, i64, i8, ptr, ptr, ptr, %struct.EFI_SIMPLE_NETWORK_MODE, %struct._LIST_ENTRY, ptr, %union.anon, %union.anon.0 }
%struct.EFI_SIMPLE_NETWORK_MODE = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [16 x %struct.EFI_MAC_ADDRESS], %struct.EFI_MAC_ADDRESS, %struct.EFI_MAC_ADDRESS, %struct.EFI_MAC_ADDRESS, i8, i8, i8, i8, i8 }
%struct.EFI_MAC_ADDRESS = type { [32 x i8] }
%union.anon = type { ptr }
%union.anon.0 = type { %struct.EFI_UDP6_CONFIG_DATA }
%struct._EFI_UDP6_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@gBS = external global ptr, align 8
@.str = external hidden unnamed_addr constant [135 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@gEfiUdp6ProtocolGuid = external global %struct.GUID, align 4

; Function Attrs: nounwind uwtable
define dso_local i64 @EfiMtftp6Configure(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.EFI_UDP6_CONFIG_DATA, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 52, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %2
  store i64 -9223372036854775806, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %209

16:                                               ; preds = %2
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %25

19:                                               ; preds = %16
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.EFI_MTFTP6_CONFIG_DATA, ptr %20, i32 0, i32 2
  %22 = call zeroext i8 @NetIp6IsValidUnicast(ptr noundef %21)
  %23 = icmp ne i8 %22, 0
  br i1 %23, label %25, label %24

24:                                               ; preds = %19
  store i64 -9223372036854775806, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %209

25:                                               ; preds = %19, %16
  %26 = load ptr, ptr @gBS, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %26, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = call i64 %28(i64 noundef 8)
  store i64 %29, ptr %11, align 8, !tbaa !14
  %30 = call zeroext i8 @DebugAssertEnabled()
  %31 = zext i8 %30 to i32
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %43

33:                                               ; preds = %25
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = ptrtoint ptr %34 to i64
  %36 = sub i64 %35, ptrtoint (ptr getelementptr inbounds (%struct._MTFTP6_INSTANCE, ptr null, i32 0, i32 3) to i64)
  %37 = inttoptr i64 %36 to ptr
  %38 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !15
  %40 = icmp ne i32 %39, 1228293709
  br i1 %40, label %41, label %43

41:                                               ; preds = %33
  call void @DebugAssert(ptr noundef @.str, i64 noundef 157, ptr noundef @.str.1)
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  br label %48

43:                                               ; preds = %33, %25
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = ptrtoint ptr %44 to i64
  %46 = sub i64 %45, ptrtoint (ptr getelementptr inbounds (%struct._MTFTP6_INSTANCE, ptr null, i32 0, i32 3) to i64)
  %47 = inttoptr i64 %46 to ptr
  br label %48

48:                                               ; preds = %43, %41
  %49 = phi ptr [ %42, %41 ], [ %47, %43 ]
  store ptr %49, ptr %7, align 8, !tbaa !5
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %50, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !22
  store ptr %52, ptr %6, align 8, !tbaa !5
  store i64 0, ptr %10, align 8, !tbaa !14
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = icmp eq ptr %53, null
  br i1 %54, label %55, label %62

55:                                               ; preds = %48
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  call void @Mtftp6OperationClean(ptr noundef %56, i64 noundef -9223372036854775787)
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %57, i32 0, i32 5
  %59 = load ptr, ptr %58, align 8, !tbaa !23
  call void @FreePool(ptr noundef %59)
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %60, i32 0, i32 5
  store ptr null, ptr %61, align 8, !tbaa !23
  br label %175

62:                                               ; preds = %48
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %63, i32 0, i32 5
  %65 = load ptr, ptr %64, align 8, !tbaa !23
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %68

67:                                               ; preds = %62
  store i64 -9223372036854775793, ptr %10, align 8, !tbaa !14
  br label %176

68:                                               ; preds = %62
  %69 = call ptr @AllocateZeroPool(i64 noundef 40)
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %70, i32 0, i32 5
  store ptr %69, ptr %71, align 8, !tbaa !23
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %72, i32 0, i32 5
  %74 = load ptr, ptr %73, align 8, !tbaa !23
  %75 = icmp eq ptr %74, null
  br i1 %75, label %76, label %77

76:                                               ; preds = %68
  store i64 -9223372036854775799, ptr %10, align 8, !tbaa !14
  br label %176

77:                                               ; preds = %68
  %78 = load ptr, ptr %7, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %78, i32 0, i32 5
  %80 = load ptr, ptr %79, align 8, !tbaa !23
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = call ptr @CopyMem(ptr noundef %80, ptr noundef %81, i64 noundef 40)
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %83, i32 0, i32 14
  %85 = load ptr, ptr %84, align 8, !tbaa !24
  %86 = icmp eq ptr %85, null
  br i1 %86, label %87, label %122

87:                                               ; preds = %77
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._MTFTP6_SERVICE, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !25
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._MTFTP6_SERVICE, ptr %91, i32 0, i32 3
  %93 = load ptr, ptr %92, align 8, !tbaa !28
  %94 = call ptr @UdpIoCreateIo(ptr noundef %90, ptr noundef %93, ptr noundef @Mtftp6ConfigDummyUdpIo, i8 noundef zeroext 6, ptr noundef null)
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %95, i32 0, i32 14
  store ptr %94, ptr %96, align 8, !tbaa !24
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %97, i32 0, i32 14
  %99 = load ptr, ptr %98, align 8, !tbaa !24
  %100 = icmp ne ptr %99, null
  br i1 %100, label %101, label %121

101:                                              ; preds = %87
  %102 = load ptr, ptr @gBS, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %102, i32 0, i32 33
  %104 = load ptr, ptr %103, align 8, !tbaa !29
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %105, i32 0, i32 14
  %107 = load ptr, ptr %106, align 8, !tbaa !24
  %108 = getelementptr inbounds %struct._UDP_IO, ptr %107, i32 0, i32 6
  %109 = load ptr, ptr %108, align 8, !tbaa !30
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct._MTFTP6_SERVICE, ptr %110, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !28
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %113, i32 0, i32 1
  %115 = load ptr, ptr %114, align 8, !tbaa !33
  %116 = call i64 %104(ptr noundef %109, ptr noundef @gEfiUdp6ProtocolGuid, ptr noundef %8, ptr noundef %112, ptr noundef %115, i32 noundef 8)
  store i64 %116, ptr %10, align 8, !tbaa !14
  %117 = load i64, ptr %10, align 8, !tbaa !14
  %118 = icmp slt i64 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %101
  br label %176

120:                                              ; preds = %101
  br label %121

121:                                              ; preds = %120, %87
  br label %122

122:                                              ; preds = %121, %77
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %123, i32 0, i32 14
  %125 = load ptr, ptr %124, align 8, !tbaa !24
  %126 = icmp eq ptr %125, null
  br i1 %126, label %127, label %128

127:                                              ; preds = %122
  store i64 -9223372036854775799, ptr %10, align 8, !tbaa !14
  br label %176

128:                                              ; preds = %122
  %129 = call ptr @ZeroMem(ptr noundef %9, i64 noundef 52)
  %130 = getelementptr inbounds %struct.EFI_UDP6_CONFIG_DATA, ptr %9, i32 0, i32 0
  store i8 0, ptr %130, align 4, !tbaa !34
  %131 = getelementptr inbounds %struct.EFI_UDP6_CONFIG_DATA, ptr %9, i32 0, i32 1
  store i8 0, ptr %131, align 1, !tbaa !36
  %132 = getelementptr inbounds %struct.EFI_UDP6_CONFIG_DATA, ptr %9, i32 0, i32 2
  store i8 0, ptr %132, align 2, !tbaa !37
  %133 = getelementptr inbounds %struct.EFI_UDP6_CONFIG_DATA, ptr %9, i32 0, i32 3
  store i8 0, ptr %133, align 1, !tbaa !38
  %134 = getelementptr inbounds %struct.EFI_UDP6_CONFIG_DATA, ptr %9, i32 0, i32 4
  store i8 -128, ptr %134, align 4, !tbaa !39
  %135 = getelementptr inbounds %struct.EFI_UDP6_CONFIG_DATA, ptr %9, i32 0, i32 5
  store i32 0, ptr %135, align 4, !tbaa !40
  %136 = getelementptr inbounds %struct.EFI_UDP6_CONFIG_DATA, ptr %9, i32 0, i32 6
  store i32 0, ptr %136, align 4, !tbaa !41
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %137, i32 0, i32 5
  %139 = load ptr, ptr %138, align 8, !tbaa !23
  %140 = getelementptr inbounds %struct.EFI_MTFTP6_CONFIG_DATA, ptr %139, i32 0, i32 1
  %141 = load i16, ptr %140, align 2, !tbaa !42
  %142 = getelementptr inbounds %struct.EFI_UDP6_CONFIG_DATA, ptr %9, i32 0, i32 8
  store i16 %141, ptr %142, align 4, !tbaa !44
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %143, i32 0, i32 5
  %145 = load ptr, ptr %144, align 8, !tbaa !23
  %146 = getelementptr inbounds %struct.EFI_MTFTP6_CONFIG_DATA, ptr %145, i32 0, i32 3
  %147 = load i16, ptr %146, align 2, !tbaa !45
  %148 = getelementptr inbounds %struct.EFI_UDP6_CONFIG_DATA, ptr %9, i32 0, i32 10
  store i16 %147, ptr %148, align 2, !tbaa !46
  %149 = getelementptr inbounds %struct.EFI_UDP6_CONFIG_DATA, ptr %9, i32 0, i32 7
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %150, i32 0, i32 5
  %152 = load ptr, ptr %151, align 8, !tbaa !23
  %153 = getelementptr inbounds %struct.EFI_MTFTP6_CONFIG_DATA, ptr %152, i32 0, i32 0
  %154 = call ptr @CopyMem(ptr noundef %149, ptr noundef %153, i64 noundef 16)
  %155 = getelementptr inbounds %struct.EFI_UDP6_CONFIG_DATA, ptr %9, i32 0, i32 9
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %156, i32 0, i32 5
  %158 = load ptr, ptr %157, align 8, !tbaa !23
  %159 = getelementptr inbounds %struct.EFI_MTFTP6_CONFIG_DATA, ptr %158, i32 0, i32 2
  %160 = call ptr @CopyMem(ptr noundef %155, ptr noundef %159, i64 noundef 16)
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %161, i32 0, i32 14
  %163 = load ptr, ptr %162, align 8, !tbaa !24
  %164 = getelementptr inbounds %struct._UDP_IO, ptr %163, i32 0, i32 10
  %165 = load ptr, ptr %164, align 8, !tbaa !47
  store ptr %165, ptr %8, align 8, !tbaa !5
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct._EFI_UDP6_PROTOCOL, ptr %166, i32 0, i32 1
  %168 = load ptr, ptr %167, align 8, !tbaa !48
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = call i64 %168(ptr noundef %169, ptr noundef %9)
  store i64 %170, ptr %10, align 8, !tbaa !14
  %171 = load i64, ptr %10, align 8, !tbaa !14
  %172 = icmp slt i64 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %128
  br label %176

174:                                              ; preds = %128
  br label %175

175:                                              ; preds = %174, %55
  br label %176

176:                                              ; preds = %175, %173, %127, %119, %76, %67
  %177 = load i64, ptr %10, align 8, !tbaa !14
  %178 = icmp slt i64 %177, 0
  br i1 %178, label %179, label %203

179:                                              ; preds = %176
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %180, i32 0, i32 5
  %182 = load ptr, ptr %181, align 8, !tbaa !23
  %183 = icmp ne ptr %182, null
  br i1 %183, label %184, label %190

184:                                              ; preds = %179
  %185 = load ptr, ptr %7, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %185, i32 0, i32 5
  %187 = load ptr, ptr %186, align 8, !tbaa !23
  call void @FreePool(ptr noundef %187)
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %188, i32 0, i32 5
  store ptr null, ptr %189, align 8, !tbaa !23
  br label %190

190:                                              ; preds = %184, %179
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %191, i32 0, i32 14
  %193 = load ptr, ptr %192, align 8, !tbaa !24
  %194 = icmp ne ptr %193, null
  br i1 %194, label %195, label %202

195:                                              ; preds = %190
  %196 = load ptr, ptr %7, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %196, i32 0, i32 14
  %198 = load ptr, ptr %197, align 8, !tbaa !24
  %199 = call i64 @UdpIoFreeIo(ptr noundef %198)
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct._MTFTP6_INSTANCE, ptr %200, i32 0, i32 14
  store ptr null, ptr %201, align 8, !tbaa !24
  br label %202

202:                                              ; preds = %195, %190
  br label %203

203:                                              ; preds = %202, %176
  %204 = load ptr, ptr @gBS, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %204, i32 0, i32 2
  %206 = load ptr, ptr %205, align 8, !tbaa !50
  %207 = load i64, ptr %11, align 8, !tbaa !14
  call void %206(i64 noundef %207)
  %208 = load i64, ptr %10, align 8, !tbaa !14
  store i64 %208, ptr %3, align 8
  store i32 1, ptr %12, align 4
  br label %209

209:                                              ; preds = %203, %24, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 52, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %210 = load i64, ptr %3, align 8
  ret i64 %210
}

; 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

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

declare ptr @ZeroMem(ptr noundef, i64 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 @NetIp6IsValidUnicast(ptr noundef) #2

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

declare void @FreePool(ptr noundef) #2

declare ptr @AllocateZeroPool(i64 noundef) #2

declare ptr @UdpIoCreateIo(ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext, ptr noundef) #2

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

declare i64 @UdpIoFreeIo(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, !6, i64 24}
!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 = !{!12, !12, i64 0}
!15 = !{!16, !13, i64 0}
!16 = !{!"_MTFTP6_INSTANCE", !13, i64 0, !6, i64 8, !17, i64 16, !18, i64 32, !6, i64 96, !6, i64 104, !6, i64 112, !19, i64 120, !20, i64 152, !20, i64 154, !17, i64 160, !21, i64 176, !20, i64 192, !20, i64 194, !6, i64 200, !21, i64 208, !20, i64 224, !6, i64 232, !6, i64 240, !13, i64 248, !13, i64 252, !13, i64 256, !13, i64 260, !12, i64 264, !7, i64 272, !7, i64 273, !7, i64 274}
!17 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!18 = !{!"_EFI_MTFTP6_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}
!19 = !{!"", !20, i64 0, !7, i64 2, !13, i64 4, !21, i64 8, !20, i64 24, !7, i64 26, !13, i64 28}
!20 = !{!"short", !7, i64 0}
!21 = !{!"", !7, i64 0}
!22 = !{!16, !6, i64 96}
!23 = !{!16, !6, i64 104}
!24 = !{!16, !6, i64 200}
!25 = !{!26, !6, i64 24}
!26 = !{!"_MTFTP6_SERVICE", !13, i64 0, !27, i64 8, !6, i64 24, !6, i64 32, !20, i64 40, !17, i64 48, !6, i64 64, !6, i64 72}
!27 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!28 = !{!26, !6, i64 32}
!29 = !{!10, !6, i64 280}
!30 = !{!31, !6, i64 56}
!31 = !{!"_UDP_IO", !13, i64 0, !17, i64 8, !12, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !32, i64 64, !17, i64 720, !6, i64 736, !7, i64 744, !7, i64 752}
!32 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !7, i64 40, !21, i64 552, !21, i64 584, !21, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!33 = !{!16, !6, i64 8}
!34 = !{!35, !7, i64 0}
!35 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !13, i64 8, !13, i64 12, !21, i64 16, !20, i64 32, !21, i64 34, !20, i64 50}
!36 = !{!35, !7, i64 1}
!37 = !{!35, !7, i64 2}
!38 = !{!35, !7, i64 3}
!39 = !{!35, !7, i64 4}
!40 = !{!35, !13, i64 8}
!41 = !{!35, !13, i64 12}
!42 = !{!43, !20, i64 16}
!43 = !{!"", !21, i64 0, !20, i64 16, !21, i64 18, !20, i64 34, !20, i64 36, !20, i64 38}
!44 = !{!35, !20, i64 32}
!45 = !{!43, !20, i64 34}
!46 = !{!35, !20, i64 50}
!47 = !{!7, !7, i64 0}
!48 = !{!49, !6, i64 8}
!49 = !{!"_EFI_UDP6_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!50 = !{!10, !6, i64 32}


; 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] }
%struct.EFI_UDP6_CONFIG_DATA = type { i8, i8, i8, i8, i8, i32, i32, %struct.EFI_IPv6_ADDRESS, i16, %struct.EFI_IPv6_ADDRESS, i16 }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }

@gBS = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [135 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@gEfiUdp6ProtocolGuid = external global %struct.GUID, align 4

; Function Attrs: nounwind uwtable
define dso_local i64 @EfiMtftp6Configure(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  %4 = alloca %struct.EFI_UDP6_CONFIG_DATA, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 52, ptr nonnull %4) #3
  %5 = icmp eq ptr %0, null
  br i1 %5, label %87, label %6

6:                                                ; preds = %2
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %10, label %7

7:                                                ; preds = %6
  %8 = getelementptr inbounds i8, ptr %1, i64 18
  %9 = tail call zeroext i8 @NetIp6IsValidUnicast(ptr noundef nonnull %8) #3
  %.not48 = icmp eq i8 %9, 0
  br i1 %.not48, label %87, label %10

10:                                               ; preds = %7, %6
  %11 = load ptr, ptr @gBS, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %11, i64 24
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = tail call i64 %13(i64 noundef 8) #3
  %15 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not49 = icmp eq i8 %15, 0
  %.pre = ptrtoint ptr %0 to i64
  %.pre62 = add i64 %.pre, -32
  %.pre64 = inttoptr i64 %.pre62 to ptr
  br i1 %.not49, label %._crit_edge, label %16

16:                                               ; preds = %10
  %17 = load i32, ptr %.pre64, align 8, !tbaa !14
  %.not50 = icmp eq i32 %17, 1228293709
  br i1 %.not50, label %._crit_edge, label %18

18:                                               ; preds = %16
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 157, ptr noundef nonnull @.str.1) #3
  br label %._crit_edge

._crit_edge:                                      ; preds = %10, %16, %18
  %19 = phi ptr [ %0, %18 ], [ %.pre64, %16 ], [ %.pre64, %10 ]
  %20 = getelementptr inbounds i8, ptr %19, i64 96
  %21 = load ptr, ptr %20, align 8, !tbaa !21
  br i1 %.not, label %.thread60, label %24

.thread60:                                        ; preds = %._crit_edge
  tail call void @Mtftp6OperationClean(ptr noundef nonnull %19, i64 noundef -9223372036854775787) #3
  %22 = getelementptr inbounds i8, ptr %19, i64 104
  %23 = load ptr, ptr %22, align 8, !tbaa !22
  tail call void @FreePool(ptr noundef %23) #3
  br label %.sink.split

24:                                               ; preds = %._crit_edge
  %25 = getelementptr inbounds i8, ptr %19, i64 104
  %26 = load ptr, ptr %25, align 8, !tbaa !22
  %.not51 = icmp eq ptr %26, null
  br i1 %.not51, label %27, label %.thread56.thread70

27:                                               ; preds = %24
  %28 = tail call ptr @AllocateZeroPool(i64 noundef 40) #3
  store ptr %28, ptr %25, align 8, !tbaa !22
  %29 = icmp eq ptr %28, null
  br i1 %29, label %.thread56.thread, label %30

30:                                               ; preds = %27
  %31 = tail call ptr @CopyMem(ptr noundef nonnull %28, ptr noundef nonnull %1, i64 noundef 40) #3
  %32 = getelementptr inbounds i8, ptr %19, i64 200
  %33 = load ptr, ptr %32, align 8, !tbaa !23
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %.thread55

35:                                               ; preds = %30
  %36 = getelementptr inbounds i8, ptr %21, i64 24
  %37 = load ptr, ptr %36, align 8, !tbaa !24
  %38 = getelementptr inbounds i8, ptr %21, i64 32
  %39 = load ptr, ptr %38, align 8, !tbaa !27
  %40 = tail call ptr @UdpIoCreateIo(ptr noundef %37, ptr noundef %39, ptr noundef nonnull @Mtftp6ConfigDummyUdpIo, i8 noundef zeroext 6, ptr noundef null) #3
  store ptr %40, ptr %32, align 8, !tbaa !23
  %.not52 = icmp eq ptr %40, null
  br i1 %.not52, label %.thread56, label %41

41:                                               ; preds = %35
  %42 = load ptr, ptr @gBS, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 280
  %44 = load ptr, ptr %43, align 8, !tbaa !28
  %45 = getelementptr inbounds i8, ptr %40, i64 56
  %46 = load ptr, ptr %45, align 8, !tbaa !29
  %47 = load ptr, ptr %38, align 8, !tbaa !27
  %48 = getelementptr inbounds i8, ptr %19, i64 8
  %49 = load ptr, ptr %48, align 8, !tbaa !32
  %50 = call i64 %44(ptr noundef %46, ptr noundef nonnull @gEfiUdp6ProtocolGuid, ptr noundef nonnull %3, ptr noundef %47, ptr noundef %49, i32 noundef 8) #3
  %51 = icmp slt i64 %50, 0
  br i1 %51, label %.thread56, label %52

52:                                               ; preds = %41
  %.pr = load ptr, ptr %32, align 8, !tbaa !23
  %53 = icmp eq ptr %.pr, null
  br i1 %53, label %.thread56, label %.thread55

.thread55:                                        ; preds = %30, %52
  %54 = call ptr @ZeroMem(ptr noundef nonnull %4, i64 noundef 52) #3
  %55 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 0, ptr %4, align 4
  store i8 -128, ptr %55, align 4, !tbaa !33
  %56 = getelementptr inbounds i8, ptr %4, i64 8
  store i32 0, ptr %56, align 4, !tbaa !35
  %57 = getelementptr inbounds i8, ptr %4, i64 12
  store i32 0, ptr %57, align 4, !tbaa !36
  %58 = load ptr, ptr %25, align 8, !tbaa !22
  %59 = getelementptr inbounds i8, ptr %58, i64 16
  %60 = load i16, ptr %59, align 2, !tbaa !37
  %61 = getelementptr inbounds i8, ptr %4, i64 32
  store i16 %60, ptr %61, align 4, !tbaa !39
  %62 = getelementptr inbounds i8, ptr %58, i64 34
  %63 = load i16, ptr %62, align 2, !tbaa !40
  %64 = getelementptr inbounds i8, ptr %4, i64 50
  store i16 %63, ptr %64, align 2, !tbaa !41
  %65 = getelementptr inbounds i8, ptr %4, i64 16
  %66 = call ptr @CopyMem(ptr noundef nonnull %65, ptr noundef %58, i64 noundef 16) #3
  %67 = getelementptr inbounds i8, ptr %4, i64 34
  %68 = load ptr, ptr %25, align 8, !tbaa !22
  %69 = getelementptr inbounds i8, ptr %68, i64 18
  %70 = call ptr @CopyMem(ptr noundef nonnull %67, ptr noundef nonnull %69, i64 noundef 16) #3
  %71 = load ptr, ptr %32, align 8, !tbaa !23
  %72 = getelementptr inbounds i8, ptr %71, i64 744
  %73 = load ptr, ptr %72, align 8, !tbaa !42
  store ptr %73, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %75 = load ptr, ptr %74, align 8, !tbaa !43
  %76 = call i64 %75(ptr noundef %73, ptr noundef nonnull %4) #3
  %77 = icmp slt i64 %76, 0
  br i1 %77, label %.thread56, label %83

.thread56:                                        ; preds = %35, %52, %41, %.thread55
  %.04059.ph = phi i64 [ -9223372036854775799, %35 ], [ %50, %41 ], [ -9223372036854775799, %52 ], [ %76, %.thread55 ]
  %.pr66 = load ptr, ptr %25, align 8, !tbaa !22
  %.not53 = icmp eq ptr %.pr66, null
  br i1 %.not53, label %.thread56.thread, label %.thread56.thread70

.thread56.thread70:                               ; preds = %24, %.thread56
  %.0405973 = phi i64 [ %.04059.ph, %.thread56 ], [ -9223372036854775793, %24 ]
  %78 = phi ptr [ %.pr66, %.thread56 ], [ %26, %24 ]
  call void @FreePool(ptr noundef nonnull %78) #3
  store ptr null, ptr %25, align 8, !tbaa !22
  br label %.thread56.thread

.thread56.thread:                                 ; preds = %27, %.thread56.thread70, %.thread56
  %.0405969 = phi i64 [ %.0405973, %.thread56.thread70 ], [ %.04059.ph, %.thread56 ], [ -9223372036854775799, %27 ]
  %79 = getelementptr inbounds i8, ptr %19, i64 200
  %80 = load ptr, ptr %79, align 8, !tbaa !23
  %.not54 = icmp eq ptr %80, null
  br i1 %.not54, label %83, label %81

81:                                               ; preds = %.thread56.thread
  %82 = call i64 @UdpIoFreeIo(ptr noundef nonnull %80) #3
  br label %.sink.split

.sink.split:                                      ; preds = %81, %.thread60
  %.sink = phi ptr [ %22, %.thread60 ], [ %79, %81 ]
  %.04058.ph = phi i64 [ 0, %.thread60 ], [ %.0405969, %81 ]
  store ptr null, ptr %.sink, align 8, !tbaa !5
  br label %83

83:                                               ; preds = %.sink.split, %.thread56.thread, %.thread55
  %.04058 = phi i64 [ %.0405969, %.thread56.thread ], [ %76, %.thread55 ], [ %.04058.ph, %.sink.split ]
  %84 = load ptr, ptr @gBS, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 32
  %86 = load ptr, ptr %85, align 8, !tbaa !45
  call void %86(i64 noundef %14) #3
  br label %87

87:                                               ; preds = %7, %2, %83
  %.0 = phi i64 [ %.04058, %83 ], [ -9223372036854775806, %2 ], [ -9223372036854775806, %7 ]
  call void @llvm.lifetime.end.p0(i64 52, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret i64 %.0
}

; 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

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

declare ptr @ZeroMem(ptr noundef, i64 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 @NetIp6IsValidUnicast(ptr noundef) local_unnamed_addr #2

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

declare void @FreePool(ptr noundef) local_unnamed_addr #2

declare ptr @AllocateZeroPool(i64 noundef) local_unnamed_addr #2

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

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

declare i64 @UdpIoFreeIo(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 24}
!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, !13, i64 0}
!15 = !{!"_MTFTP6_INSTANCE", !13, i64 0, !6, i64 8, !16, i64 16, !17, i64 32, !6, i64 96, !6, i64 104, !6, i64 112, !18, i64 120, !19, i64 152, !19, i64 154, !16, i64 160, !20, i64 176, !19, i64 192, !19, i64 194, !6, i64 200, !20, i64 208, !19, i64 224, !6, i64 232, !6, i64 240, !13, i64 248, !13, i64 252, !13, i64 256, !13, i64 260, !12, i64 264, !7, i64 272, !7, i64 273, !7, i64 274}
!16 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!17 = !{!"_EFI_MTFTP6_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}
!18 = !{!"", !19, i64 0, !7, i64 2, !13, i64 4, !20, i64 8, !19, i64 24, !7, i64 26, !13, i64 28}
!19 = !{!"short", !7, i64 0}
!20 = !{!"", !7, i64 0}
!21 = !{!15, !6, i64 96}
!22 = !{!15, !6, i64 104}
!23 = !{!15, !6, i64 200}
!24 = !{!25, !6, i64 24}
!25 = !{!"_MTFTP6_SERVICE", !13, i64 0, !26, i64 8, !6, i64 24, !6, i64 32, !19, i64 40, !16, i64 48, !6, i64 64, !6, i64 72}
!26 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!27 = !{!25, !6, i64 32}
!28 = !{!10, !6, i64 280}
!29 = !{!30, !6, i64 56}
!30 = !{!"_UDP_IO", !13, i64 0, !16, i64 8, !12, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !31, i64 64, !16, i64 720, !6, i64 736, !7, i64 744, !7, i64 752}
!31 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !7, i64 40, !20, i64 552, !20, i64 584, !20, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!32 = !{!15, !6, i64 8}
!33 = !{!34, !7, i64 4}
!34 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !13, i64 8, !13, i64 12, !20, i64 16, !19, i64 32, !20, i64 34, !19, i64 50}
!35 = !{!34, !13, i64 8}
!36 = !{!34, !13, i64 12}
!37 = !{!38, !19, i64 16}
!38 = !{!"", !20, i64 0, !19, i64 16, !20, i64 18, !19, i64 34, !19, i64 36, !19, i64 38}
!39 = !{!34, !19, i64 32}
!40 = !{!38, !19, i64 34}
!41 = !{!34, !19, i64 50}
!42 = !{!7, !7, i64 0}
!43 = !{!44, !6, i64 8}
!44 = !{!"_EFI_UDP6_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!45 = !{!10, !6, i64 32}


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