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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.GUID = type { i32, i16, i16, [8 x i8] }
%struct.EFI_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._EFI_MANAGED_NETWORK_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_BOOT_SERVICES = type { %struct.EFI_TABLE_HEADER, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_TABLE_HEADER = type { i64, i32, i32, i32, i32 }

@gBS = external global ptr, align 8
@gEfiManagedNetworkServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gEfiManagedNetworkProtocolGuid = external global %struct.GUID, align 4

; Function Attrs: nounwind uwtable
define dso_local i64 @Ip6CleanService(ptr noundef %0) #0 {
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca %struct.EFI_IPv6_ADDRESS, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct._IP6_SERVICE, ptr %8, i32 0, i32 39
  call void @Ip6ConfigCleanInstance(ptr noundef %9)
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct._IP6_SERVICE, ptr %10, i32 0, i32 13
  %12 = load i8, ptr %11, align 1, !tbaa !9
  %13 = icmp ne i8 %12, 0
  br i1 %13, label %23, label %14

14:                                               ; preds = %1
  %15 = call i64 @Ip6SetToAllNodeMulticast(i8 noundef zeroext 0, i8 noundef zeroext 2, ptr noundef %5)
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = call i64 @Ip6LeaveGroup(ptr noundef %16, ptr noundef %5)
  store i64 %17, ptr %4, align 8, !tbaa !30
  %18 = load i64, ptr %4, align 8, !tbaa !30
  %19 = icmp slt i64 %18, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %14
  %21 = load i64, ptr %4, align 8, !tbaa !30
  store i64 %21, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %202

22:                                               ; preds = %14
  br label %23

23:                                               ; preds = %22, %1
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._IP6_SERVICE, ptr %24, i32 0, i32 6
  %26 = load ptr, ptr %25, align 8, !tbaa !31
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %34

28:                                               ; preds = %23
  %29 = load ptr, ptr %3, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct._IP6_SERVICE, ptr %29, i32 0, i32 6
  %31 = load ptr, ptr %30, align 8, !tbaa !31
  call void @Ip6CleanInterface(ptr noundef %31, ptr noundef null)
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct._IP6_SERVICE, ptr %32, i32 0, i32 6
  store ptr null, ptr %33, align 8, !tbaa !31
  br label %34

34:                                               ; preds = %28, %23
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  call void @Ip6CleanDefaultRouterList(ptr noundef %35)
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._IP6_SERVICE, ptr %37, i32 0, i32 22
  call void @Ip6CleanPrefixListTable(ptr noundef %36, ptr noundef %38)
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct._IP6_SERVICE, ptr %40, i32 0, i32 23
  call void @Ip6CleanPrefixListTable(ptr noundef %39, ptr noundef %41)
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._IP6_SERVICE, ptr %42, i32 0, i32 7
  %44 = load ptr, ptr %43, align 8, !tbaa !32
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %52

46:                                               ; preds = %34
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct._IP6_SERVICE, ptr %47, i32 0, i32 7
  %49 = load ptr, ptr %48, align 8, !tbaa !32
  call void @Ip6CleanRouteTable(ptr noundef %49)
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct._IP6_SERVICE, ptr %50, i32 0, i32 7
  store ptr null, ptr %51, align 8, !tbaa !32
  br label %52

52:                                               ; preds = %46, %34
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._IP6_SERVICE, ptr %53, i32 0, i32 27
  %55 = load ptr, ptr %54, align 8, !tbaa !33
  %56 = icmp ne ptr %55, null
  br i1 %56, label %57, label %61

57:                                               ; preds = %52
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._IP6_SERVICE, ptr %58, i32 0, i32 27
  %60 = load ptr, ptr %59, align 8, !tbaa !33
  call void @FreePool(ptr noundef %60)
  br label %61

61:                                               ; preds = %57, %52
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._IP6_SERVICE, ptr %62, i32 0, i32 27
  store ptr null, ptr %63, align 8, !tbaa !33
  %64 = load ptr, ptr %3, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct._IP6_SERVICE, ptr %64, i32 0, i32 9
  call void @Ip6CleanAssembleTable(ptr noundef %65)
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct._IP6_SERVICE, ptr %66, i32 0, i32 33
  %68 = load ptr, ptr %67, align 8, !tbaa !34
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %122

70:                                               ; preds = %61
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._IP6_SERVICE, ptr %71, i32 0, i32 34
  %73 = load ptr, ptr %72, align 8, !tbaa !35
  %74 = icmp ne ptr %73, null
  br i1 %74, label %75, label %109

75:                                               ; preds = %70
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct._IP6_SERVICE, ptr %76, i32 0, i32 34
  %78 = load ptr, ptr %77, align 8, !tbaa !35
  %79 = getelementptr inbounds %struct._EFI_MANAGED_NETWORK_PROTOCOL, ptr %78, i32 0, i32 6
  %80 = load ptr, ptr %79, align 8, !tbaa !36
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct._IP6_SERVICE, ptr %81, i32 0, i32 34
  %83 = load ptr, ptr %82, align 8, !tbaa !35
  %84 = call i64 %80(ptr noundef %83, ptr noundef null)
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._IP6_SERVICE, ptr %85, i32 0, i32 34
  %87 = load ptr, ptr %86, align 8, !tbaa !35
  %88 = getelementptr inbounds %struct._EFI_MANAGED_NETWORK_PROTOCOL, ptr %87, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !38
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct._IP6_SERVICE, ptr %90, i32 0, i32 34
  %92 = load ptr, ptr %91, align 8, !tbaa !35
  %93 = call i64 %89(ptr noundef %92, ptr noundef null)
  %94 = load ptr, ptr @gBS, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %94, i32 0, i32 34
  %96 = load ptr, ptr %95, align 8, !tbaa !39
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct._IP6_SERVICE, ptr %97, i32 0, i32 33
  %99 = load ptr, ptr %98, align 8, !tbaa !34
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct._IP6_SERVICE, ptr %100, i32 0, i32 31
  %102 = load ptr, ptr %101, align 8, !tbaa !42
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct._IP6_SERVICE, ptr %103, i32 0, i32 32
  %105 = load ptr, ptr %104, align 8, !tbaa !43
  %106 = call i64 %96(ptr noundef %99, ptr noundef @gEfiManagedNetworkProtocolGuid, ptr noundef %102, ptr noundef %105)
  %107 = load ptr, ptr %3, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct._IP6_SERVICE, ptr %107, i32 0, i32 34
  store ptr null, ptr %108, align 8, !tbaa !35
  br label %109

109:                                              ; preds = %75, %70
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct._IP6_SERVICE, ptr %110, i32 0, i32 32
  %112 = load ptr, ptr %111, align 8, !tbaa !43
  %113 = load ptr, ptr %3, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct._IP6_SERVICE, ptr %113, i32 0, i32 31
  %115 = load ptr, ptr %114, align 8, !tbaa !42
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct._IP6_SERVICE, ptr %116, i32 0, i32 33
  %118 = load ptr, ptr %117, align 8, !tbaa !34
  %119 = call i64 @NetLibDestroyServiceChild(ptr noundef %112, ptr noundef %115, ptr noundef @gEfiManagedNetworkServiceBindingProtocolGuid, ptr noundef %118)
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._IP6_SERVICE, ptr %120, i32 0, i32 33
  store ptr null, ptr %121, align 8, !tbaa !34
  br label %122

122:                                              ; preds = %109, %61
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct._IP6_SERVICE, ptr %123, i32 0, i32 8
  %125 = getelementptr inbounds %struct.IP6_LINK_RX_TOKEN, ptr %124, i32 0, i32 3
  %126 = getelementptr inbounds %struct.EFI_MANAGED_NETWORK_COMPLETION_TOKEN, ptr %125, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8, !tbaa !44
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %139

129:                                              ; preds = %122
  %130 = load ptr, ptr @gBS, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %130, i32 0, i32 12
  %132 = load ptr, ptr %131, align 8, !tbaa !45
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct._IP6_SERVICE, ptr %133, i32 0, i32 8
  %135 = getelementptr inbounds %struct.IP6_LINK_RX_TOKEN, ptr %134, i32 0, i32 3
  %136 = getelementptr inbounds %struct.EFI_MANAGED_NETWORK_COMPLETION_TOKEN, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !44
  %138 = call i64 %132(ptr noundef %137)
  br label %139

139:                                              ; preds = %129, %122
  %140 = load ptr, ptr %3, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct._IP6_SERVICE, ptr %140, i32 0, i32 37
  %142 = load ptr, ptr %141, align 8, !tbaa !46
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %161

144:                                              ; preds = %139
  %145 = load ptr, ptr @gBS, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %145, i32 0, i32 9
  %147 = load ptr, ptr %146, align 8, !tbaa !47
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct._IP6_SERVICE, ptr %148, i32 0, i32 37
  %150 = load ptr, ptr %149, align 8, !tbaa !46
  %151 = call i64 %147(ptr noundef %150, i32 noundef 0, i64 noundef 0)
  %152 = load ptr, ptr @gBS, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %152, i32 0, i32 12
  %154 = load ptr, ptr %153, align 8, !tbaa !45
  %155 = load ptr, ptr %3, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct._IP6_SERVICE, ptr %155, i32 0, i32 37
  %157 = load ptr, ptr %156, align 8, !tbaa !46
  %158 = call i64 %154(ptr noundef %157)
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct._IP6_SERVICE, ptr %159, i32 0, i32 37
  store ptr null, ptr %160, align 8, !tbaa !46
  br label %161

161:                                              ; preds = %144, %139
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct._IP6_SERVICE, ptr %162, i32 0, i32 38
  %164 = load ptr, ptr %163, align 8, !tbaa !48
  %165 = icmp ne ptr %164, null
  br i1 %165, label %166, label %183

166:                                              ; preds = %161
  %167 = load ptr, ptr @gBS, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %167, i32 0, i32 9
  %169 = load ptr, ptr %168, align 8, !tbaa !47
  %170 = load ptr, ptr %3, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct._IP6_SERVICE, ptr %170, i32 0, i32 38
  %172 = load ptr, ptr %171, align 8, !tbaa !48
  %173 = call i64 %169(ptr noundef %172, i32 noundef 0, i64 noundef 0)
  %174 = load ptr, ptr @gBS, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %174, i32 0, i32 12
  %176 = load ptr, ptr %175, align 8, !tbaa !45
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct._IP6_SERVICE, ptr %177, i32 0, i32 38
  %179 = load ptr, ptr %178, align 8, !tbaa !48
  %180 = call i64 %176(ptr noundef %179)
  %181 = load ptr, ptr %3, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct._IP6_SERVICE, ptr %181, i32 0, i32 38
  store ptr null, ptr %182, align 8, !tbaa !48
  br label %183

183:                                              ; preds = %166, %161
  br label %184

184:                                              ; preds = %190, %183
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct._IP6_SERVICE, ptr %185, i32 0, i32 21
  %187 = call zeroext i8 @IsListEmpty(ptr noundef %186)
  %188 = icmp ne i8 %187, 0
  %189 = xor i1 %188, true
  br i1 %189, label %190, label %201

190:                                              ; preds = %184
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct._IP6_SERVICE, ptr %191, i32 0, i32 21
  %193 = getelementptr inbounds %struct._LIST_ENTRY, ptr %192, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8, !tbaa !49
  %195 = ptrtoint ptr %194 to i64
  %196 = sub i64 %195, 0
  %197 = inttoptr i64 %196 to ptr
  store ptr %197, ptr %6, align 8, !tbaa !5
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = call i64 @Ip6FreeNeighborEntry(ptr noundef %198, ptr noundef %199, i8 noundef zeroext 0, i8 noundef zeroext 1, i64 noundef 0, ptr noundef null, ptr noundef null)
  br label %184, !llvm.loop !50

201:                                              ; preds = %184
  store i64 0, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %202

202:                                              ; preds = %201, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %203 = load i64, ptr %2, align 8
  ret i64 %203
}

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

