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

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

@.str = external hidden unnamed_addr constant [135 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@gEfiDhcp6ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gBS = external global ptr, align 8
@gEfiDhcp6ProtocolGuid = external global %struct.GUID, align 4
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1

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

declare zeroext i8 @DebugAssertEnabled() #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @Ip6ConfigStartStatefulAutoConfig(ptr noundef %0, i8 noundef zeroext %1) #2 {
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i8, align 1
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.EFI_DHCP6_CONFIG_DATA, align 8
  %9 = alloca ptr, align 8
  %10 = alloca [1 x ptr], align 8
  %11 = alloca [4 x i16], align 2
  %12 = alloca ptr, align 8
  %13 = alloca %struct.EFI_DHCP6_RETRANSMISSION, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i8 %1, ptr %5, align 1, !tbaa !9
  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 64, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #3
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %15, i32 0, i32 14
  %17 = load ptr, ptr %16, align 8, !tbaa !10
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %2
  store i64 0, ptr %3, align 8
  store i32 1, ptr %14, align 4
  br label %220

20:                                               ; preds = %2
  %21 = call zeroext i8 @DebugAssertEnabled()
  %22 = zext i8 %21 to i32
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %34

24:                                               ; preds = %20
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = ptrtoint ptr %25 to i64
  %27 = sub i64 %26, ptrtoint (ptr getelementptr inbounds (%struct._IP6_SERVICE, ptr null, i32 0, i32 39) to i64)
  %28 = inttoptr i64 %27 to ptr
  %29 = getelementptr inbounds %struct._IP6_SERVICE, ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !24
  %31 = icmp ne i32 %30, 1396068425
  br i1 %31, label %32, label %34

32:                                               ; preds = %24
  call void @DebugAssert(ptr noundef @.str, i64 noundef 161, ptr noundef @.str.1)
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  br label %39

34:                                               ; preds = %24, %20
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = ptrtoint ptr %35 to i64
  %37 = sub i64 %36, ptrtoint (ptr getelementptr inbounds (%struct._IP6_SERVICE, ptr null, i32 0, i32 39) to i64)
  %38 = inttoptr i64 %37 to ptr
  br label %39

39:                                               ; preds = %34, %32
  %40 = phi ptr [ %33, %32 ], [ %38, %34 ]
  store ptr %40, ptr %7, align 8, !tbaa !5
  %41 = load i8, ptr %5, align 1, !tbaa !9
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %42, i32 0, i32 16
  store i8 %41, ptr %43, align 8, !tbaa !32
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct._IP6_SERVICE, ptr %44, i32 0, i32 32
  %46 = load ptr, ptr %45, align 8, !tbaa !33
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct._IP6_SERVICE, ptr %47, i32 0, i32 31
  %49 = load ptr, ptr %48, align 8, !tbaa !34
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %50, i32 0, i32 14
  %52 = call i64 @NetLibCreateServiceChild(ptr noundef %46, ptr noundef %49, ptr noundef @gEfiDhcp6ServiceBindingProtocolGuid, ptr noundef %51)
  store i64 %52, ptr %6, align 8, !tbaa !35
  %53 = load i64, ptr %6, align 8, !tbaa !35
  %54 = icmp eq i64 %53, -9223372036854775805
  br i1 %54, label %55, label %68

55:                                               ; preds = %39
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %56, i32 0, i32 12
  %58 = load ptr, ptr %57, align 8, !tbaa !36
  %59 = icmp eq ptr %58, null
  br i1 %59, label %60, label %67

60:                                               ; preds = %55
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %62, i32 0, i32 13
  %64 = call ptr @EfiCreateProtocolNotifyEvent(ptr noundef @gEfiDhcp6ServiceBindingProtocolGuid, i64 noundef 8, ptr noundef @Ip6ConfigOnDhcp6SbInstalled, ptr noundef %61, ptr noundef %63)
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %65, i32 0, i32 12
  store ptr %64, ptr %66, align 8, !tbaa !36
  br label %67

67:                                               ; preds = %60, %55
  br label %68

68:                                               ; preds = %67, %39
  %69 = load i64, ptr %6, align 8, !tbaa !35
  %70 = icmp slt i64 %69, 0
  br i1 %70, label %71, label %73

71:                                               ; preds = %68
  %72 = load i64, ptr %6, align 8, !tbaa !35
  store i64 %72, ptr %3, align 8
  store i32 1, ptr %14, align 4
  br label %220

73:                                               ; preds = %68
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %74, i32 0, i32 12
  %76 = load ptr, ptr %75, align 8, !tbaa !36
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %86

78:                                               ; preds = %73
  %79 = load ptr, ptr @gBS, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %79, i32 0, i32 12
  %81 = load ptr, ptr %80, align 8, !tbaa !37
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %82, i32 0, i32 12
  %84 = load ptr, ptr %83, align 8, !tbaa !36
  %85 = call i64 %81(ptr noundef %84)
  br label %86

86:                                               ; preds = %78, %73
  %87 = load ptr, ptr @gBS, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %87, i32 0, i32 33
  %89 = load ptr, ptr %88, align 8, !tbaa !40
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %90, i32 0, i32 14
  %92 = load ptr, ptr %91, align 8, !tbaa !10
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %93, i32 0, i32 15
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct._IP6_SERVICE, ptr %95, i32 0, i32 31
  %97 = load ptr, ptr %96, align 8, !tbaa !34
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._IP6_SERVICE, ptr %98, i32 0, i32 32
  %100 = load ptr, ptr %99, align 8, !tbaa !33
  %101 = call i64 %89(ptr noundef %92, ptr noundef @gEfiDhcp6ProtocolGuid, ptr noundef %94, ptr noundef %97, ptr noundef %100, i32 noundef 16)
  store i64 %101, ptr %6, align 8, !tbaa !35
  br label %102

102:                                              ; preds = %86
  %103 = call zeroext i8 @DebugAssertEnabled()
  %104 = icmp ne i8 %103, 0
  br i1 %104, label %105, label %125

105:                                              ; preds = %102
  %106 = load i64, ptr %6, align 8, !tbaa !35
  %107 = icmp slt i64 %106, 0
  br i1 %107, label %108, label %124

108:                                              ; preds = %105
  br label %109

109:                                              ; preds = %108
  %110 = call zeroext i8 @DebugPrintEnabled()
  %111 = icmp ne i8 %110, 0
  br i1 %111, label %112, label %121

112:                                              ; preds = %109
  br label %113

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

116:                                              ; preds = %113
  %117 = load i64, ptr %6, align 8, !tbaa !35
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef @.str.2, i64 noundef %117)
  br label %118

