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

; 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._LIST_ENTRY = type { ptr, ptr }
%struct._IP6_CONFIG_INSTANCE = type { i32, i8, %struct._LIST_ENTRY, i16, %struct.EFI_IP6_CONFIG_INTERFACE_INFO, %struct.EFI_IP6_CONFIG_INTERFACE_ID, i32, %struct.EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS, [7 x %struct.IP6_CONFIG_DATA_ITEM], %struct.NET_MAP, %struct.NET_MAP, %struct._EFI_IP6_CONFIG_PROTOCOL, ptr, ptr, ptr, ptr, i8, i32, ptr, i32, ptr, i32, %struct._IP6_FORM_CALLBACK_INFO, %struct.IP6_CONFIG_NVDATA }
%struct.EFI_IP6_CONFIG_INTERFACE_INFO = type { [32 x i16], i8, i32, %struct.EFI_MAC_ADDRESS, i32, ptr, i32, ptr }
%struct.EFI_MAC_ADDRESS = type { [32 x i8] }
%struct.EFI_IP6_CONFIG_INTERFACE_ID = type { [8 x i8] }
%struct.EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS = type { i32 }
%struct.IP6_CONFIG_DATA_ITEM = type { ptr, ptr, i64, i8, %struct.NET_MAP, %union.IP6_CONFIG_DATA, i64 }
%union.IP6_CONFIG_DATA = type { ptr }
%struct.NET_MAP = type { %struct._LIST_ENTRY, %struct._LIST_ENTRY, i64 }
%struct._EFI_IP6_CONFIG_PROTOCOL = type { ptr, ptr, ptr, ptr }
%struct._IP6_FORM_CALLBACK_INFO = type { i32, ptr, %struct._EFI_HII_CONFIG_ACCESS_PROTOCOL, ptr, ptr }
%struct._EFI_HII_CONFIG_ACCESS_PROTOCOL = type { ptr, ptr, ptr }
%struct.IP6_CONFIG_NVDATA = type { i32, %struct.EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS, %struct.EFI_IP6_CONFIG_INTERFACE_ID, %struct._LIST_ENTRY, i32, %struct._LIST_ENTRY, i32, %struct._LIST_ENTRY, i32 }
%struct.EFI_IP6_CONFIG_MANUAL_ADDRESS = type { %struct.EFI_IPv6_ADDRESS, i8, i8 }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }
%struct._IP6_SERVICE = type { i32, %struct._EFI_SERVICE_BINDING_PROTOCOL, i64, i64, %struct._LIST_ENTRY, %struct._LIST_ENTRY, ptr, ptr, %struct.IP6_LINK_RX_TOKEN, %struct.IP6_ASSEMBLE_TABLE, %struct.IP6_MLD_SERVICE_DATA, %struct.EFI_IPv6_ADDRESS, i8, i8, i8, i8, i8, i32, i32, i32, i32, %struct._LIST_ENTRY, %struct._LIST_ENTRY, %struct._LIST_ENTRY, %struct._LIST_ENTRY, i32, i8, ptr, i8, i8, i32, ptr, ptr, ptr, ptr, %struct.EFI_MANAGED_NETWORK_CONFIG_DATA, %struct.EFI_SIMPLE_NETWORK_MODE, ptr, ptr, %struct._IP6_CONFIG_INSTANCE, ptr, i32, i32 }
%struct._EFI_SERVICE_BINDING_PROTOCOL = type { ptr, ptr }
%struct.IP6_LINK_RX_TOKEN = type { i32, ptr, ptr, %struct.EFI_MANAGED_NETWORK_COMPLETION_TOKEN }
%struct.EFI_MANAGED_NETWORK_COMPLETION_TOKEN = type { ptr, i64, %union.anon }
%union.anon = type { ptr }
%struct.IP6_ASSEMBLE_TABLE = type { [127 x %struct._LIST_ENTRY] }
%struct.IP6_MLD_SERVICE_DATA = type { i64, %struct._LIST_ENTRY }
%struct.EFI_MANAGED_NETWORK_CONFIG_DATA = type { i32, i32, i16, i8, i8, i8, i8, i8, i8, i8 }
%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._IP6_INTERFACE = type { i32, %struct._LIST_ENTRY, i64, %struct._LIST_ENTRY, i32, i8, ptr, ptr, ptr, %struct._LIST_ENTRY, %struct._LIST_ENTRY, i32, %struct._LIST_ENTRY, %struct._LIST_ENTRY, %struct._LIST_ENTRY, i8 }
%struct._IP6_ADDRESS_INFO = type { i32, %struct._LIST_ENTRY, %struct.EFI_IPv6_ADDRESS, i8, i8, i32, i32 }