declare void @Ip6ConfigCleanInstance(ptr noundef) #2

declare i64 @Ip6SetToAllNodeMulticast(i8 noundef zeroext, i8 noundef zeroext, ptr noundef) #2

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

declare void @Ip6CleanInterface(ptr noundef, ptr noundef) #2

declare void @Ip6CleanDefaultRouterList(ptr noundef) #2

declare void @Ip6CleanPrefixListTable(ptr noundef, ptr noundef) #2

declare void @Ip6CleanRouteTable(ptr noundef) #2

declare void @FreePool(ptr noundef) #2

declare void @Ip6CleanAssembleTable(ptr noundef) #2

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

declare zeroext i8 @IsListEmpty(ptr noundef) #2

declare i64 @Ip6FreeNeighborEntry(ptr noundef, ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i64 noundef, ptr noundef, ptr noundef) #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !7, i64 2209}
!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 = !{!13, !13, i64 0}
!31 = !{!10, !6, i64 72}
!32 = !{!10, !6, i64 80}
!33 = !{!10, !6, i64 2304}
!34 = !{!10, !6, i64 2336}
!35 = !{!10, !6, i64 2344}
!36 = !{!37, !6, i64 48}
!37 = !{!"_EFI_MANAGED_NETWORK_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!38 = !{!37, !6, i64 8}
!39 = !{!40, !6, i64 288}
!40 = !{!"", !41, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!41 = !{!"", !13, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20}
!42 = !{!10, !6, i64 2320}
!43 = !{!10, !6, i64 2328}
!44 = !{!10, !6, i64 112}
!45 = !{!40, !6, i64 112}
!46 = !{!10, !6, i64 3032}
!47 = !{!40, !6, i64 88}
!48 = !{!10, !6, i64 3040}
!49 = !{!10, !6, i64 2232}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.GUID = type { i32, i16, i16, [8 x i8] }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }

@gBS = external local_unnamed_addr global ptr, align 8
@gEfiManagedNetworkServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gEfiManagedNetworkProtocolGuid = external global %struct.GUID, align 4

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775808, 1) i64 @Ip6CleanService(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca %struct.EFI_IPv6_ADDRESS, align 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #3
  %3 = getelementptr inbounds i8, ptr %0, i64 3048
  tail call void @Ip6ConfigCleanInstance(ptr noundef nonnull %3) #3
  %4 = getelementptr inbounds i8, ptr %0, i64 2209
  %5 = load i8, ptr %4, align 1, !tbaa !5
  %.not = icmp eq i8 %5, 0
  br i1 %.not, label %6, label %10

6:                                                ; preds = %1
  %7 = call i64 @Ip6SetToAllNodeMulticast(i8 noundef zeroext 0, i8 noundef zeroext 2, ptr noundef nonnull %2) #3
  %8 = call i64 @Ip6LeaveGroup(ptr noundef nonnull %0, ptr noundef nonnull %2) #3
  %9 = icmp slt i64 %8, 0
  br i1 %9, label %.loopexit, label %10

10:                                               ; preds = %6, %1
  %11 = getelementptr inbounds i8, ptr %0, i64 72
  %12 = load ptr, ptr %11, align 8, !tbaa !29
  %.not56 = icmp eq ptr %12, null
  br i1 %.not56, label %14, label %13

13:                                               ; preds = %10
  call void @Ip6CleanInterface(ptr noundef nonnull %12, ptr noundef null) #3
  store ptr null, ptr %11, align 8, !tbaa !29
  br label %14

14:                                               ; preds = %13, %10
  call void @Ip6CleanDefaultRouterList(ptr noundef nonnull %0) #3
  %15 = getelementptr inbounds i8, ptr %0, i64 2248
  call void @Ip6CleanPrefixListTable(ptr noundef nonnull %0, ptr noundef nonnull %15) #3
  %16 = getelementptr inbounds i8, ptr %0, i64 2264
  call void @Ip6CleanPrefixListTable(ptr noundef nonnull %0, ptr noundef nonnull %16) #3
  %17 = getelementptr inbounds i8, ptr %0, i64 80
  %18 = load ptr, ptr %17, align 8, !tbaa !30
  %.not57 = icmp eq ptr %18, null
  br i1 %.not57, label %20, label %19

19:                                               ; preds = %14
  call void @Ip6CleanRouteTable(ptr noundef nonnull %18) #3
  store ptr null, ptr %17, align 8, !tbaa !30
  br label %20

20:                                               ; preds = %19, %14
  %21 = getelementptr inbounds i8, ptr %0, i64 2304
  %22 = load ptr, ptr %21, align 8, !tbaa !31
  %.not58 = icmp eq ptr %22, null
  br i1 %.not58, label %24, label %23

23:                                               ; preds = %20
  call void @FreePool(ptr noundef nonnull %22) #3
  br label %24

24:                                               ; preds = %23, %20
  store ptr null, ptr %21, align 8, !tbaa !31
  %25 = getelementptr inbounds i8, ptr %0, i64 136
  call void @Ip6CleanAssembleTable(ptr noundef nonnull %25) #3
  %26 = getelementptr inbounds i8, ptr %0, i64 2336
  %27 = load ptr, ptr %26, align 8, !tbaa !32
  %.not59 = icmp eq ptr %27, null
  br i1 %.not59, label %55, label %28

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %0, i64 2344
  %30 = load ptr, ptr %29, align 8, !tbaa !33
  %.not60 = icmp eq ptr %30, null
  br i1 %.not60, label %48, label %31

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %30, i64 48
  %33 = load ptr, ptr %32, align 8, !tbaa !34
  %34 = call i64 %33(ptr noundef nonnull %30, ptr noundef null) #3
  %35 = load ptr, ptr %29, align 8, !tbaa !33
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !36
  %38 = call i64 %37(ptr noundef %35, ptr noundef null) #3
  %39 = load ptr, ptr @gBS, align 8, !tbaa !37
  %40 = getelementptr inbounds i8, ptr %39, i64 288
  %41 = load ptr, ptr %40, align 8, !tbaa !38
  %42 = load ptr, ptr %26, align 8, !tbaa !32
  %43 = getelementptr inbounds i8, ptr %0, i64 2320
  %44 = load ptr, ptr %43, align 8, !tbaa !41
  %45 = getelementptr inbounds i8, ptr %0, i64 2328
  %46 = load ptr, ptr %45, align 8, !tbaa !42
  %47 = call i64 %41(ptr noundef %42, ptr noundef nonnull @gEfiManagedNetworkProtocolGuid, ptr noundef %44, ptr noundef %46) #3
  store ptr null, ptr %29, align 8, !tbaa !33
  %.pre = load ptr, ptr %26, align 8, !tbaa !32
  br label %48

48:                                               ; preds = %31, %28
  %49 = phi ptr [ %.pre, %31 ], [ %27, %28 ]
  %50 = getelementptr inbounds i8, ptr %0, i64 2328
  %51 = load ptr, ptr %50, align 8, !tbaa !42
  %52 = getelementptr inbounds i8, ptr %0, i64 2320
  %53 = load ptr, ptr %52, align 8, !tbaa !41
  %54 = call i64 @NetLibDestroyServiceChild(ptr noundef %51, ptr noundef %53, ptr noundef nonnull @gEfiManagedNetworkServiceBindingProtocolGuid, ptr noundef %49) #3
  store ptr null, ptr %26, align 8, !tbaa !32
  br label %55

55:                                               ; preds = %48, %24
  %56 = getelementptr inbounds i8, ptr %0, i64 112
  %57 = load ptr, ptr %56, align 8, !tbaa !43
  %.not61 = icmp eq ptr %57, null
  br i1 %.not61, label %63, label %58

58:                                               ; preds = %55
  %59 = load ptr, ptr @gBS, align 8, !tbaa !37
  %60 = getelementptr inbounds i8, ptr %59, i64 112
  %61 = load ptr, ptr %60, align 8, !tbaa !44
  %62 = call i64 %61(ptr noundef nonnull %57) #3
  br label %63

63:                                               ; preds = %58, %55
  %64 = getelementptr inbounds i8, ptr %0, i64 3032
  %65 = load ptr, ptr %64, align 8, !tbaa !45
  %.not62 = icmp eq ptr %65, null
  br i1 %.not62, label %76, label %66

66:                                               ; preds = %63
  %67 = load ptr, ptr @gBS, align 8, !tbaa !37
  %68 = getelementptr inbounds i8, ptr %67, i64 88
  %69 = load ptr, ptr %68, align 8, !tbaa !46
  %70 = call i64 %69(ptr noundef nonnull %65, i32 noundef 0, i64 noundef 0) #3
  %71 = load ptr, ptr @gBS, align 8, !tbaa !37
  %72 = getelementptr inbounds i8, ptr %71, i64 112
  %73 = load ptr, ptr %72, align 8, !tbaa !44
  %74 = load ptr, ptr %64, align 8, !tbaa !45
  %75 = call i64 %73(ptr noundef %74) #3
  store ptr null, ptr %64, align 8, !tbaa !45
  br label %76

76:                                               ; preds = %66, %63
  %77 = getelementptr inbounds i8, ptr %0, i64 3040
  %78 = load ptr, ptr %77, align 8, !tbaa !47
  %.not63 = icmp eq ptr %78, null
  br i1 %.not63, label %89, label %79

79:                                               ; preds = %76
  %80 = load ptr, ptr @gBS, align 8, !tbaa !37
  %81 = getelementptr inbounds i8, ptr %80, i64 88
  %82 = load ptr, ptr %81, align 8, !tbaa !46
  %83 = call i64 %82(ptr noundef nonnull %78, i32 noundef 0, i64 noundef 0) #3
  %84 = load ptr, ptr @gBS, align 8, !tbaa !37
  %85 = getelementptr inbounds i8, ptr %84, i64 112
  %86 = load ptr, ptr %85, align 8, !tbaa !44
  %87 = load ptr, ptr %77, align 8, !tbaa !47
  %88 = call i64 %86(ptr noundef %87) #3
  store ptr null, ptr %77, align 8, !tbaa !47
  br label %89

89:                                               ; preds = %79, %76
  %90 = getelementptr inbounds i8, ptr %0, i64 2232
  %91 = call zeroext i8 @IsListEmpty(ptr noundef nonnull %90) #3
  %.not6465 = icmp eq i8 %91, 0
  br i1 %.not6465, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %89, %.lr.ph
  %92 = load ptr, ptr %90, align 8, !tbaa !48
  %93 = call i64 @Ip6FreeNeighborEntry(ptr noundef nonnull %0, ptr noundef %92, i8 noundef zeroext 0, i8 noundef zeroext 1, i64 noundef 0, ptr noundef null, ptr noundef null) #3
  %94 = call zeroext i8 @IsListEmpty(ptr noundef nonnull %90) #3
  %.not64 = icmp eq i8 %94, 0
  br i1 %.not64, label %.lr.ph, label %.loopexit, !llvm.loop !49

.loopexit:                                        ; preds = %.lr.ph, %89, %6
  %.0 = phi i64 [ %8, %6 ], [ 0, %89 ], [ 0, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #3
  ret i64 %.0
}

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

declare void @Ip6ConfigCleanInstance(ptr noundef) local_unnamed_addr #2

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

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

declare void @Ip6CleanInterface(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @Ip6CleanDefaultRouterList(ptr noundef) local_unnamed_addr #2

declare void @Ip6CleanPrefixListTable(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @Ip6CleanRouteTable(ptr noundef) local_unnamed_addr #2

declare void @FreePool(ptr noundef) local_unnamed_addr #2

declare void @Ip6CleanAssembleTable(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 2209}
!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, !11, i64 72}
!30 = !{!6, !11, i64 80}
!31 = !{!6, !11, i64 2304}
!32 = !{!6, !11, i64 2336}
!33 = !{!6, !11, i64 2344}
!34 = !{!35, !11, i64 48}
!35 = !{!"_EFI_MANAGED_NETWORK_PROTOCOL", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56}
!36 = !{!35, !11, i64 8}
!37 = !{!11, !11, i64 0}
!38 = !{!39, !11, i64 288}
!39 = !{!"", !40, i64 0, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368}
!40 = !{!"", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!41 = !{!6, !11, i64 2320}
!42 = !{!6, !11, i64 2328}
!43 = !{!6, !11, i64 112}
!44 = !{!39, !11, i64 112}
!45 = !{!6, !11, i64 3032}
!46 = !{!39, !11, i64 88}
!47 = !{!6, !11, i64 3040}
!48 = !{!6, !11, i64 2232}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}


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