118:                                              ; preds = %116, %113
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  br label %121

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

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  call void @DebugAssert(ptr noundef @.str, i64 noundef 203, ptr noundef @.str.3)
  br label %124

124:                                              ; preds = %123, %105
  br label %125

125:                                              ; preds = %124, %102
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %128, i32 0, i32 15
  %130 = load ptr, ptr %129, align 8, !tbaa !41
  store ptr %130, ptr %9, align 8, !tbaa !5
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct._EFI_DHCP6_PROTOCOL, ptr %131, i32 0, i32 1
  %133 = load ptr, ptr %132, align 8, !tbaa !42
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = call i64 %133(ptr noundef %134, ptr noundef null)
  %136 = getelementptr inbounds [4 x i16], ptr %11, i64 0, i64 0
  store ptr %136, ptr %12, align 8, !tbaa !5
  %137 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 6)
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %138, i32 0, i32 0
  store i16 %137, ptr %139, align 1, !tbaa !44
  %140 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 2)
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %141, i32 0, i32 1
  store i16 %140, ptr %142, align 1, !tbaa !46
  %143 = call zeroext i16 @SwapBytes16(i16 noundef zeroext 23)
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.EFI_DHCP6_PACKET_OPTION, ptr %144, i32 0, i32 2
  %146 = getelementptr inbounds [1 x i8], ptr %145, i64 0, i64 0
  store i16 %143, ptr %146, align 1, !tbaa !47
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = getelementptr inbounds [1 x ptr], ptr %10, i64 0, i64 0
  store ptr %147, ptr %148, align 8, !tbaa !5
  store i64 0, ptr %6, align 8, !tbaa !35
  %149 = load i8, ptr %5, align 1, !tbaa !9
  %150 = icmp ne i8 %149, 0
  br i1 %150, label %194, label %151