@.str = external hidden unnamed_addr constant [135 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [32 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

declare ptr @Ip6CreatePrefixListEntry(ptr noundef, i8 noundef zeroext, i32 noundef, i32 noundef, i8 noundef zeroext, ptr noundef) #1

declare i64 @Ip6RemoveAddr(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext) #1

declare zeroext i8 @DebugAssertEnabled() #1

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

declare zeroext i8 @NetIp6IsLinkLocalAddr(ptr noundef) #1

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

declare void @FreePool(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @Ip6ManualAddrDadCallback(i8 noundef zeroext, ptr noundef, ptr noundef) #2

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

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

26:                                               ; preds = %3
  %27 = call zeroext i8 @DebugAssertEnabled()
  %28 = icmp ne i8 %27, 0
  br i1 %28, label %29, label %38

29:                                               ; preds = %26
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %30, i32 0, i32 8
  %32 = getelementptr inbounds [7 x %struct.IP6_CONFIG_DATA_ITEM], ptr %31, i64 0, i64 4
  %33 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %32, i32 0, i32 2
  %34 = load i64, ptr %33, align 8, !tbaa !11
  %35 = icmp ne i64 %34, -9223372036854775802
  br i1 %35, label %37, label %36

36:                                               ; preds = %29
  call void @DebugAssert(ptr noundef @.str, i64 noundef 911, ptr noundef @.str.8)
  br label %37

37:                                               ; preds = %36, %29
  br label %38

38:                                               ; preds = %37, %26
  br label %39

39:                                               ; preds = %38
  br label %40

40:                                               ; preds = %39
  %41 = load i64, ptr %6, align 8, !tbaa !9
  %42 = urem i64 %41, 18
  %43 = icmp ne i64 %42, 0
  br i1 %43, label %47, label %44

44:                                               ; preds = %40
  %45 = load i64, ptr %6, align 8, !tbaa !9
  %46 = icmp eq i64 %45, 0
  br i1 %46, label %47, label %48

47:                                               ; preds = %44, %40
  store i64 -9223372036854775804, ptr %4, align 8
  store i32 1, ptr %25, align 4
  br label %395

48:                                               ; preds = %44
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %49, i32 0, i32 6
  %51 = load i32, ptr %50, align 8, !tbaa !15
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %54

53:                                               ; preds = %48
  store i64 -9223372036854775800, ptr %4, align 8
  store i32 1, ptr %25, align 4
  br label %395

54:                                               ; preds = %48
  %55 = load i64, ptr %6, align 8, !tbaa !9
  %56 = udiv i64 %55, 18
  store i64 %56, ptr %11, align 8, !tbaa !9
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %57, ptr %8, align 8, !tbaa !5
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %104, %54
  %59 = load i64, ptr %12, align 8, !tbaa !9
  %60 = load i64, ptr %11, align 8, !tbaa !9
  %61 = icmp ult i64 %59, %60
  br i1 %61, label %62, label %109

62:                                               ; preds = %58
  %63 = load ptr, ptr %8, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %63, i32 0, i32 0
  %65 = call zeroext i8 @NetIp6IsLinkLocalAddr(ptr noundef %64)
  %66 = zext i8 %65 to i32
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %79, label %68

68:                                               ; preds = %62
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %69, i32 0, i32 0
  %71 = call zeroext i8 @NetIp6IsValidUnicast(ptr noundef %70)
  %72 = icmp ne i8 %71, 0
  br i1 %72, label %73, label %79

73:                                               ; preds = %68
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %74, i32 0, i32 2
  %76 = load i8, ptr %75, align 1, !tbaa !26
  %77 = zext i8 %76 to i32
  %78 = icmp sgt i32 %77, 128
  br i1 %78, label %79, label %80

79:                                               ; preds = %73, %68, %62
  store i64 -9223372036854775806, ptr %4, align 8
  store i32 1, ptr %25, align 4
  br label %395

80:                                               ; preds = %73
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %81, i64 1
  store ptr %82, ptr %9, align 8, !tbaa !5
  %83 = load i64, ptr %12, align 8, !tbaa !9
  %84 = add i64 %83, 1
  store i64 %84, ptr %13, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %98, %80
  %86 = load i64, ptr %13, align 8, !tbaa !9
  %87 = load i64, ptr %11, align 8, !tbaa !9
  %88 = icmp ult i64 %86, %87
  br i1 %88, label %89, label %103

89:                                               ; preds = %85
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %92, i32 0, i32 0
  %94 = call i64 @CompareMem(ptr noundef %91, ptr noundef %93, i64 noundef 16)
  %95 = icmp eq i64 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %89
  store i64 -9223372036854775806, ptr %4, align 8
  store i32 1, ptr %25, align 4
  br label %395

97:                                               ; preds = %89
  br label %98

98:                                               ; preds = %97
  %99 = load i64, ptr %13, align 8, !tbaa !9
  %100 = add i64 %99, 1
  store i64 %100, ptr %13, align 8, !tbaa !9
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %101, i32 1
  store ptr %102, ptr %9, align 8, !tbaa !5
  br label %85, !llvm.loop !28

103:                                              ; preds = %85
  br label %104

104:                                              ; preds = %103
  %105 = load i64, ptr %12, align 8, !tbaa !9
  %106 = add i64 %105, 1
  store i64 %106, ptr %12, align 8, !tbaa !9
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %107, i32 1
  store ptr %108, ptr %8, align 8, !tbaa !5
  br label %58, !llvm.loop !30

109:                                              ; preds = %58
  %110 = call zeroext i8 @DebugAssertEnabled()
  %111 = zext i8 %110 to i32
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %123

113:                                              ; preds = %109
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = ptrtoint ptr %114 to i64
  %116 = sub i64 %115, ptrtoint (ptr getelementptr inbounds (%struct._IP6_SERVICE, ptr null, i32 0, i32 39) to i64)
  %117 = inttoptr i64 %116 to ptr
  %118 = getelementptr inbounds %struct._IP6_SERVICE, ptr %117, i32 0, i32 0
  %119 = load i32, ptr %118, align 8, !tbaa !31
  %120 = icmp ne i32 %119, 1396068425
  br i1 %120, label %121, label %123

121:                                              ; preds = %113
  call void @DebugAssert(ptr noundef @.str, i64 noundef 949, ptr noundef @.str.1)
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  br label %128

123:                                              ; preds = %113, %109
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = ptrtoint ptr %124 to i64
  %126 = sub i64 %125, ptrtoint (ptr getelementptr inbounds (%struct._IP6_SERVICE, ptr null, i32 0, i32 39) to i64)
  %127 = inttoptr i64 %126 to ptr
  br label %128

128:                                              ; preds = %123, %121
  %129 = phi ptr [ %122, %121 ], [ %127, %123 ]
  store ptr %129, ptr %14, align 8, !tbaa !5
  %130 = call ptr @InitializeListHead(ptr noundef %17)
  store i32 0, ptr %18, align 4, !tbaa !39
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct._IP6_SERVICE, ptr %131, i32 0, i32 5
  %133 = getelementptr inbounds %struct._LIST_ENTRY, ptr %132, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !40
  store ptr %134, ptr %19, align 8, !tbaa !5
  br label %135

135:                                              ; preds = %207, %128
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = load ptr, ptr %14, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct._IP6_SERVICE, ptr %137, i32 0, i32 5
  %139 = icmp ne ptr %136, %138
  br i1 %139, label %140, label %211

140:                                              ; preds = %135
  %141 = call zeroext i8 @DebugAssertEnabled()
  %142 = zext i8 %141 to i32
  %143 = icmp ne i32 %142, 0
  br i1 %143, label %144, label %154

144:                                              ; preds = %140
  %145 = load ptr, ptr %19, align 8, !tbaa !5
  %146 = ptrtoint ptr %145 to i64
  %147 = sub i64 %146, ptrtoint (ptr getelementptr inbounds (%struct._IP6_INTERFACE, ptr null, i32 0, i32 1) to i64)
  %148 = inttoptr i64 %147 to ptr
  %149 = getelementptr inbounds %struct._IP6_INTERFACE, ptr %148, i32 0, i32 0
  %150 = load i32, ptr %149, align 8, !tbaa !41
  %151 = icmp ne i32 %150, 1228296265
  br i1 %151, label %152, label %154

152:                                              ; preds = %144
  call void @DebugAssert(ptr noundef @.str, i64 noundef 958, ptr noundef @.str.1)
  %153 = load ptr, ptr %19, align 8, !tbaa !5
  br label %159

154:                                              ; preds = %144, %140
  %155 = load ptr, ptr %19, align 8, !tbaa !5
  %156 = ptrtoint ptr %155 to i64
  %157 = sub i64 %156, ptrtoint (ptr getelementptr inbounds (%struct._IP6_INTERFACE, ptr null, i32 0, i32 1) to i64)
  %158 = inttoptr i64 %157 to ptr
  br label %159

159:                                              ; preds = %154, %152
  %160 = phi ptr [ %153, %152 ], [ %158, %154 ]
  store ptr %160, ptr %21, align 8, !tbaa !5
  %161 = load ptr, ptr %21, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct._IP6_INTERFACE, ptr %161, i32 0, i32 3
  %163 = getelementptr inbounds %struct._LIST_ENTRY, ptr %162, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8, !tbaa !43
  store ptr %164, ptr %20, align 8, !tbaa !5
  br label %165

165:                                              ; preds = %202, %159
  %166 = load ptr, ptr %20, align 8, !tbaa !5
  %167 = load ptr, ptr %21, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct._IP6_INTERFACE, ptr %167, i32 0, i32 3
  %169 = icmp ne ptr %166, %168
  br i1 %169, label %170, label %206

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

174:                                              ; preds = %170
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  %176 = ptrtoint ptr %175 to i64
  %177 = sub i64 %176, ptrtoint (ptr getelementptr inbounds (%struct._IP6_ADDRESS_INFO, ptr null, i32 0, i32 1) to i64)
  %178 = inttoptr i64 %177 to ptr
  %179 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %178, i32 0, i32 0
  %180 = load i32, ptr %179, align 8, !tbaa !44
  %181 = icmp ne i32 %180, 1229017161
  br i1 %181, label %182, label %184

182:                                              ; preds = %174
  call void @DebugAssert(ptr noundef @.str, i64 noundef 961, ptr noundef @.str.1)
  %183 = load ptr, ptr %20, align 8, !tbaa !5
  br label %189

184:                                              ; preds = %174, %170
  %185 = load ptr, ptr %20, align 8, !tbaa !5
  %186 = ptrtoint ptr %185 to i64
  %187 = sub i64 %186, ptrtoint (ptr getelementptr inbounds (%struct._IP6_ADDRESS_INFO, ptr null, i32 0, i32 1) to i64)
  %188 = inttoptr i64 %187 to ptr
  br label %189

189:                                              ; preds = %184, %182
  %190 = phi ptr [ %183, %182 ], [ %188, %184 ]
  store ptr %190, ptr %15, align 8, !tbaa !5
  %191 = load ptr, ptr %15, align 8, !tbaa !5
  %192 = call ptr @AllocateCopyPool(i64 noundef 56, ptr noundef %191)
  store ptr %192, ptr %16, align 8, !tbaa !5
  %193 = load ptr, ptr %16, align 8, !tbaa !5
  %194 = icmp eq ptr %193, null
  br i1 %194, label %195, label %196

195:                                              ; preds = %189
  br label %206

196:                                              ; preds = %189
  %197 = load ptr, ptr %16, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %197, i32 0, i32 1
  %199 = call ptr @InsertTailList(ptr noundef %17, ptr noundef %198)
  %200 = load i32, ptr %18, align 4, !tbaa !39
  %201 = add i32 %200, 1
  store i32 %201, ptr %18, align 4, !tbaa !39
  br label %202

202:                                              ; preds = %196
  %203 = load ptr, ptr %20, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct._LIST_ENTRY, ptr %203, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8, !tbaa !46
  store ptr %205, ptr %20, align 8, !tbaa !5
  br label %165, !llvm.loop !47

206:                                              ; preds = %195, %165
  br label %207

207:                                              ; preds = %206
  %208 = load ptr, ptr %19, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct._LIST_ENTRY, ptr %208, i32 0, i32 0
  %210 = load ptr, ptr %209, align 8, !tbaa !46
  store ptr %210, ptr %19, align 8, !tbaa !5
  br label %135, !llvm.loop !48

211:                                              ; preds = %135
  %212 = load i64, ptr %6, align 8, !tbaa !9
  %213 = load ptr, ptr %7, align 8, !tbaa !5
  %214 = call ptr @AllocateCopyPool(i64 noundef %212, ptr noundef %213)
  store ptr %214, ptr %8, align 8, !tbaa !5
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = icmp eq ptr %215, null
  br i1 %216, label %217, label %219

217:                                              ; preds = %211
  %218 = call i64 @Ip6RemoveAddr(ptr noundef null, ptr noundef %17, ptr noundef %18, ptr noundef null, i8 noundef zeroext 0)
  store i64 -9223372036854775799, ptr %4, align 8
  store i32 1, ptr %25, align 4
  br label %395

219:                                              ; preds = %211
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %220, i32 0, i32 8
  %222 = getelementptr inbounds [7 x %struct.IP6_CONFIG_DATA_ITEM], ptr %221, i64 0, i64 4
  store ptr %222, ptr %10, align 8, !tbaa !5
  %223 = load ptr, ptr %10, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %223, i32 0, i32 5
  %225 = load ptr, ptr %224, align 8, !tbaa !49
  %226 = icmp ne ptr %225, null
  br i1 %226, label %227, label %231

227:                                              ; preds = %219
  %228 = load ptr, ptr %10, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %228, i32 0, i32 5
  %230 = load ptr, ptr %229, align 8, !tbaa !49
  call void @FreePool(ptr noundef %230)
  br label %231

231:                                              ; preds = %227, %219
  %232 = load ptr, ptr %8, align 8, !tbaa !5
  %233 = load ptr, ptr %10, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %233, i32 0, i32 5
  store ptr %232, ptr %234, align 8, !tbaa !49
  %235 = load i64, ptr %6, align 8, !tbaa !9
  %236 = load ptr, ptr %10, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %236, i32 0, i32 6
  store i64 %235, ptr %237, align 8, !tbaa !50
  %238 = load ptr, ptr %10, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %238, i32 0, i32 2
  store i64 -9223372036854775802, ptr %239, align 8, !tbaa !11
  store i8 0, ptr %24, align 1, !tbaa !49
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %240

240:                                              ; preds = %335, %231
  %241 = load i64, ptr %12, align 8, !tbaa !9
  %242 = load i64, ptr %11, align 8, !tbaa !9
  %243 = icmp ult i64 %241, %242
  br i1 %243, label %244, label %340

244:                                              ; preds = %240
  %245 = load ptr, ptr %14, align 8, !tbaa !5
  %246 = load ptr, ptr %8, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %246, i32 0, i32 0
  %248 = call zeroext i8 @Ip6IsOneOfSetAddress(ptr noundef %245, ptr noundef %247, ptr noundef null, ptr noundef %15)
  %249 = icmp ne i8 %248, 0
  br i1 %249, label %250, label %320

250:                                              ; preds = %244
  br label %251

251:                                              ; preds = %250
  %252 = call zeroext i8 @DebugAssertEnabled()
  %253 = icmp ne i8 %252, 0
  br i1 %253, label %254, label %259

254:                                              ; preds = %251
  %255 = load ptr, ptr %15, align 8, !tbaa !5
  %256 = icmp ne ptr %255, null
  br i1 %256, label %258, label %257

257:                                              ; preds = %254
  call void @DebugAssert(ptr noundef @.str, i64 noundef 1002, ptr noundef @.str.9)
  br label %258

258:                                              ; preds = %257, %254
  br label %259

259:                                              ; preds = %258, %251
  br label %260

260:                                              ; preds = %259
  br label %261

261:                                              ; preds = %260
  %262 = load ptr, ptr %15, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %262, i32 0, i32 2
  %264 = call i64 @Ip6RemoveAddr(ptr noundef null, ptr noundef %17, ptr noundef %18, ptr noundef %263, i8 noundef zeroext -128)
  %265 = load ptr, ptr %8, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %265, i32 0, i32 2
  %267 = load i8, ptr %266, align 1, !tbaa !26
  %268 = zext i8 %267 to i32
  %269 = load ptr, ptr %15, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %269, i32 0, i32 4
  %271 = load i8, ptr %270, align 1, !tbaa !51
  %272 = zext i8 %271 to i32
  %273 = icmp ne i32 %268, %272
  br i1 %273, label %274, label %293

274:                                              ; preds = %261
  %275 = load ptr, ptr %14, align 8, !tbaa !5
  %276 = load ptr, ptr %15, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %276, i32 0, i32 4
  %278 = load i8, ptr %277, align 1, !tbaa !51
  %279 = load ptr, ptr %15, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %279, i32 0, i32 2
  %281 = call ptr @Ip6FindPrefixListEntry(ptr noundef %275, i8 noundef zeroext 1, i8 noundef zeroext %278, ptr noundef %280)
  store ptr %281, ptr %22, align 8, !tbaa !5
  %282 = load ptr, ptr %22, align 8, !tbaa !5
  %283 = icmp ne ptr %282, null
  br i1 %283, label %284, label %287

284:                                              ; preds = %274
  %285 = load ptr, ptr %14, align 8, !tbaa !5
  %286 = load ptr, ptr %22, align 8, !tbaa !5
  call void @Ip6DestroyPrefixListEntry(ptr noundef %285, ptr noundef %286, i8 noundef zeroext 1, i8 noundef zeroext 0)
  br label %287

287:                                              ; preds = %284, %274
  %288 = load ptr, ptr %8, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %288, i32 0, i32 2
  %290 = load i8, ptr %289, align 1, !tbaa !26
  %291 = load ptr, ptr %15, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %291, i32 0, i32 4
  store i8 %290, ptr %292, align 1, !tbaa !51
  store i8 1, ptr %24, align 1, !tbaa !49
  br label %293

293:                                              ; preds = %287, %261
  %294 = load ptr, ptr %14, align 8, !tbaa !5
  %295 = load ptr, ptr %8, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %295, i32 0, i32 2
  %297 = load i8, ptr %296, align 1, !tbaa !26
  %298 = load ptr, ptr %8, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %298, i32 0, i32 0
  %300 = call ptr @Ip6FindPrefixListEntry(ptr noundef %294, i8 noundef zeroext 1, i8 noundef zeroext %297, ptr noundef %299)
  store ptr %300, ptr %22, align 8, !tbaa !5
  %301 = load ptr, ptr %22, align 8, !tbaa !5
  %302 = icmp eq ptr %301, null
  br i1 %302, label %303, label %311

303:                                              ; preds = %293
  %304 = load ptr, ptr %14, align 8, !tbaa !5
  %305 = load ptr, ptr %8, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %305, i32 0, i32 2
  %307 = load i8, ptr %306, align 1, !tbaa !26
  %308 = load ptr, ptr %8, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %308, i32 0, i32 0
  %310 = call ptr @Ip6CreatePrefixListEntry(ptr noundef %304, i8 noundef zeroext 1, i32 noundef -1, i32 noundef -1, i8 noundef zeroext %307, ptr noundef %309)
  br label %311

311:                                              ; preds = %303, %293
  %312 = load ptr, ptr %8, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %312, i32 0, i32 1
  %314 = load i8, ptr %313, align 1, !tbaa !52
  %315 = load ptr, ptr %15, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %315, i32 0, i32 3
  store i8 %314, ptr %316, align 8, !tbaa !53
  %317 = load ptr, ptr %8, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %317, i32 0, i32 0
  %319 = load ptr, ptr %5, align 8, !tbaa !5
  call void @Ip6ManualAddrDadCallback(i8 noundef zeroext 1, ptr noundef %318, ptr noundef %319)
  br label %334

320:                                              ; preds = %244
  store i8 1, ptr %24, align 1, !tbaa !49
  %321 = load ptr, ptr %14, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct._IP6_SERVICE, ptr %321, i32 0, i32 6
  %323 = load ptr, ptr %322, align 8, !tbaa !54
  %324 = load ptr, ptr %8, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %324, i32 0, i32 0
  %326 = load ptr, ptr %8, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %326, i32 0, i32 1
  %328 = load i8, ptr %327, align 1, !tbaa !52
  %329 = load ptr, ptr %8, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %329, i32 0, i32 2
  %331 = load i8, ptr %330, align 1, !tbaa !26
  %332 = load ptr, ptr %5, align 8, !tbaa !5
  %333 = call i64 @Ip6SetAddress(ptr noundef %323, ptr noundef %325, i8 noundef zeroext %328, i8 noundef zeroext %331, i32 noundef -1, i32 noundef -1, ptr noundef @Ip6ManualAddrDadCallback, ptr noundef %332)
  br label %334

334:                                              ; preds = %320, %311
  br label %335

335:                                              ; preds = %334
  %336 = load i64, ptr %12, align 8, !tbaa !9
  %337 = add i64 %336, 1
  store i64 %337, ptr %12, align 8, !tbaa !9
  %338 = load ptr, ptr %8, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.EFI_IP6_CONFIG_MANUAL_ADDRESS, ptr %338, i32 1
  store ptr %339, ptr %8, align 8, !tbaa !5
  br label %240, !llvm.loop !55

340:                                              ; preds = %240
  %341 = load ptr, ptr %14, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct._IP6_SERVICE, ptr %341, i32 0, i32 6
  %343 = load ptr, ptr %342, align 8, !tbaa !54
  store ptr %343, ptr %21, align 8, !tbaa !5
  br label %344

344:                                              ; preds = %374, %340
  %345 = call zeroext i8 @IsListEmpty(ptr noundef %17)
  %346 = icmp ne i8 %345, 0
  %347 = xor i1 %346, true
  br i1 %347, label %348, label %379

348:                                              ; preds = %344
  store i8 1, ptr %24, align 1, !tbaa !49
  %349 = getelementptr inbounds %struct._LIST_ENTRY, ptr %17, i32 0, i32 0
  %350 = load ptr, ptr %349, align 8, !tbaa !46
  %351 = ptrtoint ptr %350 to i64
  %352 = sub i64 %351, ptrtoint (ptr getelementptr inbounds (%struct._IP6_ADDRESS_INFO, ptr null, i32 0, i32 1) to i64)
  %353 = inttoptr i64 %352 to ptr
  store ptr %353, ptr %15, align 8, !tbaa !5
  %354 = load ptr, ptr %14, align 8, !tbaa !5
  %355 = load ptr, ptr %21, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct._IP6_INTERFACE, ptr %355, i32 0, i32 3
  %357 = load ptr, ptr %21, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct._IP6_INTERFACE, ptr %357, i32 0, i32 4
  %359 = load ptr, ptr %15, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %359, i32 0, i32 2
  %361 = call i64 @Ip6RemoveAddr(ptr noundef %354, ptr noundef %356, ptr noundef %358, ptr noundef %360, i8 noundef zeroext -128)
  %362 = load ptr, ptr %14, align 8, !tbaa !5
  %363 = load ptr, ptr %15, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %363, i32 0, i32 4
  %365 = load i8, ptr %364, align 1, !tbaa !51
  %366 = load ptr, ptr %15, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %366, i32 0, i32 2
  %368 = call ptr @Ip6FindPrefixListEntry(ptr noundef %362, i8 noundef zeroext 1, i8 noundef zeroext %365, ptr noundef %367)
  store ptr %368, ptr %22, align 8, !tbaa !5
  %369 = load ptr, ptr %22, align 8, !tbaa !5
  %370 = icmp ne ptr %369, null
  br i1 %370, label %371, label %374

371:                                              ; preds = %348
  %372 = load ptr, ptr %14, align 8, !tbaa !5
  %373 = load ptr, ptr %22, align 8, !tbaa !5
  call void @Ip6DestroyPrefixListEntry(ptr noundef %372, ptr noundef %373, i8 noundef zeroext 1, i8 noundef zeroext 0)
  br label %374

374:                                              ; preds = %371, %348
  %375 = load ptr, ptr %15, align 8, !tbaa !5
  %376 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %375, i32 0, i32 1
  %377 = call ptr @RemoveEntryList(ptr noundef %376)
  %378 = load ptr, ptr %15, align 8, !tbaa !5
  call void @FreePool(ptr noundef %378)
  br label %344, !llvm.loop !56

379:                                              ; preds = %344
  %380 = load i8, ptr %24, align 1, !tbaa !49
  %381 = icmp ne i8 %380, 0
  br i1 %381, label %382, label %390

382:                                              ; preds = %379
  %383 = load ptr, ptr %10, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %383, i32 0, i32 2
  %385 = load i64, ptr %384, align 8, !tbaa !11
  %386 = icmp eq i64 %385, -9223372036854775802
  br i1 %386, label %387, label %388

387:                                              ; preds = %382
  store i64 -9223372036854775802, ptr %23, align 8, !tbaa !9
  br label %389

388:                                              ; preds = %382
  store i64 0, ptr %23, align 8, !tbaa !9
  br label %389

389:                                              ; preds = %388, %387
  br label %393

390:                                              ; preds = %379
  %391 = load ptr, ptr %10, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.IP6_CONFIG_DATA_ITEM, ptr %391, i32 0, i32 2
  store i64 0, ptr %392, align 8, !tbaa !11
  store i64 -9223372036854775787, ptr %23, align 8, !tbaa !9
  br label %393

393:                                              ; preds = %390, %389
  %394 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %394, ptr %4, align 8
  store i32 1, ptr %25, align 4
  br label %395

395:                                              ; preds = %393, %217, %96, %79, %53, %47
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  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 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 16, 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
  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 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %396 = load i64, ptr %4, align 8
  ret i64 %396
}

declare zeroext i8 @NetIp6IsValidUnicast(ptr noundef) #1

declare ptr @InitializeListHead(ptr noundef) #1

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

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

declare zeroext i8 @Ip6IsOneOfSetAddress(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare ptr @Ip6FindPrefixListEntry(ptr noundef, i8 noundef zeroext, i8 noundef zeroext, ptr noundef) #1

declare void @Ip6DestroyPrefixListEntry(ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext) #1

declare i64 @Ip6SetAddress(ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1

declare zeroext i8 @IsListEmpty(ptr noundef) #1

declare ptr @RemoveEntryList(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 = !{!12, !10, i64 16}
!12 = !{!"", !6, i64 0, !6, i64 8, !10, i64 16, !7, i64 24, !13, i64 32, !7, i64 72, !10, i64 80}
!13 = !{!"", !14, i64 0, !14, i64 16, !10, i64 32}
!14 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!15 = !{!16, !17, i64 176}
!16 = !{!"_IP6_CONFIG_INSTANCE", !17, i64 0, !7, i64 4, !14, i64 8, !18, i64 24, !19, i64 32, !20, i64 168, !17, i64 176, !21, i64 180, !7, i64 184, !13, i64 800, !13, i64 840, !22, i64 880, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !7, i64 944, !17, i64 948, !6, i64 952, !17, i64 960, !6, i64 968, !17, i64 976, !23, i64 984, !25, i64 1040}
!17 = !{!"int", !7, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{!"", !7, i64 0, !7, i64 64, !17, i64 68, !20, i64 72, !17, i64 104, !6, i64 112, !17, i64 120, !6, i64 128}
!20 = !{!"", !7, i64 0}
!21 = !{!"", !17, i64 0}
!22 = !{!"_EFI_IP6_CONFIG_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!23 = !{!"_IP6_FORM_CALLBACK_INFO", !17, i64 0, !6, i64 8, !24, i64 16, !6, i64 40, !6, i64 48}
!24 = !{!"_EFI_HII_CONFIG_ACCESS_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"", !17, i64 0, !21, i64 4, !20, i64 8, !14, i64 16, !17, i64 32, !14, i64 40, !17, i64 56, !14, i64 64, !17, i64 80}
!26 = !{!27, !7, i64 17}
!27 = !{!"", !20, i64 0, !7, i64 16, !7, i64 17}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = !{!32, !17, i64 0}
!32 = !{!"_IP6_SERVICE", !17, i64 0, !33, i64 8, !10, i64 24, !10, i64 32, !14, i64 40, !14, i64 56, !6, i64 72, !6, i64 80, !34, i64 88, !20, i64 136, !36, i64 2168, !20, i64 2192, !7, i64 2208, !7, i64 2209, !7, i64 2210, !7, i64 2211, !7, i64 2212, !17, i64 2216, !17, i64 2220, !17, i64 2224, !17, i64 2228, !14, i64 2232, !14, i64 2248, !14, i64 2264, !14, i64 2280, !17, i64 2296, !7, i64 2300, !6, i64 2304, !7, i64 2312, !7, i64 2313, !17, i64 2316, !6, i64 2320, !6, i64 2328, !6, i64 2336, !6, i64 2344, !37, i64 2352, !38, i64 2372, !6, i64 3032, !6, i64 3040, !16, i64 3048, !6, i64 4176, !17, i64 4184, !17, i64 4188}
!33 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!34 = !{!"", !17, i64 0, !6, i64 8, !6, i64 16, !35, i64 24}
!35 = !{!"", !6, i64 0, !10, i64 8, !7, i64 16}
!36 = !{!"", !10, i64 0, !14, i64 8}
!37 = !{!"", !17, i64 0, !17, i64 4, !18, i64 8, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16}
!38 = !{!"", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, 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}
!39 = !{!17, !17, i64 0}
!40 = !{!32, !6, i64 56}
!41 = !{!42, !17, i64 0}
!42 = !{!"_IP6_INTERFACE", !17, i64 0, !14, i64 8, !10, i64 24, !14, i64 32, !17, i64 48, !7, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !14, i64 80, !14, i64 96, !17, i64 112, !14, i64 120, !14, i64 136, !14, i64 152, !7, i64 168}
!43 = !{!42, !6, i64 32}
!44 = !{!45, !17, i64 0}
!45 = !{!"_IP6_ADDRESS_INFO", !17, i64 0, !14, i64 8, !20, i64 24, !7, i64 40, !7, i64 41, !17, i64 44, !17, i64 48}
!46 = !{!14, !6, i64 0}
!47 = distinct !{!47, !29}
!48 = distinct !{!48, !29}
!49 = !{!7, !7, i64 0}
!50 = !{!12, !10, i64 80}
!51 = !{!45, !7, i64 41}
!52 = !{!27, !7, i64 16}
!53 = !{!45, !7, i64 40}
!54 = !{!32, !6, i64 72}
!55 = distinct !{!55, !29}
!56 = distinct !{!56, !29}


; 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._LIST_ENTRY = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [135 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [32 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

declare ptr @Ip6CreatePrefixListEntry(ptr noundef, i8 noundef zeroext, i32 noundef, i32 noundef, i8 noundef zeroext, ptr noundef) local_unnamed_addr #1

declare i64 @Ip6RemoveAddr(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #1

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

declare zeroext i8 @NetIp6IsLinkLocalAddr(ptr noundef) local_unnamed_addr #1

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

declare void @FreePool(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @Ip6ManualAddrDadCallback(i8 noundef zeroext, ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775806, 1) i64 @Ip6ConfigSetMaunualAddress(ptr noundef %0, i64 noundef %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = alloca ptr, align 8
  %5 = alloca %struct._LIST_ENTRY, align 8
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  %7 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not = icmp eq i8 %7, 0
  br i1 %.not, label %12, label %8

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %0, i64 552
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %.not111 = icmp eq i64 %10, -9223372036854775802
  br i1 %.not111, label %11, label %12

11:                                               ; preds = %8
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 911, ptr noundef nonnull @.str.8) #3
  br label %12

12:                                               ; preds = %8, %11, %3
  %13 = urem i64 %1, 18
  %14 = udiv i64 %1, 18
  %15 = icmp ne i64 %13, 0
  %16 = icmp eq i64 %1, 0
  %or.cond = or i1 %16, %15
  br i1 %or.cond, label %.loopexit130, label %17

17:                                               ; preds = %12
  %18 = getelementptr inbounds i8, ptr %0, i64 176
  %19 = load i32, ptr %18, align 8, !tbaa !13
  %.not112 = icmp eq i32 %19, 0
  br i1 %.not112, label %20, label %.loopexit130

20:                                               ; preds = %17
  %.not161 = icmp ult i64 %1, 18
  br i1 %.not161, label %._crit_edge, label %.lr.ph136

.loopexit:                                        ; preds = %34, %28
  %exitcond.not = icmp eq i64 %30, %14
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph136, !llvm.loop !24

.lr.ph136:                                        ; preds = %20, %.loopexit
  %.097135 = phi ptr [ %29, %.loopexit ], [ %2, %20 ]
  %.0100134 = phi i64 [ %30, %.loopexit ], [ 0, %20 ]
  %21 = tail call zeroext i8 @NetIp6IsLinkLocalAddr(ptr noundef %.097135) #3
  %.not128 = icmp eq i8 %21, 0
  br i1 %.not128, label %22, label %.loopexit130

22:                                               ; preds = %.lr.ph136
  %23 = tail call zeroext i8 @NetIp6IsValidUnicast(ptr noundef %.097135) #3
  %.not129 = icmp eq i8 %23, 0
  br i1 %.not129, label %.loopexit130, label %24

24:                                               ; preds = %22
  %25 = getelementptr inbounds i8, ptr %.097135, i64 17
  %26 = load i8, ptr %25, align 1, !tbaa !26
  %27 = icmp ugt i8 %26, -128
  br i1 %27, label %.loopexit130, label %28

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %.097135, i64 18
  %30 = add nuw nsw i64 %.0100134, 1
  %31 = icmp ult i64 %30, %14
  br i1 %31, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %28, %34
  %.099133 = phi i64 [ %35, %34 ], [ %30, %28 ]
  %.0102132 = phi ptr [ %36, %34 ], [ %29, %28 ]
  %32 = tail call i64 @CompareMem(ptr noundef nonnull %.0102132, ptr noundef %.097135, i64 noundef 16) #3
  %33 = icmp eq i64 %32, 0
  br i1 %33, label %.loopexit130, label %34

34:                                               ; preds = %.lr.ph
  %35 = add nuw nsw i64 %.099133, 1
  %36 = getelementptr inbounds i8, ptr %.0102132, i64 18
  %37 = icmp ult i64 %35, %14
  br i1 %37, label %.lr.ph, label %.loopexit, !llvm.loop !28

._crit_edge:                                      ; preds = %.loopexit, %20
  %38 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not113 = icmp eq i8 %38, 0
  %.pre165 = ptrtoint ptr %0 to i64
  %.pre166 = add i64 %.pre165, -3048
  %.pre168 = inttoptr i64 %.pre166 to ptr
  br i1 %.not113, label %._crit_edge._crit_edge, label %39

39:                                               ; preds = %._crit_edge
  %40 = load i32, ptr %.pre168, align 8, !tbaa !29
  %.not114 = icmp eq i32 %40, 1396068425
  br i1 %.not114, label %._crit_edge._crit_edge, label %41

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

._crit_edge._crit_edge:                           ; preds = %._crit_edge, %39, %41
  %42 = phi ptr [ %0, %41 ], [ %.pre168, %39 ], [ %.pre168, %._crit_edge ]
  %43 = call ptr @InitializeListHead(ptr noundef nonnull %5) #3
  store i32 0, ptr %6, align 4, !tbaa !37
  %44 = getelementptr inbounds i8, ptr %42, i64 56
  %.095144 = load ptr, ptr %44, align 8, !tbaa !38
  %.not115145 = icmp eq ptr %.095144, %44
  br i1 %.not115145, label %._crit_edge149, label %.lr.ph148

.lr.ph148:                                        ; preds = %._crit_edge._crit_edge, %._crit_edge142
  %.095146 = phi ptr [ %.095, %._crit_edge142 ], [ %.095144, %._crit_edge._crit_edge ]
  %45 = call zeroext i8 @DebugAssertEnabled() #3
  %.not123 = icmp eq i8 %45, 0
  %.pre170 = ptrtoint ptr %.095146 to i64
  %.pre172 = add i64 %.pre170, -8
  %.pre174 = inttoptr i64 %.pre172 to ptr
  br i1 %.not123, label %.lr.ph148._crit_edge, label %46

46:                                               ; preds = %.lr.ph148
  %47 = load i32, ptr %.pre174, align 8, !tbaa !39
  %.not124 = icmp eq i32 %47, 1228296265
  br i1 %.not124, label %.lr.ph148._crit_edge, label %48

48:                                               ; preds = %46
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 958, ptr noundef nonnull @.str.1) #3
  br label %.lr.ph148._crit_edge

.lr.ph148._crit_edge:                             ; preds = %.lr.ph148, %46, %48
  %49 = phi ptr [ %.095146, %48 ], [ %.pre174, %46 ], [ %.pre174, %.lr.ph148 ]
  %50 = getelementptr inbounds i8, ptr %49, i64 32
  %.094137 = load ptr, ptr %50, align 8, !tbaa !38
  %.not125138 = icmp eq ptr %.094137, %50
  br i1 %.not125138, label %._crit_edge142, label %.lr.ph141

.lr.ph141:                                        ; preds = %.lr.ph148._crit_edge, %58
  %.094139 = phi ptr [ %.094, %58 ], [ %.094137, %.lr.ph148._crit_edge ]
  %51 = call zeroext i8 @DebugAssertEnabled() #3
  %.not126 = icmp eq i8 %51, 0
  %.pre176 = ptrtoint ptr %.094139 to i64
  %.pre178 = add i64 %.pre176, -8
  %.pre180 = inttoptr i64 %.pre178 to ptr
  br i1 %.not126, label %.lr.ph141._crit_edge, label %52

52:                                               ; preds = %.lr.ph141
  %53 = load i32, ptr %.pre180, align 8, !tbaa !41
  %.not127 = icmp eq i32 %53, 1229017161
  br i1 %.not127, label %.lr.ph141._crit_edge, label %54

54:                                               ; preds = %52
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 961, ptr noundef nonnull @.str.1) #3
  br label %.lr.ph141._crit_edge

.lr.ph141._crit_edge:                             ; preds = %.lr.ph141, %52, %54
  %55 = phi ptr [ %.094139, %54 ], [ %.pre180, %52 ], [ %.pre180, %.lr.ph141 ]
  store ptr %55, ptr %4, align 8, !tbaa !43
  %56 = call ptr @AllocateCopyPool(i64 noundef 56, ptr noundef %55) #3
  %57 = icmp eq ptr %56, null
  br i1 %57, label %._crit_edge142, label %58

58:                                               ; preds = %.lr.ph141._crit_edge
  %59 = getelementptr inbounds i8, ptr %56, i64 8
  %60 = call ptr @InsertTailList(ptr noundef nonnull %5, ptr noundef nonnull %59) #3
  %61 = load i32, ptr %6, align 4, !tbaa !37
  %62 = add i32 %61, 1
  store i32 %62, ptr %6, align 4, !tbaa !37
  %.094 = load ptr, ptr %.094139, align 8, !tbaa !38
  %.not125 = icmp eq ptr %.094, %50
  br i1 %.not125, label %._crit_edge142, label %.lr.ph141, !llvm.loop !44

._crit_edge142:                                   ; preds = %.lr.ph141._crit_edge, %58, %.lr.ph148._crit_edge
  %.095 = load ptr, ptr %.095146, align 8, !tbaa !38
  %.not115 = icmp eq ptr %.095, %44
  br i1 %.not115, label %._crit_edge149, label %.lr.ph148, !llvm.loop !45

._crit_edge149:                                   ; preds = %._crit_edge142, %._crit_edge._crit_edge
  %63 = call ptr @AllocateCopyPool(i64 noundef %1, ptr noundef %2) #3
  %64 = icmp eq ptr %63, null
  br i1 %64, label %65, label %67

65:                                               ; preds = %._crit_edge149
  %66 = call i64 @Ip6RemoveAddr(ptr noundef null, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef null, i8 noundef zeroext 0) #3
  br label %.loopexit130

67:                                               ; preds = %._crit_edge149
  %68 = getelementptr inbounds i8, ptr %0, i64 608
  %69 = load ptr, ptr %68, align 8, !tbaa !46
  %.not116 = icmp eq ptr %69, null
  br i1 %.not116, label %71, label %70

70:                                               ; preds = %67
  call void @FreePool(ptr noundef nonnull %69) #3
  br label %71

71:                                               ; preds = %70, %67
  store ptr %63, ptr %68, align 8, !tbaa !46
  %72 = getelementptr inbounds i8, ptr %0, i64 616
  store i64 %1, ptr %72, align 8, !tbaa !47
  %73 = getelementptr inbounds i8, ptr %0, i64 552
  store i64 -9223372036854775802, ptr %73, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %42, i64 72
  br i1 %.not161, label %._crit_edge155.thread, label %.lr.ph154

.lr.ph154:                                        ; preds = %71, %118
  %.0152 = phi i8 [ %.2, %118 ], [ 0, %71 ]
  %.198151 = phi ptr [ %120, %118 ], [ %63, %71 ]
  %.1101150 = phi i64 [ %119, %118 ], [ 0, %71 ]
  %75 = call zeroext i8 @Ip6IsOneOfSetAddress(ptr noundef %42, ptr noundef nonnull %.198151, ptr noundef null, ptr noundef nonnull %4) #3
  %.not120 = icmp eq i8 %75, 0
  br i1 %.not120, label %111, label %76

76:                                               ; preds = %.lr.ph154
  %77 = call zeroext i8 @DebugAssertEnabled() #3
  %78 = icmp eq i8 %77, 0
  %79 = load ptr, ptr %4, align 8
  %80 = icmp ne ptr %79, null
  %or.cond3 = select i1 %78, i1 true, i1 %80
  br i1 %or.cond3, label %82, label %81

81:                                               ; preds = %76
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1002, ptr noundef nonnull @.str.9) #3
  %.pre = load ptr, ptr %4, align 8, !tbaa !43
  br label %82

82:                                               ; preds = %81, %76
  %83 = phi ptr [ %.pre, %81 ], [ %79, %76 ]
  %84 = getelementptr inbounds i8, ptr %83, i64 24
  %85 = call i64 @Ip6RemoveAddr(ptr noundef null, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %84, i8 noundef zeroext -128) #3
  %86 = getelementptr inbounds i8, ptr %.198151, i64 17
  %87 = load i8, ptr %86, align 1, !tbaa !26
  %88 = load ptr, ptr %4, align 8, !tbaa !43
  %89 = getelementptr inbounds i8, ptr %88, i64 41
  %90 = load i8, ptr %89, align 1, !tbaa !48
  %.not121 = icmp eq i8 %87, %90
  br i1 %.not121, label %99, label %91

91:                                               ; preds = %82
  %92 = getelementptr inbounds i8, ptr %88, i64 24
  %93 = call ptr @Ip6FindPrefixListEntry(ptr noundef %42, i8 noundef zeroext 1, i8 noundef zeroext %90, ptr noundef nonnull %92) #3
  %.not122 = icmp eq ptr %93, null
  br i1 %.not122, label %95, label %94

94:                                               ; preds = %91
  call void @Ip6DestroyPrefixListEntry(ptr noundef %42, ptr noundef nonnull %93, i8 noundef zeroext 1, i8 noundef zeroext 0) #3
  br label %95

95:                                               ; preds = %94, %91
  %96 = load i8, ptr %86, align 1, !tbaa !26
  %97 = load ptr, ptr %4, align 8, !tbaa !43
  %98 = getelementptr inbounds i8, ptr %97, i64 41
  store i8 %96, ptr %98, align 1, !tbaa !48
  br label %99

99:                                               ; preds = %95, %82
  %100 = phi i8 [ %96, %95 ], [ %87, %82 ]
  %.1 = phi i8 [ 1, %95 ], [ %.0152, %82 ]
  %101 = call ptr @Ip6FindPrefixListEntry(ptr noundef %42, i8 noundef zeroext 1, i8 noundef zeroext %100, ptr noundef nonnull %.198151) #3
  %102 = icmp eq ptr %101, null
  br i1 %102, label %103, label %106

103:                                              ; preds = %99
  %104 = load i8, ptr %86, align 1, !tbaa !26
  %105 = call ptr @Ip6CreatePrefixListEntry(ptr noundef %42, i8 noundef zeroext 1, i32 noundef -1, i32 noundef -1, i8 noundef zeroext %104, ptr noundef nonnull %.198151) #3
  br label %106

106:                                              ; preds = %103, %99
  %107 = getelementptr inbounds i8, ptr %.198151, i64 16
  %108 = load i8, ptr %107, align 1, !tbaa !49
  %109 = load ptr, ptr %4, align 8, !tbaa !43
  %110 = getelementptr inbounds i8, ptr %109, i64 40
  store i8 %108, ptr %110, align 8, !tbaa !50
  call void @Ip6ManualAddrDadCallback(i8 noundef zeroext 1, ptr noundef nonnull %.198151, ptr noundef %0)
  br label %118

111:                                              ; preds = %.lr.ph154
  %112 = load ptr, ptr %74, align 8, !tbaa !51
  %113 = getelementptr inbounds i8, ptr %.198151, i64 16
  %114 = load i8, ptr %113, align 1, !tbaa !49
  %115 = getelementptr inbounds i8, ptr %.198151, i64 17
  %116 = load i8, ptr %115, align 1, !tbaa !26
  %117 = call i64 @Ip6SetAddress(ptr noundef %112, ptr noundef nonnull %.198151, i8 noundef zeroext %114, i8 noundef zeroext %116, i32 noundef -1, i32 noundef -1, ptr noundef nonnull @Ip6ManualAddrDadCallback, ptr noundef %0) #3
  br label %118

118:                                              ; preds = %106, %111
  %.2 = phi i8 [ %.1, %106 ], [ 1, %111 ]
  %119 = add nuw nsw i64 %.1101150, 1
  %120 = getelementptr inbounds i8, ptr %.198151, i64 18
  %exitcond164.not = icmp eq i64 %119, %14
  br i1 %exitcond164.not, label %._crit_edge155, label %.lr.ph154, !llvm.loop !52

._crit_edge155:                                   ; preds = %118
  %121 = getelementptr inbounds i8, ptr %42, i64 72
  %122 = load ptr, ptr %121, align 8, !tbaa !51
  %123 = call zeroext i8 @IsListEmpty(ptr noundef nonnull %5) #3
  %.not117156 = icmp eq i8 %123, 0
  br i1 %.not117156, label %.lr.ph158, label %._crit_edge159

._crit_edge155.thread:                            ; preds = %71
  %124 = load ptr, ptr %74, align 8, !tbaa !51
  %125 = call zeroext i8 @IsListEmpty(ptr noundef nonnull %5) #3
  %.not117156183 = icmp eq i8 %125, 0
  br i1 %.not117156183, label %.lr.ph158, label %._crit_edge159.thread

.lr.ph158:                                        ; preds = %._crit_edge155.thread, %._crit_edge155
  %126 = phi ptr [ %124, %._crit_edge155.thread ], [ %122, %._crit_edge155 ]
  %127 = getelementptr inbounds i8, ptr %126, i64 32
  %128 = getelementptr inbounds i8, ptr %126, i64 48
  br label %129

129:                                              ; preds = %.lr.ph158, %142
  %130 = load ptr, ptr %5, align 8, !tbaa !38
  %131 = ptrtoint ptr %130 to i64
  %132 = add i64 %131, -8
  %133 = inttoptr i64 %132 to ptr
  store ptr %133, ptr %4, align 8, !tbaa !43
  %134 = getelementptr inbounds i8, ptr %133, i64 24
  %135 = call i64 @Ip6RemoveAddr(ptr noundef %42, ptr noundef nonnull %127, ptr noundef nonnull %128, ptr noundef nonnull %134, i8 noundef zeroext -128) #3
  %136 = load ptr, ptr %4, align 8, !tbaa !43
  %137 = getelementptr inbounds i8, ptr %136, i64 41
  %138 = load i8, ptr %137, align 1, !tbaa !48
  %139 = getelementptr inbounds i8, ptr %136, i64 24
  %140 = call ptr @Ip6FindPrefixListEntry(ptr noundef %42, i8 noundef zeroext 1, i8 noundef zeroext %138, ptr noundef nonnull %139) #3
  %.not119 = icmp eq ptr %140, null
  br i1 %.not119, label %142, label %141

141:                                              ; preds = %129
  call void @Ip6DestroyPrefixListEntry(ptr noundef %42, ptr noundef nonnull %140, i8 noundef zeroext 1, i8 noundef zeroext 0) #3
  br label %142

142:                                              ; preds = %141, %129
  %143 = load ptr, ptr %4, align 8, !tbaa !43
  %144 = getelementptr inbounds i8, ptr %143, i64 8
  %145 = call ptr @RemoveEntryList(ptr noundef nonnull %144) #3
  %146 = load ptr, ptr %4, align 8, !tbaa !43
  call void @FreePool(ptr noundef %146) #3
  %147 = call zeroext i8 @IsListEmpty(ptr noundef nonnull %5) #3
  %.not117 = icmp eq i8 %147, 0
  br i1 %.not117, label %129, label %.critedge, !llvm.loop !53

._crit_edge159:                                   ; preds = %._crit_edge155
  %148 = icmp eq i8 %.2, 0
  br i1 %148, label %._crit_edge159.thread, label %.critedge

.critedge:                                        ; preds = %142, %._crit_edge159
  %149 = load i64, ptr %73, align 8, !tbaa !5
  %150 = icmp eq i64 %149, -9223372036854775802
  %. = select i1 %150, i64 -9223372036854775802, i64 0
  br label %.loopexit130

._crit_edge159.thread:                            ; preds = %._crit_edge155.thread, %._crit_edge159
  store i64 0, ptr %73, align 8, !tbaa !5
  br label %.loopexit130

.loopexit130:                                     ; preds = %.lr.ph136, %22, %24, %.lr.ph, %._crit_edge159.thread, %.critedge, %17, %12, %65
  %.096 = phi i64 [ -9223372036854775799, %65 ], [ -9223372036854775804, %12 ], [ -9223372036854775800, %17 ], [ -9223372036854775787, %._crit_edge159.thread ], [ %., %.critedge ], [ -9223372036854775806, %.lr.ph ], [ -9223372036854775806, %24 ], [ -9223372036854775806, %22 ], [ -9223372036854775806, %.lr.ph136 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret i64 %.096
}

declare zeroext i8 @NetIp6IsValidUnicast(ptr noundef) local_unnamed_addr #1

declare ptr @InitializeListHead(ptr noundef) local_unnamed_addr #1

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

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

declare zeroext i8 @Ip6IsOneOfSetAddress(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @Ip6FindPrefixListEntry(ptr noundef, i8 noundef zeroext, i8 noundef zeroext, ptr noundef) local_unnamed_addr #1

declare void @Ip6DestroyPrefixListEntry(ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

declare i64 @Ip6SetAddress(ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare zeroext i8 @IsListEmpty(ptr noundef) local_unnamed_addr #1

declare ptr @RemoveEntryList(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, !10, i64 16}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16, !8, i64 24, !11, i64 32, !8, i64 72, !10, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long long", !8, i64 0}
!11 = !{!"", !12, i64 0, !12, i64 16, !10, i64 32}
!12 = !{!"_LIST_ENTRY", !7, i64 0, !7, i64 8}
!13 = !{!14, !15, i64 176}
!14 = !{!"_IP6_CONFIG_INSTANCE", !15, i64 0, !8, i64 4, !12, i64 8, !16, i64 24, !17, i64 32, !18, i64 168, !15, i64 176, !19, i64 180, !8, i64 184, !11, i64 800, !11, i64 840, !20, i64 880, !7, i64 912, !7, i64 920, !7, i64 928, !7, i64 936, !8, i64 944, !15, i64 948, !7, i64 952, !15, i64 960, !7, i64 968, !15, i64 976, !21, i64 984, !23, i64 1040}
!15 = !{!"int", !8, i64 0}
!16 = !{!"short", !8, i64 0}
!17 = !{!"", !8, i64 0, !8, i64 64, !15, i64 68, !18, i64 72, !15, i64 104, !7, i64 112, !15, i64 120, !7, i64 128}
!18 = !{!"", !8, i64 0}
!19 = !{!"", !15, i64 0}
!20 = !{!"_EFI_IP6_CONFIG_PROTOCOL", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24}
!21 = !{!"_IP6_FORM_CALLBACK_INFO", !15, i64 0, !7, i64 8, !22, i64 16, !7, i64 40, !7, i64 48}
!22 = !{!"_EFI_HII_CONFIG_ACCESS_PROTOCOL", !7, i64 0, !7, i64 8, !7, i64 16}
!23 = !{!"", !15, i64 0, !19, i64 4, !18, i64 8, !12, i64 16, !15, i64 32, !12, i64 40, !15, i64 56, !12, i64 64, !15, i64 80}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !8, i64 17}
!27 = !{!"", !18, i64 0, !8, i64 16, !8, i64 17}
!28 = distinct !{!28, !25}
!29 = !{!30, !15, i64 0}
!30 = !{!"_IP6_SERVICE", !15, i64 0, !31, i64 8, !10, i64 24, !10, i64 32, !12, i64 40, !12, i64 56, !7, i64 72, !7, i64 80, !32, i64 88, !18, i64 136, !34, i64 2168, !18, i64 2192, !8, i64 2208, !8, i64 2209, !8, i64 2210, !8, i64 2211, !8, i64 2212, !15, i64 2216, !15, i64 2220, !15, i64 2224, !15, i64 2228, !12, i64 2232, !12, i64 2248, !12, i64 2264, !12, i64 2280, !15, i64 2296, !8, i64 2300, !7, i64 2304, !8, i64 2312, !8, i64 2313, !15, i64 2316, !7, i64 2320, !7, i64 2328, !7, i64 2336, !7, i64 2344, !35, i64 2352, !36, i64 2372, !7, i64 3032, !7, i64 3040, !14, i64 3048, !7, i64 4176, !15, i64 4184, !15, i64 4188}
!31 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !7, i64 0, !7, i64 8}
!32 = !{!"", !15, i64 0, !7, i64 8, !7, i64 16, !33, i64 24}
!33 = !{!"", !7, i64 0, !10, i64 8, !8, i64 16}
!34 = !{!"", !10, i64 0, !12, i64 8}
!35 = !{!"", !15, i64 0, !15, i64 4, !16, i64 8, !8, i64 10, !8, i64 11, !8, i64 12, !8, i64 13, !8, i64 14, !8, i64 15, !8, i64 16}
!36 = !{!"", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !8, i64 40, !18, i64 552, !18, i64 584, !18, i64 616, !8, i64 648, !8, i64 649, !8, i64 650, !8, i64 651, !8, i64 652}
!37 = !{!15, !15, i64 0}
!38 = !{!12, !7, i64 0}
!39 = !{!40, !15, i64 0}
!40 = !{!"_IP6_INTERFACE", !15, i64 0, !12, i64 8, !10, i64 24, !12, i64 32, !15, i64 48, !8, i64 52, !7, i64 56, !7, i64 64, !7, i64 72, !12, i64 80, !12, i64 96, !15, i64 112, !12, i64 120, !12, i64 136, !12, i64 152, !8, i64 168}
!41 = !{!42, !15, i64 0}
!42 = !{!"_IP6_ADDRESS_INFO", !15, i64 0, !12, i64 8, !18, i64 24, !8, i64 40, !8, i64 41, !15, i64 44, !15, i64 48}
!43 = !{!7, !7, i64 0}
!44 = distinct !{!44, !25}
!45 = distinct !{!45, !25}
!46 = !{!8, !8, i64 0}
!47 = !{!6, !10, i64 80}
!48 = !{!42, !8, i64 41}
!49 = !{!27, !8, i64 16}
!50 = !{!42, !8, i64 40}
!51 = !{!30, !7, i64 72}
!52 = distinct !{!52, !25}
!53 = distinct !{!53, !25}


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