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

; 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.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._LIST_ENTRY = type { ptr, ptr }
%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.EFI_MAC_ADDRESS = type { [32 x i8] }
%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_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._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_DELAY_JOIN_LIST = type { %struct._LIST_ENTRY, i32, ptr, ptr, ptr, ptr }
%struct._IP6_DAD_ENTRY = type { i32, %struct._LIST_ENTRY, i32, i32, i32, i32, ptr, %struct.EFI_IPv6_ADDRESS, ptr, ptr }
%struct._IP6_ADDRESS_INFO = type { i32, %struct._LIST_ENTRY, %struct.EFI_IPv6_ADDRESS, i8, i8, i32, i32 }
%struct._IP6_NEIGHBOR_ENTRY = type { %struct._LIST_ENTRY, %struct._LIST_ENTRY, i64, i8, i8, i8, %struct.EFI_IPv6_ADDRESS, %struct.EFI_MAC_ADDRESS, i32, i32, i32, %struct._LIST_ENTRY, ptr, ptr }

@.str = external hidden unnamed_addr constant [127 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [107 x i8], align 1

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

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

declare zeroext i8 @DebugAssertEnabled() #1

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

declare void @FreePool(ptr noundef) #1

declare ptr @RemoveEntryList(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @Ip6InitDADProcess(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @Ip6CreateSNMulticastAddr(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @Ip6SendRouterSolicit(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @Ip6SendNeighborSolicit(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

19:                                               ; preds = %2
  %20 = call zeroext i8 @DebugAssertEnabled()
  %21 = icmp ne i8 %20, 0
  br i1 %21, label %22, label %32

22:                                               ; preds = %19
  %23 = load ptr, ptr %15, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %30

25:                                               ; preds = %22
  %26 = load ptr, ptr %15, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct._IP6_SERVICE, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !9
  %29 = icmp eq i32 %28, 1396068425
  br i1 %29, label %31, label %30

30:                                               ; preds = %25, %22
  call void @DebugAssert(ptr noundef @.str, i64 noundef 2781, ptr noundef @.str.6)
  br label %31

31:                                               ; preds = %30, %25
  br label %32

32:                                               ; preds = %31, %19
  br label %33

33:                                               ; preds = %32
  br label %34

34:                                               ; preds = %33
  %35 = call ptr @ZeroMem(ptr noundef %10, i64 noundef 16)
  %36 = load ptr, ptr %15, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct._IP6_SERVICE, ptr %36, i32 0, i32 39
  %38 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %37, i32 0, i32 6
  %39 = load i32, ptr %38, align 8, !tbaa !30
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %41, label %77

41:                                               ; preds = %34
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._IP6_SERVICE, ptr %42, i32 0, i32 28
  %44 = load i8, ptr %43, align 8, !tbaa !31
  %45 = icmp ne i8 %44, 0
  br i1 %45, label %77, label %46

46:                                               ; preds = %41
  %47 = load ptr, ptr %15, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct._IP6_SERVICE, ptr %47, i32 0, i32 29
  %49 = load i8, ptr %48, align 1, !tbaa !32
  %50 = zext i8 %49 to i32
  %51 = icmp sgt i32 %50, 0
  br i1 %51, label %52, label %77

52:                                               ; preds = %46
  %53 = load ptr, ptr %15, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._IP6_SERVICE, ptr %53, i32 0, i32 30
  %55 = load i32, ptr %54, align 4, !tbaa !33
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %63, label %57

57:                                               ; preds = %52
  %58 = load ptr, ptr %15, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._IP6_SERVICE, ptr %58, i32 0, i32 30
  %60 = load i32, ptr %59, align 4, !tbaa !33
  %61 = add i32 %60, -1
  store i32 %61, ptr %59, align 4, !tbaa !33
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %63, label %76

63:                                               ; preds = %57, %52
  %64 = load ptr, ptr %15, align 8, !tbaa !5
  %65 = call i64 @Ip6SendRouterSolicit(ptr noundef %64, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null)
  store i64 %65, ptr %12, align 8, !tbaa !34
  %66 = load i64, ptr %12, align 8, !tbaa !34
  %67 = icmp slt i64 %66, 0
  br i1 %67, label %75, label %68

68:                                               ; preds = %63
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct._IP6_SERVICE, ptr %69, i32 0, i32 29
  %71 = load i8, ptr %70, align 1, !tbaa !32
  %72 = add i8 %71, -1
  store i8 %72, ptr %70, align 1, !tbaa !32
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct._IP6_SERVICE, ptr %73, i32 0, i32 30
  store i32 40, ptr %74, align 4, !tbaa !33
  br label %75

75:                                               ; preds = %68, %63
  br label %76

76:                                               ; preds = %75, %57
  br label %77

77:                                               ; preds = %76, %46, %41, %34
  %78 = load ptr, ptr %15, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._IP6_SERVICE, ptr %78, i32 0, i32 5
  %80 = getelementptr inbounds %struct._LIST_ENTRY, ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !35
  store ptr %81, ptr %5, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %230, %77
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = load ptr, ptr %15, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct._IP6_SERVICE, ptr %84, i32 0, i32 5
  %86 = icmp ne ptr %83, %85
  br i1 %86, label %87, label %234

87:                                               ; preds = %82
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = ptrtoint ptr %88 to i64
  %90 = sub i64 %89, ptrtoint (ptr getelementptr inbounds (%struct._IP6_INTERFACE, ptr null, i32 0, i32 1) to i64)
  %91 = inttoptr i64 %90 to ptr
  store ptr %91, ptr %8, align 8, !tbaa !5
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._IP6_INTERFACE, ptr %92, i32 0, i32 13
  %94 = getelementptr inbounds %struct._LIST_ENTRY, ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !36
  store ptr %95, ptr %7, align 8, !tbaa !5
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct._LIST_ENTRY, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !38
  store ptr %98, ptr %6, align 8, !tbaa !5
  br label %99

99:                                               ; preds = %138, %87
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct._IP6_INTERFACE, ptr %101, i32 0, i32 13
  %103 = icmp ne ptr %100, %102
  br i1 %103, label %104, label %143

104:                                              ; preds = %99
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = ptrtoint ptr %105 to i64
  %107 = sub i64 %106, 0
  %108 = inttoptr i64 %107 to ptr
  store ptr %108, ptr %9, align 8, !tbaa !5
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct._IP6_DELAY_JOIN_LIST, ptr %109, i32 0, i32 1
  %111 = load i32, ptr %110, align 8, !tbaa !39
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %119, label %113

113:                                              ; preds = %104
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct._IP6_DELAY_JOIN_LIST, ptr %114, i32 0, i32 1
  %116 = load i32, ptr %115, align 8, !tbaa !39
  %117 = add i32 %116, -1
  store i32 %117, ptr %115, align 8, !tbaa !39
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %119, label %137

119:                                              ; preds = %113, %104
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._IP6_DELAY_JOIN_LIST, ptr %120, i32 0, i32 2
  %122 = load ptr, ptr %121, align 8, !tbaa !41
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._IP6_DELAY_JOIN_LIST, ptr %123, i32 0, i32 3
  %125 = load ptr, ptr %124, align 8, !tbaa !42
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct._IP6_DELAY_JOIN_LIST, ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !43
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct._IP6_DELAY_JOIN_LIST, ptr %129, i32 0, i32 5
  %131 = load ptr, ptr %130, align 8, !tbaa !44
  %132 = call i64 @Ip6InitDADProcess(ptr noundef %122, ptr noundef %125, ptr noundef %128, ptr noundef %131)
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct._IP6_DELAY_JOIN_LIST, ptr %133, i32 0, i32 0
  %135 = call ptr @RemoveEntryList(ptr noundef %134)
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  call void @FreePool(ptr noundef %136)
  br label %137

137:                                              ; preds = %119, %113
  br label %138

138:                                              ; preds = %137
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %139, ptr %7, align 8, !tbaa !5
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct._LIST_ENTRY, ptr %140, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !38
  store ptr %142, ptr %6, align 8, !tbaa !5
  br label %99, !llvm.loop !45

143:                                              ; preds = %99
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct._IP6_INTERFACE, ptr %144, i32 0, i32 12
  %146 = getelementptr inbounds %struct._LIST_ENTRY, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !47
  store ptr %147, ptr %7, align 8, !tbaa !5
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct._LIST_ENTRY, ptr %148, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8, !tbaa !38
  store ptr %150, ptr %6, align 8, !tbaa !5
  br label %151

151:                                              ; preds = %224, %143
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct._IP6_INTERFACE, ptr %153, i32 0, i32 12
  %155 = icmp ne ptr %152, %154
  br i1 %155, label %156, label %229

156:                                              ; preds = %151
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = ptrtoint ptr %157 to i64
  %159 = sub i64 %158, ptrtoint (ptr getelementptr inbounds (%struct._IP6_DAD_ENTRY, ptr null, i32 0, i32 1) to i64)
  %160 = inttoptr i64 %159 to ptr
  store ptr %160, ptr %11, align 8, !tbaa !5
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct._IP6_DAD_ENTRY, ptr %161, i32 0, i32 5
  %163 = load i32, ptr %162, align 4, !tbaa !48
  %164 = icmp eq i32 %163, 0
  br i1 %164, label %171, label %165

165:                                              ; preds = %156
  %166 = load ptr, ptr %11, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct._IP6_DAD_ENTRY, ptr %166, i32 0, i32 5
  %168 = load i32, ptr %167, align 4, !tbaa !48
  %169 = add i32 %168, -1
  store i32 %169, ptr %167, align 4, !tbaa !48
  %170 = icmp eq i32 %169, 0
  br i1 %170, label %171, label %223

171:                                              ; preds = %165, %156
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct._IP6_DAD_ENTRY, ptr %172, i32 0, i32 3
  %174 = load i32, ptr %173, align 4, !tbaa !50
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct._IP6_DAD_ENTRY, ptr %175, i32 0, i32 2
  %177 = load i32, ptr %176, align 8, !tbaa !51
  %178 = icmp ult i32 %174, %177
  br i1 %178, label %179, label %204

179:                                              ; preds = %171
  %180 = load ptr, ptr %15, align 8, !tbaa !5
  %181 = load ptr, ptr %11, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct._IP6_DAD_ENTRY, ptr %181, i32 0, i32 7
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct._IP6_DAD_ENTRY, ptr %183, i32 0, i32 6
  %185 = load ptr, ptr %184, align 8, !tbaa !52
  %186 = getelementptr inbounds %struct._IP6_ADDRESS_INFO, ptr %185, i32 0, i32 2
  %187 = call i64 @Ip6SendNeighborSolicit(ptr noundef %180, ptr noundef null, ptr noundef %182, ptr noundef %186, ptr noundef null)
  store i64 %187, ptr %12, align 8, !tbaa !34
  %188 = load i64, ptr %12, align 8, !tbaa !34
  %189 = icmp slt i64 %188, 0
  br i1 %189, label %190, label %191

190:                                              ; preds = %179
  store i32 1, ptr %17, align 4
  br label %505

191:                                              ; preds = %179
  %192 = load ptr, ptr %11, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct._IP6_DAD_ENTRY, ptr %192, i32 0, i32 3
  %194 = load i32, ptr %193, align 4, !tbaa !50
  %195 = add i32 %194, 1
  store i32 %195, ptr %193, align 4, !tbaa !50
  %196 = load ptr, ptr %15, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct._IP6_SERVICE, ptr %196, i32 0, i32 20
  %198 = load i32, ptr %197, align 4, !tbaa !53
  %199 = add i32 %198, 100
  %200 = sub i32 %199, 1
  %201 = udiv i32 %200, 100
  %202 = load ptr, ptr %11, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct._IP6_DAD_ENTRY, ptr %202, i32 0, i32 5
  store i32 %201, ptr %203, align 4, !tbaa !48
  br label %222

204:                                              ; preds = %171
  store i8 0, ptr %16, align 1, !tbaa !54
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct._IP6_DAD_ENTRY, ptr %205, i32 0, i32 4
  %207 = load i32, ptr %206, align 8, !tbaa !55
  %208 = icmp eq i32 %207, 0
  br i1 %208, label %217, label %209

209:                                              ; preds = %204
  %210 = load ptr, ptr %11, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct._IP6_DAD_ENTRY, ptr %210, i32 0, i32 3
  %212 = load i32, ptr %211, align 4, !tbaa !50
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct._IP6_DAD_ENTRY, ptr %213, i32 0, i32 4
  %215 = load i32, ptr %214, align 8, !tbaa !55
  %216 = icmp eq i32 %212, %215
  br i1 %216, label %217, label %218

217:                                              ; preds = %209, %204
  store i8 1, ptr %16, align 1, !tbaa !54
  br label %218

218:                                              ; preds = %217, %209
  %219 = load i8, ptr %16, align 1, !tbaa !54
  %220 = load ptr, ptr %8, align 8, !tbaa !5
  %221 = load ptr, ptr %11, align 8, !tbaa !5
  call void @Ip6OnDADFinished(i8 noundef zeroext %219, ptr noundef %220, ptr noundef %221)
  br label %222

222:                                              ; preds = %218, %191
  br label %223

223:                                              ; preds = %222, %165
  br label %224

224:                                              ; preds = %223
  %225 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %225, ptr %7, align 8, !tbaa !5
  %226 = load ptr, ptr %7, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct._LIST_ENTRY, ptr %226, i32 0, i32 0
  %228 = load ptr, ptr %227, align 8, !tbaa !38
  store ptr %228, ptr %6, align 8, !tbaa !5
  br label %151, !llvm.loop !56

229:                                              ; preds = %151
  br label %230

230:                                              ; preds = %229
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct._LIST_ENTRY, ptr %231, i32 0, i32 0
  %233 = load ptr, ptr %232, align 8, !tbaa !38
  store ptr %233, ptr %5, align 8, !tbaa !5
  br label %82, !llvm.loop !57

234:                                              ; preds = %82
  %235 = load ptr, ptr %15, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct._IP6_SERVICE, ptr %235, i32 0, i32 21
  %237 = getelementptr inbounds %struct._LIST_ENTRY, ptr %236, i32 0, i32 0
  %238 = load ptr, ptr %237, align 8, !tbaa !58
  store ptr %238, ptr %5, align 8, !tbaa !5
  %239 = load ptr, ptr %5, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct._LIST_ENTRY, ptr %239, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8, !tbaa !38
  store ptr %241, ptr %6, align 8, !tbaa !5
  br label %242

242:                                              ; preds = %499, %234
  %243 = load ptr, ptr %5, align 8, !tbaa !5
  %244 = load ptr, ptr %15, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct._IP6_SERVICE, ptr %244, i32 0, i32 21
  %246 = icmp ne ptr %243, %245
  br i1 %246, label %247, label %504

247:                                              ; preds = %242
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = ptrtoint ptr %248 to i64
  %250 = sub i64 %249, 0
  %251 = inttoptr i64 %250 to ptr
  store ptr %251, ptr %13, align 8, !tbaa !5
  %252 = load ptr, ptr %13, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %252, i32 0, i32 8
  %254 = load i32, ptr %253, align 4, !tbaa !59
  switch i32 %254, label %497 [
    i32 0, label %255
    i32 1, label %330
    i32 3, label %372
    i32 4, label %422
  ]

255:                                              ; preds = %247
  %256 = load ptr, ptr %13, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %256, i32 0, i32 10
  %258 = load i32, ptr %257, align 4, !tbaa !61
  %259 = icmp ugt i32 %258, 0
  br i1 %259, label %260, label %265

260:                                              ; preds = %255
  %261 = load ptr, ptr %13, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %261, i32 0, i32 10
  %263 = load i32, ptr %262, align 4, !tbaa !61
  %264 = add i32 %263, -1
  store i32 %264, ptr %262, align 4, !tbaa !61
  br label %265

265:                                              ; preds = %260, %255
  %266 = load ptr, ptr %13, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %266, i32 0, i32 10
  %268 = load i32, ptr %267, align 4, !tbaa !61
  %269 = icmp eq i32 %268, 0
  br i1 %269, label %270, label %316

270:                                              ; preds = %265
  %271 = load ptr, ptr %13, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %271, i32 0, i32 9
  %273 = load i32, ptr %272, align 8, !tbaa !62
  %274 = icmp ugt i32 %273, 1
  br i1 %274, label %275, label %297

275:                                              ; preds = %270
  %276 = load ptr, ptr %13, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %276, i32 0, i32 6
  call void @Ip6CreateSNMulticastAddr(ptr noundef %277, ptr noundef %14)
  %278 = load ptr, ptr %15, align 8, !tbaa !5
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %279, i32 0, i32 6
  %281 = call i64 @Ip6SelectSourceAddress(ptr noundef %278, ptr noundef %280, ptr noundef %10)
  store i64 %281, ptr %12, align 8, !tbaa !34
  %282 = load i64, ptr %12, align 8, !tbaa !34
  %283 = icmp slt i64 %282, 0
  br i1 %283, label %284, label %285

284:                                              ; preds = %275
  store i32 1, ptr %17, align 4
  br label %505

285:                                              ; preds = %275
  %286 = load ptr, ptr %15, align 8, !tbaa !5
  %287 = load ptr, ptr %13, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %287, i32 0, i32 6
  %289 = load ptr, ptr %15, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct._IP6_SERVICE, ptr %289, i32 0, i32 36
  %291 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_MODE, ptr %290, i32 0, i32 11
  %292 = call i64 @Ip6SendNeighborSolicit(ptr noundef %286, ptr noundef %10, ptr noundef %14, ptr noundef %288, ptr noundef %291)
  store i64 %292, ptr %12, align 8, !tbaa !34
  %293 = load i64, ptr %12, align 8, !tbaa !34
  %294 = icmp slt i64 %293, 0
  br i1 %294, label %295, label %296

295:                                              ; preds = %285
  store i32 1, ptr %17, align 4
  br label %505

296:                                              ; preds = %285
  br label %297

297:                                              ; preds = %296, %270
  %298 = load ptr, ptr %13, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %298, i32 0, i32 9
  %300 = load i32, ptr %299, align 8, !tbaa !62
  %301 = icmp ugt i32 %300, 0
  br i1 %301, label %302, label %315

302:                                              ; preds = %297
  %303 = load ptr, ptr %13, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %303, i32 0, i32 9
  %305 = load i32, ptr %304, align 8, !tbaa !62
  %306 = add i32 %305, -1
  store i32 %306, ptr %304, align 8, !tbaa !62
  %307 = load ptr, ptr %15, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct._IP6_SERVICE, ptr %307, i32 0, i32 20
  %309 = load i32, ptr %308, align 4, !tbaa !53
  %310 = add i32 %309, 100
  %311 = sub i32 %310, 1
  %312 = udiv i32 %311, 100
  %313 = load ptr, ptr %13, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %313, i32 0, i32 10
  store i32 %312, ptr %314, align 4, !tbaa !61
  br label %315

315:                                              ; preds = %302, %297
  br label %316

316:                                              ; preds = %315, %265
  %317 = load ptr, ptr %13, align 8, !tbaa !5
  %318 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %317, i32 0, i32 9
  %319 = load i32, ptr %318, align 8, !tbaa !62
  %320 = icmp eq i32 %319, 0
  br i1 %320, label %321, label %329

321:                                              ; preds = %316
  %322 = load ptr, ptr %15, align 8, !tbaa !5
  %323 = load ptr, ptr %13, align 8, !tbaa !5
  %324 = call i64 @Ip6FreeNeighborEntry(ptr noundef %322, ptr noundef %323, i8 noundef zeroext 1, i8 noundef zeroext 1, i64 noundef -9223372036854775786, ptr noundef null, ptr noundef null)
  store i64 %324, ptr %12, align 8, !tbaa !34
  %325 = load i64, ptr %12, align 8, !tbaa !34
  %326 = icmp slt i64 %325, 0
  br i1 %326, label %327, label %328

327:                                              ; preds = %321
  store i32 1, ptr %17, align 4
  br label %505

328:                                              ; preds = %321
  br label %329

329:                                              ; preds = %328, %316
  br label %498

330:                                              ; preds = %247
  %331 = load ptr, ptr %13, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %331, i32 0, i32 5
  %333 = load i8, ptr %332, align 2, !tbaa !63
  %334 = icmp ne i8 %333, 0
  br i1 %334, label %341, label %335

335:                                              ; preds = %330
  %336 = load ptr, ptr %13, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %336, i32 0, i32 10
  %338 = load i32, ptr %337, align 4, !tbaa !61
  %339 = icmp eq i32 %338, -1
  br i1 %339, label %340, label %341

340:                                              ; preds = %335
  br label %498

341:                                              ; preds = %335, %330
  %342 = load ptr, ptr %13, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %342, i32 0, i32 10
  %344 = load i32, ptr %343, align 4, !tbaa !61
  %345 = icmp eq i32 %344, 0
  br i1 %345, label %352, label %346

346:                                              ; preds = %341
  %347 = load ptr, ptr %13, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %347, i32 0, i32 10
  %349 = load i32, ptr %348, align 4, !tbaa !61
  %350 = add i32 %349, -1
  store i32 %350, ptr %348, align 4, !tbaa !61
  %351 = icmp eq i32 %350, 0
  br i1 %351, label %352, label %371

352:                                              ; preds = %346, %341
  %353 = load ptr, ptr %13, align 8, !tbaa !5
  %354 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %353, i32 0, i32 5
  %355 = load i8, ptr %354, align 2, !tbaa !63
  %356 = icmp ne i8 %355, 0
  br i1 %356, label %357, label %365

357:                                              ; preds = %352
  %358 = load ptr, ptr %15, align 8, !tbaa !5
  %359 = load ptr, ptr %13, align 8, !tbaa !5
  %360 = call i64 @Ip6FreeNeighborEntry(ptr noundef %358, ptr noundef %359, i8 noundef zeroext 0, i8 noundef zeroext 1, i64 noundef -9223372036854775790, ptr noundef null, ptr noundef null)
  store i64 %360, ptr %12, align 8, !tbaa !34
  %361 = load i64, ptr %12, align 8, !tbaa !34
  %362 = icmp slt i64 %361, 0
  br i1 %362, label %363, label %364

363:                                              ; preds = %357
  store i32 1, ptr %17, align 4
  br label %505

364:                                              ; preds = %357
  br label %370

365:                                              ; preds = %352
  %366 = load ptr, ptr %13, align 8, !tbaa !5
  %367 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %366, i32 0, i32 8
  store i32 2, ptr %367, align 4, !tbaa !59
  %368 = load ptr, ptr %13, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %368, i32 0, i32 10
  store i32 -1, ptr %369, align 4, !tbaa !61
  br label %370

370:                                              ; preds = %365, %364
  br label %371

371:                                              ; preds = %370, %346
  br label %498

372:                                              ; preds = %247
  %373 = load ptr, ptr %13, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %373, i32 0, i32 10
  %375 = load i32, ptr %374, align 4, !tbaa !61
  %376 = icmp eq i32 %375, 0
  br i1 %376, label %383, label %377

377:                                              ; preds = %372
  %378 = load ptr, ptr %13, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %378, i32 0, i32 10
  %380 = load i32, ptr %379, align 4, !tbaa !61
  %381 = add i32 %380, -1
  store i32 %381, ptr %379, align 4, !tbaa !61
  %382 = icmp eq i32 %381, 0
  br i1 %382, label %383, label %421

383:                                              ; preds = %377, %372
  %384 = load ptr, ptr %13, align 8, !tbaa !5
  %385 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %384, i32 0, i32 8
  store i32 4, ptr %385, align 4, !tbaa !59
  %386 = load ptr, ptr %15, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct._IP6_SERVICE, ptr %386, i32 0, i32 20
  %388 = load i32, ptr %387, align 4, !tbaa !53
  %389 = add i32 %388, 100
  %390 = sub i32 %389, 1
  %391 = udiv i32 %390, 100
  %392 = load ptr, ptr %13, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %392, i32 0, i32 10
  store i32 %391, ptr %393, align 4, !tbaa !61
  %394 = load ptr, ptr %13, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %394, i32 0, i32 9
  store i32 4, ptr %395, align 8, !tbaa !62
  %396 = load ptr, ptr %15, align 8, !tbaa !5
  %397 = load ptr, ptr %13, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %397, i32 0, i32 6
  %399 = call i64 @Ip6SelectSourceAddress(ptr noundef %396, ptr noundef %398, ptr noundef %10)
  store i64 %399, ptr %12, align 8, !tbaa !34
  %400 = load i64, ptr %12, align 8, !tbaa !34
  %401 = icmp slt i64 %400, 0
  br i1 %401, label %402, label %403

402:                                              ; preds = %383
  store i32 1, ptr %17, align 4
  br label %505

403:                                              ; preds = %383
  %404 = load ptr, ptr %15, align 8, !tbaa !5
  %405 = load ptr, ptr %13, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %405, i32 0, i32 6
  %407 = load ptr, ptr %13, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %407, i32 0, i32 6
  %409 = load ptr, ptr %15, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct._IP6_SERVICE, ptr %409, i32 0, i32 36
  %411 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_MODE, ptr %410, i32 0, i32 11
  %412 = call i64 @Ip6SendNeighborSolicit(ptr noundef %404, ptr noundef %10, ptr noundef %406, ptr noundef %408, ptr noundef %411)
  store i64 %412, ptr %12, align 8, !tbaa !34
  %413 = load i64, ptr %12, align 8, !tbaa !34
  %414 = icmp slt i64 %413, 0
  br i1 %414, label %415, label %416

415:                                              ; preds = %403
  store i32 1, ptr %17, align 4
  br label %505

416:                                              ; preds = %403
  %417 = load ptr, ptr %13, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %417, i32 0, i32 9
  %419 = load i32, ptr %418, align 8, !tbaa !62
  %420 = add i32 %419, -1
  store i32 %420, ptr %418, align 8, !tbaa !62
  br label %421

421:                                              ; preds = %416, %377
  br label %498

422:                                              ; preds = %247
  %423 = load ptr, ptr %13, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %423, i32 0, i32 10
  %425 = load i32, ptr %424, align 4, !tbaa !61
  %426 = icmp ugt i32 %425, 0
  br i1 %426, label %427, label %432

427:                                              ; preds = %422
  %428 = load ptr, ptr %13, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %428, i32 0, i32 10
  %430 = load i32, ptr %429, align 4, !tbaa !61
  %431 = add i32 %430, -1
  store i32 %431, ptr %429, align 4, !tbaa !61
  br label %432

432:                                              ; preds = %427, %422
  %433 = load ptr, ptr %13, align 8, !tbaa !5
  %434 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %433, i32 0, i32 10
  %435 = load i32, ptr %434, align 4, !tbaa !61
  %436 = icmp eq i32 %435, 0
  br i1 %436, label %437, label %483

437:                                              ; preds = %432
  %438 = load ptr, ptr %13, align 8, !tbaa !5
  %439 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %438, i32 0, i32 9
  %440 = load i32, ptr %439, align 8, !tbaa !62
  %441 = icmp ugt i32 %440, 1
  br i1 %441, label %442, label %464

442:                                              ; preds = %437
  %443 = load ptr, ptr %15, align 8, !tbaa !5
  %444 = load ptr, ptr %13, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %444, i32 0, i32 6
  %446 = call i64 @Ip6SelectSourceAddress(ptr noundef %443, ptr noundef %445, ptr noundef %10)
  store i64 %446, ptr %12, align 8, !tbaa !34
  %447 = load i64, ptr %12, align 8, !tbaa !34
  %448 = icmp slt i64 %447, 0
  br i1 %448, label %449, label %450

449:                                              ; preds = %442
  store i32 1, ptr %17, align 4
  br label %505

450:                                              ; preds = %442
  %451 = load ptr, ptr %15, align 8, !tbaa !5
  %452 = load ptr, ptr %13, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %452, i32 0, i32 6
  %454 = load ptr, ptr %13, align 8, !tbaa !5
  %455 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %454, i32 0, i32 6
  %456 = load ptr, ptr %15, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct._IP6_SERVICE, ptr %456, i32 0, i32 36
  %458 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_MODE, ptr %457, i32 0, i32 11
  %459 = call i64 @Ip6SendNeighborSolicit(ptr noundef %451, ptr noundef %10, ptr noundef %453, ptr noundef %455, ptr noundef %458)
  store i64 %459, ptr %12, align 8, !tbaa !34
  %460 = load i64, ptr %12, align 8, !tbaa !34
  %461 = icmp slt i64 %460, 0
  br i1 %461, label %462, label %463

462:                                              ; preds = %450
  store i32 1, ptr %17, align 4
  br label %505

463:                                              ; preds = %450
  br label %464

464:                                              ; preds = %463, %437
  %465 = load ptr, ptr %13, align 8, !tbaa !5
  %466 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %465, i32 0, i32 9
  %467 = load i32, ptr %466, align 8, !tbaa !62
  %468 = icmp ugt i32 %467, 0
  br i1 %468, label %469, label %482

469:                                              ; preds = %464
  %470 = load ptr, ptr %13, align 8, !tbaa !5
  %471 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %470, i32 0, i32 9
  %472 = load i32, ptr %471, align 8, !tbaa !62
  %473 = add i32 %472, -1
  store i32 %473, ptr %471, align 8, !tbaa !62
  %474 = load ptr, ptr %15, align 8, !tbaa !5
  %475 = getelementptr inbounds %struct._IP6_SERVICE, ptr %474, i32 0, i32 20
  %476 = load i32, ptr %475, align 4, !tbaa !53
  %477 = add i32 %476, 100
  %478 = sub i32 %477, 1
  %479 = udiv i32 %478, 100
  %480 = load ptr, ptr %13, align 8, !tbaa !5
  %481 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %480, i32 0, i32 10
  store i32 %479, ptr %481, align 4, !tbaa !61
  br label %482

482:                                              ; preds = %469, %464
  br label %483

483:                                              ; preds = %482, %432
  %484 = load ptr, ptr %13, align 8, !tbaa !5
  %485 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %484, i32 0, i32 9
  %486 = load i32, ptr %485, align 8, !tbaa !62
  %487 = icmp eq i32 %486, 0
  br i1 %487, label %488, label %496

488:                                              ; preds = %483
  %489 = load ptr, ptr %15, align 8, !tbaa !5
  %490 = load ptr, ptr %13, align 8, !tbaa !5
  %491 = call i64 @Ip6FreeNeighborEntry(ptr noundef %489, ptr noundef %490, i8 noundef zeroext 0, i8 noundef zeroext 1, i64 noundef -9223372036854775790, ptr noundef null, ptr noundef null)
  store i64 %491, ptr %12, align 8, !tbaa !34
  %492 = load i64, ptr %12, align 8, !tbaa !34
  %493 = icmp slt i64 %492, 0
  br i1 %493, label %494, label %495

494:                                              ; preds = %488
  store i32 1, ptr %17, align 4
  br label %505

495:                                              ; preds = %488
  br label %496

496:                                              ; preds = %495, %483
  br label %498

497:                                              ; preds = %247
  br label %498

498:                                              ; preds = %497, %496, %421, %371, %340, %329
  br label %499

499:                                              ; preds = %498
  %500 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %500, ptr %5, align 8, !tbaa !5
  %501 = load ptr, ptr %5, align 8, !tbaa !5
  %502 = getelementptr inbounds %struct._LIST_ENTRY, ptr %501, i32 0, i32 0
  %503 = load ptr, ptr %502, align 8, !tbaa !38
  store ptr %503, ptr %6, align 8, !tbaa !5
  br label %242, !llvm.loop !64

504:                                              ; preds = %242
  store i32 0, ptr %17, align 4
  br label %505

505:                                              ; preds = %504, %494, %462, %449, %415, %402, %363, %327, %295, %284, %190
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 16, 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 16, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  %506 = load i32, ptr %17, align 4
  switch i32 %506, label %508 [
    i32 0, label %507
    i32 1, label %507
  ]

507:                                              ; preds = %505, %505
  ret void

508:                                              ; preds = %505
  unreachable
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_IP6_SERVICE", !11, i64 0, !12, i64 8, !13, i64 24, !13, i64 32, !14, i64 40, !14, i64 56, !6, i64 72, !6, i64 80, !15, i64 88, !17, i64 136, !18, i64 2168, !17, i64 2192, !7, i64 2208, !7, i64 2209, !7, i64 2210, !7, i64 2211, !7, i64 2212, !11, i64 2216, !11, i64 2220, !11, i64 2224, !11, i64 2228, !14, i64 2232, !14, i64 2248, !14, i64 2264, !14, i64 2280, !11, i64 2296, !7, i64 2300, !6, i64 2304, !7, i64 2312, !7, i64 2313, !11, i64 2316, !6, i64 2320, !6, i64 2328, !6, i64 2336, !6, i64 2344, !19, i64 2352, !21, i64 2372, !6, i64 3032, !6, i64 3040, !22, i64 3048, !6, i64 4176, !11, i64 4184, !11, i64 4188}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!15 = !{!"", !11, i64 0, !6, i64 8, !6, i64 16, !16, i64 24}
!16 = !{!"", !6, i64 0, !13, i64 8, !7, i64 16}
!17 = !{!"", !7, i64 0}
!18 = !{!"", !13, i64 0, !14, i64 8}
!19 = !{!"", !11, i64 0, !11, i64 4, !20, i64 8, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16}
!20 = !{!"short", !7, i64 0}
!21 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !7, i64 40, !17, i64 552, !17, i64 584, !17, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!22 = !{!"_IP6_CONFIG_INSTANCE", !11, i64 0, !7, i64 4, !14, i64 8, !20, i64 24, !23, i64 32, !17, i64 168, !11, i64 176, !24, i64 180, !7, i64 184, !25, i64 800, !25, i64 840, !26, i64 880, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !7, i64 944, !11, i64 948, !6, i64 952, !11, i64 960, !6, i64 968, !11, i64 976, !27, i64 984, !29, i64 1040}
!23 = !{!"", !7, i64 0, !7, i64 64, !11, i64 68, !17, i64 72, !11, i64 104, !6, i64 112, !11, i64 120, !6, i64 128}
!24 = !{!"", !11, i64 0}
!25 = !{!"", !14, i64 0, !14, i64 16, !13, i64 32}
!26 = !{!"_EFI_IP6_CONFIG_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!27 = !{!"_IP6_FORM_CALLBACK_INFO", !11, i64 0, !6, i64 8, !28, i64 16, !6, i64 40, !6, i64 48}
!28 = !{!"_EFI_HII_CONFIG_ACCESS_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"", !11, i64 0, !24, i64 4, !17, i64 8, !14, i64 16, !11, i64 32, !14, i64 40, !11, i64 56, !14, i64 64, !11, i64 80}
!30 = !{!10, !11, i64 3224}
!31 = !{!10, !7, i64 2312}
!32 = !{!10, !7, i64 2313}
!33 = !{!10, !11, i64 2316}
!34 = !{!13, !13, i64 0}
!35 = !{!10, !6, i64 56}
!36 = !{!37, !6, i64 136}
!37 = !{!"_IP6_INTERFACE", !11, i64 0, !14, i64 8, !13, i64 24, !14, i64 32, !11, i64 48, !7, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !14, i64 80, !14, i64 96, !11, i64 112, !14, i64 120, !14, i64 136, !14, i64 152, !7, i64 168}
!38 = !{!14, !6, i64 0}
!39 = !{!40, !11, i64 16}
!40 = !{!"_IP6_DELAY_JOIN_LIST", !14, i64 0, !11, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!41 = !{!40, !6, i64 24}
!42 = !{!40, !6, i64 32}
!43 = !{!40, !6, i64 40}
!44 = !{!40, !6, i64 48}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.mustprogress"}
!47 = !{!37, !6, i64 120}
!48 = !{!49, !11, i64 36}
!49 = !{!"_IP6_DAD_ENTRY", !11, i64 0, !14, i64 8, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !6, i64 40, !17, i64 48, !6, i64 64, !6, i64 72}
!50 = !{!49, !11, i64 28}
!51 = !{!49, !11, i64 24}
!52 = !{!49, !6, i64 40}
!53 = !{!10, !11, i64 2228}
!54 = !{!7, !7, i64 0}
!55 = !{!49, !11, i64 32}
!56 = distinct !{!56, !46}
!57 = distinct !{!57, !46}
!58 = !{!10, !6, i64 2232}
!59 = !{!60, !11, i64 92}
!60 = !{!"_IP6_NEIGHBOR_ENTRY", !14, i64 0, !14, i64 16, !13, i64 32, !7, i64 40, !7, i64 41, !7, i64 42, !17, i64 43, !17, i64 59, !11, i64 92, !11, i64 96, !11, i64 100, !14, i64 104, !6, i64 120, !6, i64 128}
!61 = !{!60, !11, i64 100}
!62 = !{!60, !11, i64 96}
!63 = !{!60, !7, i64 42}
!64 = distinct !{!64, !46}


; 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.EFI_IPv6_ADDRESS = type { [16 x i8] }

@.str = external hidden unnamed_addr constant [127 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [107 x i8], align 1

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

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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

declare void @FreePool(ptr noundef) local_unnamed_addr #1

declare ptr @RemoveEntryList(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @Ip6FreeNeighborEntry(ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @Ip6InitDADProcess(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @Ip6CreateSNMulticastAddr(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i64 @Ip6SendRouterSolicit(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @Ip6SendNeighborSolicit(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @Ip6NdFasterTimerTicking(ptr nocapture noundef readnone %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.EFI_IPv6_ADDRESS, align 1
  %4 = alloca %struct.EFI_IPv6_ADDRESS, align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  %5 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not = icmp eq i8 %5, 0
  br i1 %.not, label %11, label %6

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

7:                                                ; preds = %6
  %8 = load i32, ptr %1, align 8, !tbaa !5
  %9 = icmp eq i32 %8, 1396068425
  br i1 %9, label %11, label %10

10:                                               ; preds = %7, %6
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 2781, ptr noundef nonnull @.str.6) #3
  br label %11

11:                                               ; preds = %7, %10, %2
  %12 = call ptr @ZeroMem(ptr noundef nonnull %3, i64 noundef 16) #3
  %13 = getelementptr inbounds i8, ptr %1, i64 3224
  %14 = load i32, ptr %13, align 8, !tbaa !29
  %15 = icmp eq i32 %14, 1
  br i1 %15, label %16, label %35

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %1, i64 2312
  %18 = load i8, ptr %17, align 8, !tbaa !30
  %.not146 = icmp eq i8 %18, 0
  br i1 %.not146, label %19, label %35

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %1, i64 2313
  %21 = load i8, ptr %20, align 1, !tbaa !31
  %.not147 = icmp eq i8 %21, 0
  br i1 %.not147, label %35, label %22

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %1, i64 2316
  %24 = load i32, ptr %23, align 4, !tbaa !32
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %29, label %26

26:                                               ; preds = %22
  %27 = add i32 %24, -1
  store i32 %27, ptr %23, align 4, !tbaa !32
  %28 = icmp eq i32 %27, 0
  br i1 %28, label %29, label %35

29:                                               ; preds = %26, %22
  %30 = call i64 @Ip6SendRouterSolicit(ptr noundef nonnull %1, ptr noundef null, ptr noundef null, ptr noundef null, ptr noundef null)
  %31 = icmp slt i64 %30, 0
  br i1 %31, label %35, label %32

32:                                               ; preds = %29
  %33 = load i8, ptr %20, align 1, !tbaa !31
  %34 = add i8 %33, -1
  store i8 %34, ptr %20, align 1, !tbaa !31
  store i32 40, ptr %23, align 4, !tbaa !32
  br label %35

35:                                               ; preds = %26, %32, %29, %19, %16, %11
  %36 = getelementptr inbounds i8, ptr %1, i64 56
  %.0128173 = load ptr, ptr %36, align 8, !tbaa !33
  %.not148174 = icmp eq ptr %.0128173, %36
  br i1 %.not148174, label %._crit_edge178, label %.lr.ph177

.lr.ph177:                                        ; preds = %35
  %37 = getelementptr inbounds i8, ptr %1, i64 2228
  br label %38

.loopexit161:                                     ; preds = %97, %._crit_edge
  %.0128 = load ptr, ptr %.0128175, align 8, !tbaa !33
  %.not148 = icmp eq ptr %.0128, %36
  br i1 %.not148, label %._crit_edge178, label %38, !llvm.loop !34

38:                                               ; preds = %.lr.ph177, %.loopexit161
  %.0128175 = phi ptr [ %.0128173, %.lr.ph177 ], [ %.0128, %.loopexit161 ]
  %39 = ptrtoint ptr %.0128175 to i64
  %40 = add i64 %39, -8
  %41 = inttoptr i64 %40 to ptr
  %42 = getelementptr inbounds i8, ptr %41, i64 136
  %43 = load ptr, ptr %42, align 8, !tbaa !36
  %.not156164 = icmp eq ptr %43, %42
  br i1 %.not156164, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %38, %61
  %.0131165 = phi ptr [ %.0129166, %61 ], [ %43, %38 ]
  %.0129166 = load ptr, ptr %.0131165, align 8, !tbaa !33
  %44 = getelementptr inbounds i8, ptr %.0131165, i64 16
  %45 = load i32, ptr %44, align 8, !tbaa !38
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %50, label %47

47:                                               ; preds = %.lr.ph
  %48 = add i32 %45, -1
  store i32 %48, ptr %44, align 8, !tbaa !38
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %61

50:                                               ; preds = %47, %.lr.ph
  %51 = getelementptr inbounds i8, ptr %.0131165, i64 24
  %52 = load ptr, ptr %51, align 8, !tbaa !40
  %53 = getelementptr inbounds i8, ptr %.0131165, i64 32
  %54 = load ptr, ptr %53, align 8, !tbaa !41
  %55 = getelementptr inbounds i8, ptr %.0131165, i64 40
  %56 = load ptr, ptr %55, align 8, !tbaa !42
  %57 = getelementptr inbounds i8, ptr %.0131165, i64 48
  %58 = load ptr, ptr %57, align 8, !tbaa !43
  %59 = call i64 @Ip6InitDADProcess(ptr noundef %52, ptr noundef %54, ptr noundef %56, ptr noundef %58)
  %60 = call ptr @RemoveEntryList(ptr noundef nonnull %.0131165) #3
  call void @FreePool(ptr noundef nonnull %.0131165) #3
  br label %61

61:                                               ; preds = %47, %50
  %.not156 = icmp eq ptr %.0129166, %42
  br i1 %.not156, label %._crit_edge, label %.lr.ph, !llvm.loop !44

._crit_edge:                                      ; preds = %61, %38
  %62 = getelementptr inbounds i8, ptr %41, i64 120
  %63 = load ptr, ptr %62, align 8, !tbaa !45
  %.not157168 = icmp eq ptr %63, %62
  br i1 %.not157168, label %.loopexit161, label %.lr.ph172

.lr.ph172:                                        ; preds = %._crit_edge, %97
  %.1132169 = phi ptr [ %.1130170, %97 ], [ %63, %._crit_edge ]
  %.1130170 = load ptr, ptr %.1132169, align 8, !tbaa !33
  %64 = ptrtoint ptr %.1132169 to i64
  %65 = add i64 %64, -8
  %66 = inttoptr i64 %65 to ptr
  %67 = getelementptr inbounds i8, ptr %66, i64 36
  %68 = load i32, ptr %67, align 4, !tbaa !46
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %73, label %70

70:                                               ; preds = %.lr.ph172
  %71 = add i32 %68, -1
  store i32 %71, ptr %67, align 4, !tbaa !46
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %97

73:                                               ; preds = %70, %.lr.ph172
  %74 = getelementptr inbounds i8, ptr %66, i64 28
  %75 = load i32, ptr %74, align 4, !tbaa !48
  %76 = getelementptr inbounds i8, ptr %66, i64 24
  %77 = load i32, ptr %76, align 8, !tbaa !49
  %78 = icmp ult i32 %75, %77
  br i1 %78, label %79, label %92

79:                                               ; preds = %73
  %80 = getelementptr inbounds i8, ptr %66, i64 48
  %81 = getelementptr inbounds i8, ptr %66, i64 40
  %82 = load ptr, ptr %81, align 8, !tbaa !50
  %83 = getelementptr inbounds i8, ptr %82, i64 24
  %84 = call i64 @Ip6SendNeighborSolicit(ptr noundef %1, ptr noundef null, ptr noundef nonnull %80, ptr noundef nonnull %83, ptr noundef null)
  %85 = icmp slt i64 %84, 0
  br i1 %85, label %.loopexit, label %86

86:                                               ; preds = %79
  %87 = load i32, ptr %74, align 4, !tbaa !48
  %88 = add i32 %87, 1
  store i32 %88, ptr %74, align 4, !tbaa !48
  %89 = load i32, ptr %37, align 4, !tbaa !51
  %90 = add i32 %89, 99
  %91 = udiv i32 %90, 100
  store i32 %91, ptr %67, align 4, !tbaa !46
  br label %97

92:                                               ; preds = %73
  %93 = getelementptr inbounds i8, ptr %66, i64 32
  %94 = load i32, ptr %93, align 8, !tbaa !52
  %95 = icmp eq i32 %94, 0
  %96 = icmp eq i32 %75, %94
  %or.cond = or i1 %95, %96
  %.0 = zext i1 %or.cond to i8
  call void @Ip6OnDADFinished(i8 noundef zeroext %.0, ptr noundef %41, ptr noundef nonnull %66)
  br label %97

97:                                               ; preds = %70, %92, %86
  %.not157 = icmp eq ptr %.1130170, %62
  br i1 %.not157, label %.loopexit161, label %.lr.ph172, !llvm.loop !53

._crit_edge178:                                   ; preds = %.loopexit161, %35
  %98 = getelementptr inbounds i8, ptr %1, i64 2232
  %99 = load ptr, ptr %98, align 8, !tbaa !54
  %100 = getelementptr inbounds i8, ptr %1, i64 2924
  %.not149180 = icmp eq ptr %99, %98
  br i1 %.not149180, label %.loopexit, label %.lr.ph184

.lr.ph184:                                        ; preds = %._crit_edge178
  %101 = getelementptr inbounds i8, ptr %1, i64 2228
  br label %.backedge

.backedge:                                        ; preds = %.backedge.backedge, %.lr.ph184
  %.1181 = phi ptr [ %99, %.lr.ph184 ], [ %.2182, %.backedge.backedge ]
  %.2182 = load ptr, ptr %.1181, align 8, !tbaa !33
  %102 = getelementptr inbounds i8, ptr %.1181, i64 92
  %103 = load i32, ptr %102, align 4, !tbaa !55
  switch i32 %103, label %197 [
    i32 0, label %104
    i32 1, label %132
    i32 3, label %148
    i32 4, label %169
  ]

104:                                              ; preds = %.backedge
  %105 = getelementptr inbounds i8, ptr %.1181, i64 100
  %106 = load i32, ptr %105, align 4, !tbaa !57
  %.not154 = icmp eq i32 %106, 0
  br i1 %.not154, label %.thread, label %107

107:                                              ; preds = %104
  %108 = add i32 %106, -1
  store i32 %108, ptr %105, align 4, !tbaa !57
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %.thread, label %._crit_edge199

._crit_edge199:                                   ; preds = %107
  %.phi.trans.insert200 = getelementptr inbounds i8, ptr %.1181, i64 96
  %.pre201 = load i32, ptr %.phi.trans.insert200, align 8, !tbaa !58
  br label %127

.thread:                                          ; preds = %104, %107
  %110 = getelementptr inbounds i8, ptr %.1181, i64 96
  %111 = load i32, ptr %110, align 8, !tbaa !58
  %112 = icmp ugt i32 %111, 1
  br i1 %112, label %113, label %120

113:                                              ; preds = %.thread
  %114 = getelementptr inbounds i8, ptr %.1181, i64 43
  call void @Ip6CreateSNMulticastAddr(ptr noundef nonnull %114, ptr noundef nonnull %4) #3
  %115 = call i64 @Ip6SelectSourceAddress(ptr noundef %1, ptr noundef nonnull %114, ptr noundef nonnull %3) #3
  %116 = icmp slt i64 %115, 0
  br i1 %116, label %.loopexit, label %117

117:                                              ; preds = %113
  %118 = call i64 @Ip6SendNeighborSolicit(ptr noundef %1, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %114, ptr noundef nonnull %100)
  %119 = icmp slt i64 %118, 0
  br i1 %119, label %.loopexit, label %thread-pre-split

thread-pre-split:                                 ; preds = %117
  %.pr = load i32, ptr %110, align 8, !tbaa !58
  br label %120

120:                                              ; preds = %thread-pre-split, %.thread
  %121 = phi i32 [ %.pr, %thread-pre-split ], [ %111, %.thread ]
  %.not155 = icmp eq i32 %121, 0
  br i1 %.not155, label %.thread202, label %122

122:                                              ; preds = %120
  %123 = add i32 %121, -1
  store i32 %123, ptr %110, align 8, !tbaa !58
  %124 = load i32, ptr %101, align 4, !tbaa !51
  %125 = add i32 %124, 99
  %126 = udiv i32 %125, 100
  store i32 %126, ptr %105, align 4, !tbaa !57
  br label %127

127:                                              ; preds = %._crit_edge199, %122
  %128 = phi i32 [ %.pre201, %._crit_edge199 ], [ %123, %122 ]
  %129 = icmp eq i32 %128, 0
  br i1 %129, label %.thread202, label %197

.thread202:                                       ; preds = %120, %127
  %130 = call i64 @Ip6FreeNeighborEntry(ptr noundef %1, ptr noundef nonnull %.1181, i8 noundef zeroext 1, i8 noundef zeroext 1, i64 noundef -9223372036854775786, ptr noundef null, ptr noundef null)
  %131 = icmp slt i64 %130, 0
  %.not149 = icmp eq ptr %.2182, %98
  %or.cond206 = select i1 %131, i1 true, i1 %.not149
  br i1 %or.cond206, label %.loopexit, label %.backedge.backedge

132:                                              ; preds = %.backedge
  %133 = getelementptr inbounds i8, ptr %.1181, i64 42
  %134 = load i8, ptr %133, align 2, !tbaa !59
  %.not152 = icmp eq i8 %134, 0
  %135 = getelementptr inbounds i8, ptr %.1181, i64 100
  %136 = load i32, ptr %135, align 4, !tbaa !57
  %137 = icmp eq i32 %136, -1
  %or.cond205 = select i1 %.not152, i1 %137, i1 false
  br i1 %or.cond205, label %197, label %._crit_edge196

._crit_edge196:                                   ; preds = %132
  %138 = getelementptr inbounds i8, ptr %.1181, i64 100
  %139 = icmp eq i32 %136, 0
  br i1 %139, label %143, label %140

140:                                              ; preds = %._crit_edge196
  %141 = add i32 %136, -1
  store i32 %141, ptr %138, align 4, !tbaa !57
  %142 = icmp eq i32 %141, 0
  br i1 %142, label %143, label %197

143:                                              ; preds = %140, %._crit_edge196
  br i1 %.not152, label %147, label %144

144:                                              ; preds = %143
  %145 = call i64 @Ip6FreeNeighborEntry(ptr noundef %1, ptr noundef nonnull %.1181, i8 noundef zeroext 0, i8 noundef zeroext 1, i64 noundef -9223372036854775790, ptr noundef null, ptr noundef null)
  %146 = icmp slt i64 %145, 0
  %.not149.old = icmp eq ptr %.2182, %98
  %or.cond207 = select i1 %146, i1 true, i1 %.not149.old
  br i1 %or.cond207, label %.loopexit, label %.backedge.backedge

147:                                              ; preds = %143
  store i32 2, ptr %102, align 4, !tbaa !55
  store i32 -1, ptr %138, align 4, !tbaa !57
  br label %197

148:                                              ; preds = %.backedge
  %149 = getelementptr inbounds i8, ptr %.1181, i64 100
  %150 = load i32, ptr %149, align 4, !tbaa !57
  %151 = icmp eq i32 %150, 0
  br i1 %151, label %155, label %152

152:                                              ; preds = %148
  %153 = add i32 %150, -1
  store i32 %153, ptr %149, align 4, !tbaa !57
  %154 = icmp eq i32 %153, 0
  br i1 %154, label %155, label %197

155:                                              ; preds = %152, %148
  store i32 4, ptr %102, align 4, !tbaa !55
  %156 = load i32, ptr %101, align 4, !tbaa !51
  %157 = add i32 %156, 99
  %158 = udiv i32 %157, 100
  store i32 %158, ptr %149, align 4, !tbaa !57
  %159 = getelementptr inbounds i8, ptr %.1181, i64 96
  store i32 4, ptr %159, align 8, !tbaa !58
  %160 = getelementptr inbounds i8, ptr %.1181, i64 43
  %161 = call i64 @Ip6SelectSourceAddress(ptr noundef %1, ptr noundef nonnull %160, ptr noundef nonnull %3) #3
  %162 = icmp slt i64 %161, 0
  br i1 %162, label %.loopexit, label %163

163:                                              ; preds = %155
  %164 = call i64 @Ip6SendNeighborSolicit(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %160, ptr noundef nonnull %160, ptr noundef nonnull %100)
  %165 = icmp slt i64 %164, 0
  br i1 %165, label %.loopexit, label %166

166:                                              ; preds = %163
  %167 = load i32, ptr %159, align 8, !tbaa !58
  %168 = add i32 %167, -1
  store i32 %168, ptr %159, align 8, !tbaa !58
  br label %197

169:                                              ; preds = %.backedge
  %170 = getelementptr inbounds i8, ptr %.1181, i64 100
  %171 = load i32, ptr %170, align 4, !tbaa !57
  %.not150 = icmp eq i32 %171, 0
  br i1 %.not150, label %.thread158, label %172

172:                                              ; preds = %169
  %173 = add i32 %171, -1
  store i32 %173, ptr %170, align 4, !tbaa !57
  %174 = icmp eq i32 %173, 0
  br i1 %174, label %.thread158, label %._crit_edge195

._crit_edge195:                                   ; preds = %172
  %.phi.trans.insert = getelementptr inbounds i8, ptr %.1181, i64 96
  %.pre = load i32, ptr %.phi.trans.insert, align 8, !tbaa !58
  br label %192

.thread158:                                       ; preds = %169, %172
  %175 = getelementptr inbounds i8, ptr %.1181, i64 96
  %176 = load i32, ptr %175, align 8, !tbaa !58
  %177 = icmp ugt i32 %176, 1
  br i1 %177, label %178, label %185

178:                                              ; preds = %.thread158
  %179 = getelementptr inbounds i8, ptr %.1181, i64 43
  %180 = call i64 @Ip6SelectSourceAddress(ptr noundef %1, ptr noundef nonnull %179, ptr noundef nonnull %3) #3
  %181 = icmp slt i64 %180, 0
  br i1 %181, label %.loopexit, label %182

182:                                              ; preds = %178
  %183 = call i64 @Ip6SendNeighborSolicit(ptr noundef %1, ptr noundef nonnull %3, ptr noundef nonnull %179, ptr noundef nonnull %179, ptr noundef nonnull %100)
  %184 = icmp slt i64 %183, 0
  br i1 %184, label %.loopexit, label %thread-pre-split159

thread-pre-split159:                              ; preds = %182
  %.pr160 = load i32, ptr %175, align 8, !tbaa !58
  br label %185

185:                                              ; preds = %thread-pre-split159, %.thread158
  %186 = phi i32 [ %.pr160, %thread-pre-split159 ], [ %176, %.thread158 ]
  %.not151 = icmp eq i32 %186, 0
  br i1 %.not151, label %.thread203, label %187

187:                                              ; preds = %185
  %188 = add i32 %186, -1
  store i32 %188, ptr %175, align 8, !tbaa !58
  %189 = load i32, ptr %101, align 4, !tbaa !51
  %190 = add i32 %189, 99
  %191 = udiv i32 %190, 100
  store i32 %191, ptr %170, align 4, !tbaa !57
  br label %192

192:                                              ; preds = %._crit_edge195, %187
  %193 = phi i32 [ %.pre, %._crit_edge195 ], [ %188, %187 ]
  %194 = icmp eq i32 %193, 0
  br i1 %194, label %.thread203, label %197

.thread203:                                       ; preds = %185, %192
  %195 = call i64 @Ip6FreeNeighborEntry(ptr noundef %1, ptr noundef nonnull %.1181, i8 noundef zeroext 0, i8 noundef zeroext 1, i64 noundef -9223372036854775790, ptr noundef null, ptr noundef null)
  %196 = icmp slt i64 %195, 0
  %.not149.old.old = icmp eq ptr %.2182, %98
  %or.cond208 = select i1 %196, i1 true, i1 %.not149.old.old
  br i1 %or.cond208, label %.loopexit, label %.backedge.backedge

197:                                              ; preds = %132, %127, %147, %140, %166, %152, %192, %.backedge
  %.not149.old.old.old = icmp eq ptr %.2182, %98
  br i1 %.not149.old.old.old, label %.loopexit, label %.backedge.backedge

.backedge.backedge:                               ; preds = %197, %.thread202, %144, %.thread203
  br label %.backedge, !llvm.loop !60

.loopexit:                                        ; preds = %79, %113, %117, %.thread202, %144, %155, %163, %178, %182, %.thread203, %197, %._crit_edge178
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #3
  ret void
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_IP6_SERVICE", !7, i64 0, !10, i64 8, !12, i64 24, !12, i64 32, !13, i64 40, !13, i64 56, !11, i64 72, !11, i64 80, !14, i64 88, !16, i64 136, !17, i64 2168, !16, i64 2192, !8, i64 2208, !8, i64 2209, !8, i64 2210, !8, i64 2211, !8, i64 2212, !7, i64 2216, !7, i64 2220, !7, i64 2224, !7, i64 2228, !13, i64 2232, !13, i64 2248, !13, i64 2264, !13, i64 2280, !7, i64 2296, !8, i64 2300, !11, i64 2304, !8, i64 2312, !8, i64 2313, !7, i64 2316, !11, i64 2320, !11, i64 2328, !11, i64 2336, !11, i64 2344, !18, i64 2352, !20, i64 2372, !11, i64 3032, !11, i64 3040, !21, i64 3048, !11, i64 4176, !7, i64 4184, !7, i64 4188}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long long", !8, i64 0}
!13 = !{!"_LIST_ENTRY", !11, i64 0, !11, i64 8}
!14 = !{!"", !7, i64 0, !11, i64 8, !11, i64 16, !15, i64 24}
!15 = !{!"", !11, i64 0, !12, i64 8, !8, i64 16}
!16 = !{!"", !8, i64 0}
!17 = !{!"", !12, i64 0, !13, i64 8}
!18 = !{!"", !7, i64 0, !7, i64 4, !19, i64 8, !8, i64 10, !8, i64 11, !8, i64 12, !8, i64 13, !8, i64 14, !8, i64 15, !8, i64 16}
!19 = !{!"short", !8, i64 0}
!20 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !8, i64 40, !16, i64 552, !16, i64 584, !16, i64 616, !8, i64 648, !8, i64 649, !8, i64 650, !8, i64 651, !8, i64 652}
!21 = !{!"_IP6_CONFIG_INSTANCE", !7, i64 0, !8, i64 4, !13, i64 8, !19, i64 24, !22, i64 32, !16, i64 168, !7, i64 176, !23, i64 180, !8, i64 184, !24, i64 800, !24, i64 840, !25, i64 880, !11, i64 912, !11, i64 920, !11, i64 928, !11, i64 936, !8, i64 944, !7, i64 948, !11, i64 952, !7, i64 960, !11, i64 968, !7, i64 976, !26, i64 984, !28, i64 1040}
!22 = !{!"", !8, i64 0, !8, i64 64, !7, i64 68, !16, i64 72, !7, i64 104, !11, i64 112, !7, i64 120, !11, i64 128}
!23 = !{!"", !7, i64 0}
!24 = !{!"", !13, i64 0, !13, i64 16, !12, i64 32}
!25 = !{!"_EFI_IP6_CONFIG_PROTOCOL", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!26 = !{!"_IP6_FORM_CALLBACK_INFO", !7, i64 0, !11, i64 8, !27, i64 16, !11, i64 40, !11, i64 48}
!27 = !{!"_EFI_HII_CONFIG_ACCESS_PROTOCOL", !11, i64 0, !11, i64 8, !11, i64 16}
!28 = !{!"", !7, i64 0, !23, i64 4, !16, i64 8, !13, i64 16, !7, i64 32, !13, i64 40, !7, i64 56, !13, i64 64, !7, i64 80}
!29 = !{!6, !7, i64 3224}
!30 = !{!6, !8, i64 2312}
!31 = !{!6, !8, i64 2313}
!32 = !{!6, !7, i64 2316}
!33 = !{!13, !11, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!37, !11, i64 136}
!37 = !{!"_IP6_INTERFACE", !7, i64 0, !13, i64 8, !12, i64 24, !13, i64 32, !7, i64 48, !8, i64 52, !11, i64 56, !11, i64 64, !11, i64 72, !13, i64 80, !13, i64 96, !7, i64 112, !13, i64 120, !13, i64 136, !13, i64 152, !8, i64 168}
!38 = !{!39, !7, i64 16}
!39 = !{!"_IP6_DELAY_JOIN_LIST", !13, i64 0, !7, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!40 = !{!39, !11, i64 24}
!41 = !{!39, !11, i64 32}
!42 = !{!39, !11, i64 40}
!43 = !{!39, !11, i64 48}
!44 = distinct !{!44, !35}
!45 = !{!37, !11, i64 120}
!46 = !{!47, !7, i64 36}
!47 = !{!"_IP6_DAD_ENTRY", !7, i64 0, !13, i64 8, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !11, i64 40, !16, i64 48, !11, i64 64, !11, i64 72}
!48 = !{!47, !7, i64 28}
!49 = !{!47, !7, i64 24}
!50 = !{!47, !11, i64 40}
!51 = !{!6, !7, i64 2228}
!52 = !{!47, !7, i64 32}
!53 = distinct !{!53, !35}
!54 = !{!6, !11, i64 2232}
!55 = !{!56, !7, i64 92}
!56 = !{!"_IP6_NEIGHBOR_ENTRY", !13, i64 0, !13, i64 16, !12, i64 32, !8, i64 40, !8, i64 41, !8, i64 42, !16, i64 43, !16, i64 59, !7, i64 92, !7, i64 96, !7, i64 100, !13, i64 104, !11, i64 120, !11, i64 128}
!57 = !{!56, !7, i64 100}
!58 = !{!56, !7, i64 96}
!59 = !{!56, !8, i64 42}
!60 = distinct !{!60, !35}


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