151:                                              ; preds = %127
  %152 = getelementptr inbounds %struct.EFI_DHCP6_CONFIG_DATA, ptr %8, i32 0, i32 0
  store ptr null, ptr %152, align 8, !tbaa !48
  %153 = getelementptr inbounds %struct.EFI_DHCP6_CONFIG_DATA, ptr %8, i32 0, i32 1
  store ptr null, ptr %153, align 8, !tbaa !51
  %154 = getelementptr inbounds %struct.EFI_DHCP6_CONFIG_DATA, ptr %8, i32 0, i32 2
  store i32 1, ptr %154, align 8, !tbaa !52
  %155 = getelementptr inbounds [1 x ptr], ptr %10, i64 0, i64 0
  %156 = getelementptr inbounds %struct.EFI_DHCP6_CONFIG_DATA, ptr %8, i32 0, i32 3
  store ptr %155, ptr %156, align 8, !tbaa !53
  %157 = getelementptr inbounds %struct.EFI_DHCP6_CONFIG_DATA, ptr %8, i32 0, i32 4
  %158 = getelementptr inbounds %struct.EFI_DHCP6_IA_DESCRIPTOR, ptr %157, i32 0, i32 0
  store i16 3, ptr %158, align 8, !tbaa !54
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %159, i32 0, i32 17
  %161 = load i32, ptr %160, align 4, !tbaa !55
  %162 = getelementptr inbounds %struct.EFI_DHCP6_CONFIG_DATA, ptr %8, i32 0, i32 4
  %163 = getelementptr inbounds %struct.EFI_DHCP6_IA_DESCRIPTOR, ptr %162, i32 0, i32 1
  store i32 %161, ptr %163, align 4, !tbaa !56
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %164, i32 0, i32 18
  %166 = load ptr, ptr %165, align 8, !tbaa !57
  %167 = getelementptr inbounds %struct.EFI_DHCP6_CONFIG_DATA, ptr %8, i32 0, i32 5
  store ptr %166, ptr %167, align 8, !tbaa !58
  %168 = getelementptr inbounds %struct.EFI_DHCP6_CONFIG_DATA, ptr %8, i32 0, i32 6
  store i8 0, ptr %168, align 8, !tbaa !59
  %169 = getelementptr inbounds %struct.EFI_DHCP6_CONFIG_DATA, ptr %8, i32 0, i32 7
  store i8 0, ptr %169, align 1, !tbaa !60
  %170 = getelementptr inbounds %struct.EFI_DHCP6_CONFIG_DATA, ptr %8, i32 0, i32 8
  store ptr null, ptr %170, align 8, !tbaa !61
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct._EFI_DHCP6_PROTOCOL, ptr %171, i32 0, i32 1
  %173 = load ptr, ptr %172, align 8, !tbaa !42
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = call i64 %173(ptr noundef %174, ptr noundef %8)
  store i64 %175, ptr %6, align 8, !tbaa !35
  %176 = load i64, ptr %6, align 8, !tbaa !35
  %177 = icmp slt i64 %176, 0
  br i1 %177, label %193, label %178

178:                                              ; preds = %151
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct._IP6_SERVICE, ptr %179, i32 0, i32 12
  %181 = load i8, ptr %180, align 8, !tbaa !62
  %182 = icmp ne i8 %181, 0
  br i1 %182, label %183, label %189

183:                                              ; preds = %178
  %184 = load ptr, ptr %9, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct._EFI_DHCP6_PROTOCOL, ptr %184, i32 0, i32 2
  %186 = load ptr, ptr %185, align 8, !tbaa !63
  %187 = load ptr, ptr %9, align 8, !tbaa !5
  %188 = call i64 %186(ptr noundef %187)
  store i64 %188, ptr %6, align 8, !tbaa !35
  br label %192

189:                                              ; preds = %178
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct._IP6_SERVICE, ptr %190, i32 0, i32 14
  store i8 1, ptr %191, align 2, !tbaa !64
  br label %192

192:                                              ; preds = %189, %183
  br label %193

193:                                              ; preds = %192, %151
  br label %218

194:                                              ; preds = %127
  %195 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %13, i32 0, i32 0
  store i32 4, ptr %195, align 4, !tbaa !65
  %196 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %13, i32 0, i32 1
  store i32 64, ptr %196, align 4, !tbaa !67
  %197 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %13, i32 0, i32 2
  store i32 60, ptr %197, align 4, !tbaa !68
  %198 = getelementptr inbounds %struct.EFI_DHCP6_RETRANSMISSION, ptr %13, i32 0, i32 3
  store i32 0, ptr %198, align 4, !tbaa !69
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct._IP6_SERVICE, ptr %199, i32 0, i32 12
  %201 = load i8, ptr %200, align 8, !tbaa !62
  %202 = icmp ne i8 %201, 0
  br i1 %202, label %203, label %214

203:                                              ; preds = %194
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct._EFI_DHCP6_PROTOCOL, ptr %204, i32 0, i32 3
  %206 = load ptr, ptr %205, align 8, !tbaa !70
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  %208 = load ptr, ptr %12, align 8, !tbaa !5
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct._IP6_CONFIG_INSTANCE, ptr %209, i32 0, i32 18
  %211 = load ptr, ptr %210, align 8, !tbaa !57
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = call i64 %206(ptr noundef %207, i8 noundef zeroext 1, ptr noundef %208, i32 noundef 0, ptr noundef null, ptr noundef %13, ptr noundef %211, ptr noundef @Ip6ConfigOnDhcp6Reply, ptr noundef %212)
  store i64 %213, ptr %6, align 8, !tbaa !35
  br label %217

214:                                              ; preds = %194
  %215 = load ptr, ptr %7, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct._IP6_SERVICE, ptr %215, i32 0, i32 15
  store i8 1, ptr %216, align 1, !tbaa !71
  br label %217

217:                                              ; preds = %214, %203
  br label %218

218:                                              ; preds = %217, %193
  %219 = load i64, ptr %6, align 8, !tbaa !35
  store i64 %219, ptr %3, align 8
  store i32 1, ptr %14, align 4
  br label %220

220:                                              ; preds = %218, %71, %19
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 64, 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
  %221 = load i64, ptr %3, align 8
  ret i64 %221
}

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

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

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

declare zeroext i8 @DebugPrintEnabled() #1

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #1

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

declare zeroext i16 @SwapBytes16(i16 noundef zeroext) #1

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

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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 928}
!11 = !{!"_IP6_CONFIG_INSTANCE", !12, i64 0, !7, i64 4, !13, i64 8, !14, i64 24, !15, i64 32, !16, i64 168, !12, i64 176, !17, i64 180, !7, i64 184, !18, i64 800, !18, i64 840, !20, i64 880, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !7, i64 944, !12, i64 948, !6, i64 952, !12, i64 960, !6, i64 968, !12, i64 976, !21, i64 984, !23, i64 1040}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!14 = !{!"short", !7, i64 0}
!15 = !{!"", !7, i64 0, !7, i64 64, !12, i64 68, !16, i64 72, !12, i64 104, !6, i64 112, !12, i64 120, !6, i64 128}
!16 = !{!"", !7, i64 0}
!17 = !{!"", !12, i64 0}
!18 = !{!"", !13, i64 0, !13, i64 16, !19, i64 32}
!19 = !{!"long long", !7, i64 0}
!20 = !{!"_EFI_IP6_CONFIG_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!21 = !{!"_IP6_FORM_CALLBACK_INFO", !12, i64 0, !6, i64 8, !22, i64 16, !6, i64 40, !6, i64 48}
!22 = !{!"_EFI_HII_CONFIG_ACCESS_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"", !12, i64 0, !17, i64 4, !16, i64 8, !13, i64 16, !12, i64 32, !13, i64 40, !12, i64 56, !13, i64 64, !12, i64 80}
!24 = !{!25, !12, i64 0}
!25 = !{!"_IP6_SERVICE", !12, i64 0, !26, i64 8, !19, i64 24, !19, i64 32, !13, i64 40, !13, i64 56, !6, i64 72, !6, i64 80, !27, i64 88, !16, i64 136, !29, i64 2168, !16, i64 2192, !7, i64 2208, !7, i64 2209, !7, i64 2210, !7, i64 2211, !7, i64 2212, !12, i64 2216, !12, i64 2220, !12, i64 2224, !12, i64 2228, !13, i64 2232, !13, i64 2248, !13, i64 2264, !13, i64 2280, !12, i64 2296, !7, i64 2300, !6, i64 2304, !7, i64 2312, !7, i64 2313, !12, i64 2316, !6, i64 2320, !6, i64 2328, !6, i64 2336, !6, i64 2344, !30, i64 2352, !31, i64 2372, !6, i64 3032, !6, i64 3040, !11, i64 3048, !6, i64 4176, !12, i64 4184, !12, i64 4188}
!26 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!27 = !{!"", !12, i64 0, !6, i64 8, !6, i64 16, !28, i64 24}
!28 = !{!"", !6, i64 0, !19, i64 8, !7, i64 16}
!29 = !{!"", !19, i64 0, !13, i64 8}
!30 = !{!"", !12, i64 0, !12, i64 4, !14, i64 8, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16}
!31 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !7, i64 40, !16, i64 552, !16, i64 584, !16, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!32 = !{!11, !7, i64 944}
!33 = !{!25, !6, i64 2328}
!34 = !{!25, !6, i64 2320}
!35 = !{!19, !19, i64 0}
!36 = !{!11, !6, i64 912}
!37 = !{!38, !6, i64 112}
!38 = !{!"", !39, 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}
!39 = !{!"", !19, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20}
!40 = !{!38, !6, i64 280}
!41 = !{!11, !6, i64 936}
!42 = !{!43, !6, i64 8}
!43 = !{!"_EFI_DHCP6_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, !6, i64 64}
!44 = !{!45, !14, i64 0}
!45 = !{!"", !14, i64 0, !14, i64 2, !7, i64 4}
!46 = !{!45, !14, i64 2}
!47 = !{!14, !14, i64 0}
!48 = !{!49, !6, i64 0}
!49 = !{!"", !6, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !50, i64 32, !6, i64 40, !7, i64 48, !7, i64 49, !6, i64 56}
!50 = !{!"", !14, i64 0, !12, i64 4}
!51 = !{!49, !6, i64 8}
!52 = !{!49, !12, i64 16}
!53 = !{!49, !6, i64 24}
!54 = !{!49, !14, i64 32}
!55 = !{!11, !12, i64 948}
!56 = !{!49, !12, i64 36}
!57 = !{!11, !6, i64 952}
!58 = !{!49, !6, i64 40}
!59 = !{!49, !7, i64 48}
!60 = !{!49, !7, i64 49}
!61 = !{!49, !6, i64 56}
!62 = !{!25, !7, i64 2208}
!63 = !{!43, !6, i64 16}
!64 = !{!25, !7, i64 2210}
!65 = !{!66, !12, i64 0}
!66 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!67 = !{!66, !12, i64 4}
!68 = !{!66, !12, i64 8}
!69 = !{!66, !12, i64 12}
!70 = !{!43, !6, i64 24}
!71 = !{!25, !7, i64 2211}


; 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_DHCP6_CONFIG_DATA = type { ptr, ptr, i32, ptr, %struct.EFI_DHCP6_IA_DESCRIPTOR, ptr, i8, i8, ptr }
%struct.EFI_DHCP6_IA_DESCRIPTOR = type { i16, i32 }
%struct.EFI_DHCP6_RETRANSMISSION = type { i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [135 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@gEfiDhcp6ServiceBindingProtocolGuid = external global %struct.GUID, align 4
@gBS = external local_unnamed_addr global ptr, align 8
@gEfiDhcp6ProtocolGuid = external global %struct.GUID, align 4
@.str.2 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [20 x i8], align 1

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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i64 @Ip6ConfigStartStatefulAutoConfig(ptr noundef %0, i8 noundef zeroext %1) local_unnamed_addr #2 {
  %3 = alloca %struct.EFI_DHCP6_CONFIG_DATA, align 8
  %4 = alloca [1 x ptr], align 8
  %5 = alloca [4 x i16], align 2
  %6 = alloca %struct.EFI_DHCP6_RETRANSMISSION, align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  %7 = getelementptr inbounds i8, ptr %0, i64 928
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %.not = icmp eq ptr %8, null
  br i1 %.not, label %9, label %.thread

9:                                                ; preds = %2
  %10 = tail call zeroext i8 @DebugAssertEnabled() #4
  %.not55 = icmp eq i8 %10, 0
  %.pre = ptrtoint ptr %0 to i64
  %.pre63 = add i64 %.pre, -3048
  %.pre65 = inttoptr i64 %.pre63 to ptr
  br i1 %.not55, label %._crit_edge, label %11

11:                                               ; preds = %9
  %12 = load i32, ptr %.pre65, align 8, !tbaa !22
  %.not56 = icmp eq i32 %12, 1396068425
  br i1 %.not56, label %._crit_edge, label %13

13:                                               ; preds = %11
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 161, ptr noundef nonnull @.str.1) #4
  br label %._crit_edge

._crit_edge:                                      ; preds = %9, %11, %13
  %14 = phi ptr [ %0, %13 ], [ %.pre65, %11 ], [ %.pre65, %9 ]
  %15 = getelementptr inbounds i8, ptr %0, i64 944
  store i8 %1, ptr %15, align 8, !tbaa !30
  %16 = getelementptr inbounds i8, ptr %14, i64 2328
  %17 = load ptr, ptr %16, align 8, !tbaa !31
  %18 = getelementptr inbounds i8, ptr %14, i64 2320
  %19 = load ptr, ptr %18, align 8, !tbaa !32
  %20 = tail call i64 @NetLibCreateServiceChild(ptr noundef %17, ptr noundef %19, ptr noundef nonnull @gEfiDhcp6ServiceBindingProtocolGuid, ptr noundef nonnull %7) #4
  %21 = icmp eq i64 %20, -9223372036854775805
  br i1 %21, label %22, label %29

22:                                               ; preds = %._crit_edge
  %23 = getelementptr inbounds i8, ptr %0, i64 912
  %24 = load ptr, ptr %23, align 8, !tbaa !33
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %.thread

26:                                               ; preds = %22
  %27 = getelementptr inbounds i8, ptr %0, i64 920
  %28 = tail call ptr @EfiCreateProtocolNotifyEvent(ptr noundef nonnull @gEfiDhcp6ServiceBindingProtocolGuid, i64 noundef 8, ptr noundef nonnull @Ip6ConfigOnDhcp6SbInstalled, ptr noundef nonnull %0, ptr noundef nonnull %27) #4
  store ptr %28, ptr %23, align 8, !tbaa !33
  br label %.thread

29:                                               ; preds = %._crit_edge
  %30 = icmp slt i64 %20, 0
  br i1 %30, label %.thread, label %31

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %0, i64 912
  %33 = load ptr, ptr %32, align 8, !tbaa !33
  %.not57 = icmp eq ptr %33, null
  br i1 %.not57, label %39, label %34

34:                                               ; preds = %31
  %35 = load ptr, ptr @gBS, align 8, !tbaa !34
  %36 = getelementptr inbounds i8, ptr %35, i64 112
  %37 = load ptr, ptr %36, align 8, !tbaa !35
  %38 = tail call i64 %37(ptr noundef nonnull %33) #4
  br label %39

39:                                               ; preds = %34, %31
  %40 = load ptr, ptr @gBS, align 8, !tbaa !34
  %41 = getelementptr inbounds i8, ptr %40, i64 280
  %42 = load ptr, ptr %41, align 8, !tbaa !38
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %0, i64 936
  %45 = load ptr, ptr %18, align 8, !tbaa !32
  %46 = load ptr, ptr %16, align 8, !tbaa !31
  %47 = tail call i64 %42(ptr noundef %43, ptr noundef nonnull @gEfiDhcp6ProtocolGuid, ptr noundef nonnull %44, ptr noundef %45, ptr noundef %46, i32 noundef 16) #4
  %48 = tail call zeroext i8 @DebugAssertEnabled() #4
  %49 = icmp ne i8 %48, 0
  %50 = icmp slt i64 %47, 0
  %or.cond = select i1 %49, i1 %50, i1 false
  br i1 %or.cond, label %51, label %57

51:                                               ; preds = %39
  %52 = tail call zeroext i8 @DebugPrintEnabled() #4
  %.not58 = icmp eq i8 %52, 0
  br i1 %.not58, label %56, label %53

53:                                               ; preds = %51
  %54 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648) #4
  %.not59 = icmp eq i8 %54, 0
  br i1 %.not59, label %56, label %55

55:                                               ; preds = %53
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef nonnull @.str.2, i64 noundef %47) #4
  br label %56

56:                                               ; preds = %53, %55, %51
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 203, ptr noundef nonnull @.str.3) #4
  br label %57

57:                                               ; preds = %56, %39
  %58 = load ptr, ptr %44, align 8, !tbaa !39
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  %60 = load ptr, ptr %59, align 8, !tbaa !40
  %61 = tail call i64 %60(ptr noundef %58, ptr noundef null) #4
  %62 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext 6) #4
  store i16 %62, ptr %5, align 2, !tbaa !42
  %63 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext 2) #4
  %64 = getelementptr inbounds i8, ptr %5, i64 2
  store i16 %63, ptr %64, align 2, !tbaa !44
  %65 = tail call zeroext i16 @SwapBytes16(i16 noundef zeroext 23) #4
  %66 = getelementptr inbounds i8, ptr %5, i64 4
  store i16 %65, ptr %66, align 2, !tbaa !45
  store ptr %5, ptr %4, align 8, !tbaa !34
  %.not60 = icmp eq i8 %1, 0
  br i1 %.not60, label %67, label %92

67:                                               ; preds = %57
  %68 = getelementptr inbounds i8, ptr %3, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  store i32 1, ptr %68, align 8, !tbaa !46
  %69 = getelementptr inbounds i8, ptr %3, i64 24
  store ptr %4, ptr %69, align 8, !tbaa !49
  %70 = getelementptr inbounds i8, ptr %3, i64 32
  store i16 3, ptr %70, align 8, !tbaa !50
  %71 = getelementptr inbounds i8, ptr %0, i64 948
  %72 = load i32, ptr %71, align 4, !tbaa !51
  %73 = getelementptr inbounds i8, ptr %3, i64 36
  store i32 %72, ptr %73, align 4, !tbaa !52
  %74 = getelementptr inbounds i8, ptr %0, i64 952
  %75 = load ptr, ptr %74, align 8, !tbaa !53
  %76 = getelementptr inbounds i8, ptr %3, i64 40
  store ptr %75, ptr %76, align 8, !tbaa !54
  %77 = getelementptr inbounds i8, ptr %3, i64 48
  store i8 0, ptr %77, align 8, !tbaa !55
  %78 = getelementptr inbounds i8, ptr %3, i64 49
  store i8 0, ptr %78, align 1, !tbaa !56
  %79 = getelementptr inbounds i8, ptr %3, i64 56
  store ptr null, ptr %79, align 8, !tbaa !57
  %80 = load ptr, ptr %59, align 8, !tbaa !40
  %81 = call i64 %80(ptr noundef nonnull %58, ptr noundef nonnull %3) #4
  %82 = icmp slt i64 %81, 0
  br i1 %82, label %.thread, label %83

83:                                               ; preds = %67
  %84 = getelementptr inbounds i8, ptr %14, i64 2208
  %85 = load i8, ptr %84, align 8, !tbaa !58
  %.not61 = icmp eq i8 %85, 0
  br i1 %.not61, label %90, label %86

86:                                               ; preds = %83
  %87 = getelementptr inbounds i8, ptr %58, i64 16
  %88 = load ptr, ptr %87, align 8, !tbaa !59
  %89 = call i64 %88(ptr noundef nonnull %58) #4
  br label %.thread

90:                                               ; preds = %83
  %91 = getelementptr inbounds i8, ptr %14, i64 2210
  store i8 1, ptr %91, align 2, !tbaa !60
  br label %.thread

92:                                               ; preds = %57
  store <4 x i32> <i32 4, i32 64, i32 60, i32 0>, ptr %6, align 16, !tbaa !61
  %93 = getelementptr inbounds i8, ptr %14, i64 2208
  %94 = load i8, ptr %93, align 8, !tbaa !58
  %.not62 = icmp eq i8 %94, 0
  br i1 %.not62, label %101, label %95

95:                                               ; preds = %92
  %96 = getelementptr inbounds i8, ptr %58, i64 24
  %97 = load ptr, ptr %96, align 8, !tbaa !62
  %98 = getelementptr inbounds i8, ptr %0, i64 952
  %99 = load ptr, ptr %98, align 8, !tbaa !53
  %100 = call i64 %97(ptr noundef nonnull %58, i8 noundef zeroext 1, ptr noundef nonnull %5, i32 noundef 0, ptr noundef null, ptr noundef nonnull %6, ptr noundef %99, ptr noundef nonnull @Ip6ConfigOnDhcp6Reply, ptr noundef nonnull %0) #4
  br label %.thread

101:                                              ; preds = %92
  %102 = getelementptr inbounds i8, ptr %14, i64 2211
  store i8 1, ptr %102, align 1, !tbaa !63
  br label %.thread

.thread:                                          ; preds = %26, %22, %86, %90, %67, %101, %95, %29, %2
  %.0 = phi i64 [ 0, %2 ], [ %20, %29 ], [ %100, %95 ], [ 0, %101 ], [ %81, %67 ], [ %89, %86 ], [ %81, %90 ], [ -9223372036854775805, %22 ], [ -9223372036854775805, %26 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #4
  ret i64 %.0
}

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

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

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

declare zeroext i8 @DebugPrintEnabled() local_unnamed_addr #1

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

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

declare zeroext i16 @SwapBytes16(i16 noundef zeroext) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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, !11, i64 928}
!6 = !{!"_IP6_CONFIG_INSTANCE", !7, i64 0, !8, i64 4, !10, i64 8, !12, i64 24, !13, i64 32, !14, i64 168, !7, i64 176, !15, i64 180, !8, i64 184, !16, i64 800, !16, i64 840, !18, 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, !19, i64 984, !21, i64 1040}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"_LIST_ENTRY", !11, i64 0, !11, i64 8}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!"", !8, i64 0, !8, i64 64, !7, i64 68, !14, i64 72, !7, i64 104, !11, i64 112, !7, i64 120, !11, i64 128}
!14 = !{!"", !8, i64 0}
!15 = !{!"", !7, i64 0}
!16 = !{!"", !10, i64 0, !10, i64 16, !17, i64 32}
!17 = !{!"long long", !8, i64 0}
!18 = !{!"_EFI_IP6_CONFIG_PROTOCOL", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!19 = !{!"_IP6_FORM_CALLBACK_INFO", !7, i64 0, !11, i64 8, !20, i64 16, !11, i64 40, !11, i64 48}
!20 = !{!"_EFI_HII_CONFIG_ACCESS_PROTOCOL", !11, i64 0, !11, i64 8, !11, i64 16}
!21 = !{!"", !7, i64 0, !15, i64 4, !14, i64 8, !10, i64 16, !7, i64 32, !10, i64 40, !7, i64 56, !10, i64 64, !7, i64 80}
!22 = !{!23, !7, i64 0}
!23 = !{!"_IP6_SERVICE", !7, i64 0, !24, i64 8, !17, i64 24, !17, i64 32, !10, i64 40, !10, i64 56, !11, i64 72, !11, i64 80, !25, i64 88, !14, i64 136, !27, i64 2168, !14, 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, !10, i64 2232, !10, i64 2248, !10, i64 2264, !10, 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, !28, i64 2352, !29, i64 2372, !11, i64 3032, !11, i64 3040, !6, i64 3048, !11, i64 4176, !7, i64 4184, !7, i64 4188}
!24 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !11, i64 0, !11, i64 8}
!25 = !{!"", !7, i64 0, !11, i64 8, !11, i64 16, !26, i64 24}
!26 = !{!"", !11, i64 0, !17, i64 8, !8, i64 16}
!27 = !{!"", !17, i64 0, !10, i64 8}
!28 = !{!"", !7, i64 0, !7, i64 4, !12, i64 8, !8, i64 10, !8, i64 11, !8, i64 12, !8, i64 13, !8, i64 14, !8, i64 15, !8, i64 16}
!29 = !{!"", !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, !14, i64 552, !14, i64 584, !14, i64 616, !8, i64 648, !8, i64 649, !8, i64 650, !8, i64 651, !8, i64 652}
!30 = !{!6, !8, i64 944}
!31 = !{!23, !11, i64 2328}
!32 = !{!23, !11, i64 2320}
!33 = !{!6, !11, i64 912}
!34 = !{!11, !11, i64 0}
!35 = !{!36, !11, i64 112}
!36 = !{!"", !37, 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}
!37 = !{!"", !17, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20}
!38 = !{!36, !11, i64 280}
!39 = !{!6, !11, i64 936}
!40 = !{!41, !11, i64 8}
!41 = !{!"_EFI_DHCP6_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, !11, i64 64}
!42 = !{!43, !12, i64 0}
!43 = !{!"", !12, i64 0, !12, i64 2, !8, i64 4}
!44 = !{!43, !12, i64 2}
!45 = !{!12, !12, i64 0}
!46 = !{!47, !7, i64 16}
!47 = !{!"", !11, i64 0, !11, i64 8, !7, i64 16, !11, i64 24, !48, i64 32, !11, i64 40, !8, i64 48, !8, i64 49, !11, i64 56}
!48 = !{!"", !12, i64 0, !7, i64 4}
!49 = !{!47, !11, i64 24}
!50 = !{!47, !12, i64 32}
!51 = !{!6, !7, i64 948}
!52 = !{!47, !7, i64 36}
!53 = !{!6, !11, i64 952}
!54 = !{!47, !11, i64 40}
!55 = !{!47, !8, i64 48}
!56 = !{!47, !8, i64 49}
!57 = !{!47, !11, i64 56}
!58 = !{!23, !8, i64 2208}
!59 = !{!41, !11, i64 16}
!60 = !{!23, !8, i64 2210}
!61 = !{!7, !7, i64 0}
!62 = !{!41, !11, i64 24}
!63 = !{!23, !8, i64 2211}


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