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

; 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._EFI_IP6_HEADER = type { i16, i16, i16, i8, i8, %struct.EFI_IPv6_ADDRESS, %struct.EFI_IPv6_ADDRESS }
%struct._IP6_PROTOCOL = type { i32, %struct._EFI_IP6_PROTOCOL, ptr, i64, ptr, %struct._LIST_ENTRY, i8, %struct.NET_MAP, %struct.NET_MAP, %struct._LIST_ENTRY, %struct._LIST_ENTRY, %struct.EFI_LOCK, ptr, %struct._LIST_ENTRY, ptr, i32, %struct.EFI_IP6_CONFIG_DATA, i8 }
%struct._EFI_IP6_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_LOCK = type { i64, i64, i32 }
%struct.EFI_IP6_CONFIG_DATA = type { i8, i8, i8, i8, %struct.EFI_IPv6_ADDRESS, %struct.EFI_IPv6_ADDRESS, i8, i8, i32, i32, i32 }
%struct.NET_BUF = type { i32, i64, %struct._LIST_ENTRY, %union.NET_IP_HEAD, ptr, ptr, [64 x i8], ptr, i32, i32, [1 x %struct.NET_BLOCK_OP] }
%union.NET_IP_HEAD = type { ptr }
%struct.NET_BLOCK_OP = type { ptr, ptr, ptr, ptr, i32 }
%struct.EFI_UDP_HEADER = type { i16, i16, i16, i16 }
%struct.TCP_HEAD = type { i16, i16, i32, i32, i8, i8, i16, i16, i16 }
%struct.IP6_ICMP_HEAD = type { i8, i8, i16 }
%struct.IP6_ROUTE_CACHE_ENTRY = type { %struct._LIST_ENTRY, i64, i64, %struct.EFI_IPv6_ADDRESS, %struct.EFI_IPv6_ADDRESS, %struct.EFI_IPv6_ADDRESS }
%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 }
%struct.IP6_ROUTE_ENTRY = type { %struct._LIST_ENTRY, i64, i32, i8, %struct.EFI_IPv6_ADDRESS, %struct.EFI_IPv6_ADDRESS }
%struct.IP6_TXTOKEN_WRAP = type { ptr, ptr, ptr, ptr, i8, i64 }
%struct.EFI_IP6_COMPLETION_TOKEN = type { ptr, i64, %union.anon.0 }
%union.anon.0 = type { ptr }

@.str = external hidden unnamed_addr constant [131 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@mIp6Id = external dso_local global i32, align 4
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1

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

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

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

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

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

declare void @NetbufFree(ptr noundef) #1

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

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

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

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

declare void @FreePool(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i64 @Ip6Output(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef %7, ptr noundef %8) #2 {
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %struct.EFI_IPv6_ADDRESS, align 1
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i16, align 2
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca ptr, align 8
  %33 = alloca i16, align 2
  %34 = alloca i16, align 2
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca i32, align 4
  %42 = alloca ptr, align 8
  %43 = alloca ptr, align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  %46 = alloca ptr, align 8
  %47 = alloca ptr, align 8
  %48 = alloca i8, align 1
  %49 = alloca i8, align 1
  %50 = alloca i8, align 1
  %51 = alloca ptr, align 8
  %52 = alloca i8, align 1
  %53 = alloca %struct.EFI_IPv6_ADDRESS, align 1
  %54 = alloca %struct.EFI_IPv6_ADDRESS, align 1
  %55 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store i32 %6, ptr %17, align 4, !tbaa !9
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 2, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %46) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %48) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %49) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %50) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %51) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %52) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %53) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #3
  br label %56

56:                                               ; preds = %9
  %57 = call zeroext i8 @DebugAssertEnabled()
  %58 = icmp ne i8 %57, 0
  br i1 %58, label %59, label %69

59:                                               ; preds = %56
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %67

62:                                               ; preds = %59
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct._IP6_SERVICE, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !11
  %66 = icmp eq i32 %65, 1396068425
  br i1 %66, label %68, label %67

67:                                               ; preds = %62, %59
  call void @DebugAssert(ptr noundef @.str, i64 noundef 530, ptr noundef @.str.2)
  br label %68

68:                                               ; preds = %67, %62
  br label %69

69:                                               ; preds = %68, %56
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = and i32 %72, 7
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %76

75:                                               ; preds = %71
  store i64 -9223372036854775806, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

76:                                               ; preds = %71
  store ptr null, ptr %28, align 8, !tbaa !5
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %77, i32 0, i32 3
  %79 = load ptr, ptr %16, align 8, !tbaa !5
  %80 = load i32, ptr %17, align 4, !tbaa !9
  %81 = call zeroext i8 @Ip6IsExtsValid(ptr noundef null, ptr noundef null, ptr noundef %78, ptr noundef %79, i32 noundef %80, i8 noundef zeroext 0, ptr noundef null, ptr noundef %28, ptr noundef null, ptr noundef null, ptr noundef null)
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %82, ptr %20, align 8, !tbaa !5
  %83 = load ptr, ptr %20, align 8, !tbaa !5
  %84 = icmp eq ptr %83, null
  br i1 %84, label %85, label %112

85:                                               ; preds = %76
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = icmp eq ptr %86, null
  br i1 %87, label %93, label %88

88:                                               ; preds = %85
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct._IP6_PROTOCOL, ptr %89, i32 0, i32 12
  %91 = load ptr, ptr %90, align 8, !tbaa !31
  %92 = icmp eq ptr %91, null
  br i1 %92, label %93, label %107

93:                                               ; preds = %88, %85
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = load ptr, ptr %15, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %95, i32 0, i32 6
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %97, i32 0, i32 5
  %99 = call ptr @Ip6SelectInterface(ptr noundef %94, ptr noundef %96, ptr noundef %98)
  store ptr %99, ptr %20, align 8, !tbaa !5
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %106

102:                                              ; preds = %93
  %103 = load ptr, ptr %20, align 8, !tbaa !5
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct._IP6_PROTOCOL, ptr %104, i32 0, i32 12
  store ptr %103, ptr %105, align 8, !tbaa !31
  br label %106

106:                                              ; preds = %102, %93
  br label %111

107:                                              ; preds = %88
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct._IP6_PROTOCOL, ptr %108, i32 0, i32 12
  %110 = load ptr, ptr %109, align 8, !tbaa !31
  store ptr %110, ptr %20, align 8, !tbaa !5
  br label %111

111:                                              ; preds = %107, %106
  br label %112

112:                                              ; preds = %111, %76
  %113 = load ptr, ptr %20, align 8, !tbaa !5
  %114 = icmp eq ptr %113, null
  br i1 %114, label %115, label %116

115:                                              ; preds = %112
  store i64 -9223372036854775791, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

116:                                              ; preds = %112
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = load i16, ptr %117, align 1
  %119 = and i16 %118, -241
  %120 = or i16 %119, 96
  store i16 %120, ptr %117, align 1
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  %122 = load i16, ptr %121, align 1
  %123 = and i16 %122, 4095
  %124 = or i16 %123, 0
  store i16 %124, ptr %121, align 1
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = load i16, ptr %125, align 1
  %127 = and i16 %126, -16
  %128 = or i16 %127, 0
  store i16 %128, ptr %125, align 1
  store ptr null, ptr %32, align 8, !tbaa !5
  %129 = load ptr, ptr %28, align 8, !tbaa !5
  %130 = load i8, ptr %129, align 1, !tbaa !36
  store i8 %130, ptr %48, align 1, !tbaa !36
  %131 = load i8, ptr %48, align 1, !tbaa !36
  %132 = zext i8 %131 to i32
  switch i32 %132, label %225 [
    i32 17, label %133
    i32 6, label %164
    i32 58, label %195
  ]

133:                                              ; preds = %116
  %134 = load ptr, ptr %14, align 8, !tbaa !5
  %135 = call ptr @NetbufGetByte(ptr noundef %134, i32 noundef 0, ptr noundef null)
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.NET_BUF, ptr %136, i32 0, i32 5
  store ptr %135, ptr %137, align 8, !tbaa !37
  br label %138

138:                                              ; preds = %133
  %139 = call zeroext i8 @DebugAssertEnabled()
  %140 = icmp ne i8 %139, 0
  br i1 %140, label %141, label %148

141:                                              ; preds = %138
  %142 = load ptr, ptr %14, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.NET_BUF, ptr %142, i32 0, i32 5
  %144 = load ptr, ptr %143, align 8, !tbaa !37
  %145 = icmp ne ptr %144, null
  br i1 %145, label %147, label %146

146:                                              ; preds = %141
  call void @DebugAssert(ptr noundef @.str, i64 noundef 593, ptr noundef @.str.5)
  br label %147

147:                                              ; preds = %146, %141
  br label %148

148:                                              ; preds = %147, %138
  br label %149

149:                                              ; preds = %148
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.NET_BUF, ptr %151, i32 0, i32 5
  %153 = load ptr, ptr %152, align 8, !tbaa !37
  %154 = getelementptr inbounds %struct.EFI_UDP_HEADER, ptr %153, i32 0, i32 3
  %155 = load i16, ptr %154, align 1, !tbaa !39
  %156 = zext i16 %155 to i32
  %157 = icmp eq i32 %156, 0
  br i1 %157, label %158, label %163

158:                                              ; preds = %150
  %159 = load ptr, ptr %14, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.NET_BUF, ptr %159, i32 0, i32 5
  %161 = load ptr, ptr %160, align 8, !tbaa !37
  %162 = getelementptr inbounds %struct.EFI_UDP_HEADER, ptr %161, i32 0, i32 3
  store ptr %162, ptr %32, align 8, !tbaa !5
  br label %163

163:                                              ; preds = %158, %150
  br label %226

164:                                              ; preds = %116
  %165 = load ptr, ptr %14, align 8, !tbaa !5
  %166 = call ptr @NetbufGetByte(ptr noundef %165, i32 noundef 0, ptr noundef null)
  %167 = load ptr, ptr %14, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.NET_BUF, ptr %167, i32 0, i32 4
  store ptr %166, ptr %168, align 8, !tbaa !41
  br label %169

169:                                              ; preds = %164
  %170 = call zeroext i8 @DebugAssertEnabled()
  %171 = icmp ne i8 %170, 0
  br i1 %171, label %172, label %179

172:                                              ; preds = %169
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.NET_BUF, ptr %173, i32 0, i32 4
  %175 = load ptr, ptr %174, align 8, !tbaa !41
  %176 = icmp ne ptr %175, null
  br i1 %176, label %178, label %177

177:                                              ; preds = %172
  call void @DebugAssert(ptr noundef @.str, i64 noundef 601, ptr noundef @.str.6)
  br label %178

178:                                              ; preds = %177, %172
  br label %179

179:                                              ; preds = %178, %169
  br label %180

180:                                              ; preds = %179
  br label %181

181:                                              ; preds = %180
  %182 = load ptr, ptr %14, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.NET_BUF, ptr %182, i32 0, i32 4
  %184 = load ptr, ptr %183, align 8, !tbaa !41
  %185 = getelementptr inbounds %struct.TCP_HEAD, ptr %184, i32 0, i32 7
  %186 = load i16, ptr %185, align 1, !tbaa !42
  %187 = zext i16 %186 to i32
  %188 = icmp eq i32 %187, 0
  br i1 %188, label %189, label %194

189:                                              ; preds = %181
  %190 = load ptr, ptr %14, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.NET_BUF, ptr %190, i32 0, i32 4
  %192 = load ptr, ptr %191, align 8, !tbaa !41
  %193 = getelementptr inbounds %struct.TCP_HEAD, ptr %192, i32 0, i32 7
  store ptr %193, ptr %32, align 8, !tbaa !5
  br label %194

194:                                              ; preds = %189, %181
  br label %226

195:                                              ; preds = %116
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = load ptr, ptr %15, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %197, i32 0, i32 6
  %199 = call zeroext i8 @Ip6IsAnycast(ptr noundef %196, ptr noundef %198)
  %200 = icmp ne i8 %199, 0
  br i1 %200, label %201, label %202

201:                                              ; preds = %195
  store i64 -9223372036854775806, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

202:                                              ; preds = %195
  %203 = load ptr, ptr %14, align 8, !tbaa !5
  %204 = call ptr @NetbufGetByte(ptr noundef %203, i32 noundef 0, ptr noundef null)
  store ptr %204, ptr %44, align 8, !tbaa !5
  br label %205

205:                                              ; preds = %202
  %206 = call zeroext i8 @DebugAssertEnabled()
  %207 = icmp ne i8 %206, 0
  br i1 %207, label %208, label %213

208:                                              ; preds = %205
  %209 = load ptr, ptr %44, align 8, !tbaa !5
  %210 = icmp ne ptr %209, null
  br i1 %210, label %212, label %211

211:                                              ; preds = %208
  call void @DebugAssert(ptr noundef @.str, i64 noundef 616, ptr noundef @.str.7)
  br label %212

212:                                              ; preds = %211, %208
  br label %213

213:                                              ; preds = %212, %205
  br label %214

214:                                              ; preds = %213
  br label %215

215:                                              ; preds = %214
  %216 = load ptr, ptr %44, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.IP6_ICMP_HEAD, ptr %216, i32 0, i32 2
  %218 = load i16, ptr %217, align 1, !tbaa !44
  %219 = zext i16 %218 to i32
  %220 = icmp eq i32 %219, 0
  br i1 %220, label %221, label %224

221:                                              ; preds = %215
  %222 = load ptr, ptr %44, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.IP6_ICMP_HEAD, ptr %222, i32 0, i32 2
  store ptr %223, ptr %32, align 8, !tbaa !5
  br label %224

224:                                              ; preds = %221, %215
  br label %226

225:                                              ; preds = %116
  br label %226

226:                                              ; preds = %225, %224, %194, %163
  %227 = load ptr, ptr %32, align 8, !tbaa !5
  %228 = icmp ne ptr %227, null
  br i1 %228, label %229, label %248

229:                                              ; preds = %226
  %230 = load ptr, ptr %14, align 8, !tbaa !5
  %231 = call zeroext i16 @NetbufChecksum(ptr noundef %230)
  store i16 %231, ptr %33, align 2, !tbaa !46
  %232 = load ptr, ptr %15, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %232, i32 0, i32 5
  %234 = load ptr, ptr %15, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %234, i32 0, i32 6
  %236 = load i8, ptr %48, align 1, !tbaa !36
  %237 = load ptr, ptr %14, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.NET_BUF, ptr %237, i32 0, i32 9
  %239 = load i32, ptr %238, align 4, !tbaa !47
  %240 = call zeroext i16 @NetIp6PseudoHeadChecksum(ptr noundef %233, ptr noundef %235, i8 noundef zeroext %236, i32 noundef %239)
  store i16 %240, ptr %34, align 2, !tbaa !46
  %241 = load i16, ptr %33, align 2, !tbaa !46
  %242 = load i16, ptr %34, align 2, !tbaa !46
  %243 = call zeroext i16 @NetAddChecksum(i16 noundef zeroext %241, i16 noundef zeroext %242)
  %244 = zext i16 %243 to i32
  %245 = xor i32 %244, -1
  %246 = trunc i32 %245 to i16
  %247 = load ptr, ptr %32, align 8, !tbaa !5
  store i16 %246, ptr %247, align 2, !tbaa !46
  br label %248

248:                                              ; preds = %229, %226
  %249 = load ptr, ptr %11, align 8, !tbaa !5
  %250 = load ptr, ptr %28, align 8, !tbaa !5
  %251 = load ptr, ptr %19, align 8, !tbaa !5
  %252 = call i64 @Ip6IpSecProcessPacket(ptr noundef %249, ptr noundef %15, ptr noundef %250, ptr noundef %14, ptr noundef %16, ptr noundef %17, i32 noundef 1, ptr noundef %251)
  store i64 %252, ptr %24, align 8, !tbaa !48
  %253 = load i64, ptr %24, align 8, !tbaa !48
  %254 = icmp slt i64 %253, 0
  br i1 %254, label %255, label %257

255:                                              ; preds = %248
  %256 = load i64, ptr %24, align 8, !tbaa !48
  store i64 %256, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

257:                                              ; preds = %248
  store ptr null, ptr %28, align 8, !tbaa !5
  %258 = load ptr, ptr %11, align 8, !tbaa !5
  %259 = load ptr, ptr %14, align 8, !tbaa !5
  %260 = load ptr, ptr %15, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %260, i32 0, i32 3
  %262 = load ptr, ptr %16, align 8, !tbaa !5
  %263 = load i32, ptr %17, align 4, !tbaa !9
  %264 = call zeroext i8 @Ip6IsExtsValid(ptr noundef %258, ptr noundef %259, ptr noundef %261, ptr noundef %262, i32 noundef %263, i8 noundef zeroext 0, ptr noundef null, ptr noundef %28, ptr noundef %37, ptr noundef %30, ptr noundef null)
  %265 = icmp ne i8 %264, 0
  br i1 %265, label %267, label %266

266:                                              ; preds = %257
  store i64 -9223372036854775806, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

267:                                              ; preds = %257
  %268 = load i32, ptr %37, align 4, !tbaa !9
  %269 = and i32 %268, 7
  %270 = icmp ne i32 %269, 0
  br i1 %270, label %271, label %272

271:                                              ; preds = %267
  store i64 -9223372036854775806, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

272:                                              ; preds = %267
  %273 = load ptr, ptr %28, align 8, !tbaa !5
  %274 = load i8, ptr %273, align 1, !tbaa !36
  store i8 %274, ptr %49, align 1, !tbaa !36
  %275 = load ptr, ptr %15, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %275, i32 0, i32 6
  %277 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %276, i32 0, i32 0
  %278 = getelementptr inbounds [16 x i8], ptr %277, i64 0, i64 0
  %279 = load i8, ptr %278, align 1, !tbaa !36
  %280 = zext i8 %279 to i32
  %281 = icmp eq i32 %280, 255
  br i1 %281, label %282, label %286

282:                                              ; preds = %272
  %283 = load ptr, ptr %15, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %283, i32 0, i32 6
  %285 = call ptr @CopyMem(ptr noundef %21, ptr noundef %284, i64 noundef 16)
  br label %313

286:                                              ; preds = %272
  %287 = load ptr, ptr %11, align 8, !tbaa !5
  %288 = load ptr, ptr %15, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %288, i32 0, i32 6
  %290 = call ptr @Ip6FindNeighborEntry(ptr noundef %287, ptr noundef %289)
  store ptr %290, ptr %22, align 8, !tbaa !5
  %291 = load ptr, ptr %22, align 8, !tbaa !5
  %292 = icmp ne ptr %291, null
  br i1 %292, label %293, label %297

293:                                              ; preds = %286
  %294 = load ptr, ptr %15, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %294, i32 0, i32 6
  %296 = call ptr @CopyMem(ptr noundef %21, ptr noundef %295, i64 noundef 16)
  br label %312

297:                                              ; preds = %286
  %298 = load ptr, ptr %11, align 8, !tbaa !5
  %299 = load ptr, ptr %15, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %299, i32 0, i32 6
  %301 = load ptr, ptr %15, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %301, i32 0, i32 5
  %303 = call ptr @Ip6Route(ptr noundef %298, ptr noundef %300, ptr noundef %302)
  store ptr %303, ptr %23, align 8, !tbaa !5
  %304 = load ptr, ptr %23, align 8, !tbaa !5
  %305 = icmp eq ptr %304, null
  br i1 %305, label %306, label %307

306:                                              ; preds = %297
  store i64 -9223372036854775794, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

307:                                              ; preds = %297
  %308 = load ptr, ptr %23, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.IP6_ROUTE_CACHE_ENTRY, ptr %308, i32 0, i32 5
  %310 = call ptr @CopyMem(ptr noundef %21, ptr noundef %309, i64 noundef 16)
  %311 = load ptr, ptr %23, align 8, !tbaa !5
  call void @Ip6FreeRouteCacheEntry(ptr noundef %311)
  br label %312

312:                                              ; preds = %307, %293
  br label %313

313:                                              ; preds = %312, %282
  %314 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %21, i32 0, i32 0
  %315 = getelementptr inbounds [16 x i8], ptr %314, i64 0, i64 0
  %316 = load i8, ptr %315, align 1, !tbaa !36
  %317 = zext i8 %316 to i32
  %318 = icmp eq i32 %317, 255
  br i1 %318, label %378, label %319

319:                                              ; preds = %313
  %320 = load ptr, ptr %15, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %320, i32 0, i32 6
  %322 = load ptr, ptr %15, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %322, i32 0, i32 5
  %324 = call i64 @CompareMem(ptr noundef %321, ptr noundef %323, i64 noundef 16)
  %325 = icmp eq i64 %324, 0
  br i1 %325, label %378, label %326

326:                                              ; preds = %319
  %327 = load ptr, ptr %11, align 8, !tbaa !5
  %328 = call ptr @Ip6FindNeighborEntry(ptr noundef %327, ptr noundef %21)
  store ptr %328, ptr %22, align 8, !tbaa !5
  %329 = load ptr, ptr %22, align 8, !tbaa !5
  %330 = icmp eq ptr %329, null
  br i1 %330, label %331, label %374

331:                                              ; preds = %326
  %332 = load ptr, ptr %11, align 8, !tbaa !5
  %333 = call ptr @Ip6CreateNeighborEntry(ptr noundef %332, ptr noundef @Ip6OnArpResolved, ptr noundef %21, ptr noundef null)
  store ptr %333, ptr %22, align 8, !tbaa !5
  %334 = load ptr, ptr %22, align 8, !tbaa !5
  %335 = icmp eq ptr %334, null
  br i1 %335, label %336, label %337

336:                                              ; preds = %331
  store i64 -9223372036854775799, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

337:                                              ; preds = %331
  %338 = load ptr, ptr %22, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %338, i32 0, i32 6
  call void @Ip6CreateSNMulticastAddr(ptr noundef %339, ptr noundef %54)
  %340 = load ptr, ptr %11, align 8, !tbaa !5
  %341 = load ptr, ptr %22, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %341, i32 0, i32 6
  %343 = call i64 @Ip6SelectSourceAddress(ptr noundef %340, ptr noundef %342, ptr noundef %53)
  store i64 %343, ptr %24, align 8, !tbaa !48
  %344 = load i64, ptr %24, align 8, !tbaa !48
  %345 = icmp slt i64 %344, 0
  br i1 %345, label %346, label %348

346:                                              ; preds = %337
  %347 = load i64, ptr %24, align 8, !tbaa !48
  store i64 %347, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

348:                                              ; preds = %337
  %349 = load ptr, ptr %11, align 8, !tbaa !5
  %350 = load ptr, ptr %22, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %350, i32 0, i32 6
  %352 = load ptr, ptr %11, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct._IP6_SERVICE, ptr %352, i32 0, i32 36
  %354 = getelementptr inbounds %struct.EFI_SIMPLE_NETWORK_MODE, ptr %353, i32 0, i32 11
  %355 = call i64 @Ip6SendNeighborSolicit(ptr noundef %349, ptr noundef %53, ptr noundef %54, ptr noundef %351, ptr noundef %354)
  store i64 %355, ptr %24, align 8, !tbaa !48
  %356 = load i64, ptr %24, align 8, !tbaa !48
  %357 = icmp slt i64 %356, 0
  br i1 %357, label %358, label %360

358:                                              ; preds = %348
  %359 = load i64, ptr %24, align 8, !tbaa !48
  store i64 %359, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

360:                                              ; preds = %348
  %361 = load ptr, ptr %22, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %361, i32 0, i32 9
  %363 = load i32, ptr %362, align 8, !tbaa !49
  %364 = add i32 %363, -1
  store i32 %364, ptr %362, align 8, !tbaa !49
  %365 = load ptr, ptr %11, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct._IP6_SERVICE, ptr %365, i32 0, i32 20
  %367 = load i32, ptr %366, align 4, !tbaa !51
  %368 = add i32 %367, 100
  %369 = sub i32 %368, 1
  %370 = udiv i32 %369, 100
  %371 = add i32 %370, 1
  %372 = load ptr, ptr %22, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %372, i32 0, i32 10
  store i32 %371, ptr %373, align 4, !tbaa !52
  br label %374

374:                                              ; preds = %360, %326
  %375 = load ptr, ptr %20, align 8, !tbaa !5
  %376 = load ptr, ptr %22, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct._IP6_NEIGHBOR_ENTRY, ptr %376, i32 0, i32 12
  store ptr %375, ptr %377, align 8, !tbaa !53
  br label %378

378:                                              ; preds = %374, %319, %313
  store ptr null, ptr %47, align 8, !tbaa !5
  store ptr null, ptr %51, align 8, !tbaa !5
  store i8 0, ptr %52, align 1, !tbaa !36
  store i8 0, ptr %50, align 1, !tbaa !36
  %379 = load ptr, ptr %11, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct._IP6_SERVICE, ptr %379, i32 0, i32 7
  %381 = load ptr, ptr %380, align 8, !tbaa !54
  %382 = load ptr, ptr %15, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %382, i32 0, i32 6
  %384 = call ptr @Ip6FindRouteEntry(ptr noundef %381, ptr noundef %383, ptr noundef null)
  store ptr %384, ptr %46, align 8, !tbaa !5
  %385 = load ptr, ptr %46, align 8, !tbaa !5
  %386 = icmp ne ptr %385, null
  br i1 %386, label %387, label %433

387:                                              ; preds = %378
  %388 = load ptr, ptr %46, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.IP6_ROUTE_ENTRY, ptr %388, i32 0, i32 2
  %390 = load i32, ptr %389, align 8, !tbaa !55
  %391 = and i32 %390, 16
  %392 = icmp eq i32 %391, 16
  br i1 %392, label %393, label %431

393:                                              ; preds = %387
  %394 = load ptr, ptr %11, align 8, !tbaa !5
  %395 = load ptr, ptr %15, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %395, i32 0, i32 3
  %397 = load i8, ptr %396, align 1, !tbaa !57
  %398 = load i8, ptr %49, align 1, !tbaa !36
  %399 = load ptr, ptr %16, align 8, !tbaa !5
  %400 = load i32, ptr %17, align 4, !tbaa !9
  %401 = call i64 @Ip6FillFragmentHeader(ptr noundef %394, i8 noundef zeroext %397, i8 noundef zeroext %398, ptr noundef %399, i32 noundef %400, i16 noundef zeroext 0, ptr noundef %47)
  store i64 %401, ptr %24, align 8, !tbaa !48
  %402 = load i64, ptr %24, align 8, !tbaa !48
  %403 = icmp slt i64 %402, 0
  br i1 %403, label %404, label %406

404:                                              ; preds = %393
  %405 = load i64, ptr %24, align 8, !tbaa !48
  store i64 %405, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

406:                                              ; preds = %393
  %407 = load ptr, ptr %16, align 8, !tbaa !5
  %408 = icmp eq ptr %407, null
  br i1 %408, label %409, label %418

409:                                              ; preds = %406
  %410 = load i32, ptr %17, align 4, !tbaa !9
  %411 = icmp eq i32 %410, 0
  br i1 %411, label %412, label %418

412:                                              ; preds = %409
  %413 = load ptr, ptr %15, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %413, i32 0, i32 3
  %415 = load i8, ptr %414, align 1, !tbaa !57
  store i8 %415, ptr %52, align 1, !tbaa !36
  %416 = load ptr, ptr %15, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %416, i32 0, i32 3
  store i8 44, ptr %417, align 1, !tbaa !57
  br label %418

418:                                              ; preds = %412, %409, %406
  %419 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %419, ptr %51, align 8, !tbaa !5
  %420 = load ptr, ptr %47, align 8, !tbaa !5
  store ptr %420, ptr %16, align 8, !tbaa !5
  %421 = load i32, ptr %17, align 4, !tbaa !9
  %422 = zext i32 %421 to i64
  %423 = add i64 %422, 8
  %424 = trunc i64 %423 to i32
  store i32 %424, ptr %17, align 4, !tbaa !9
  %425 = load i32, ptr %37, align 4, !tbaa !9
  %426 = zext i32 %425 to i64
  %427 = add i64 %426, 8
  %428 = trunc i64 %427 to i32
  store i32 %428, ptr %37, align 4, !tbaa !9
  %429 = load i32, ptr @mIp6Id, align 4, !tbaa !9
  %430 = add i32 %429, 1
  store i32 %430, ptr @mIp6Id, align 4, !tbaa !9
  store i8 1, ptr %50, align 1, !tbaa !36
  br label %431

431:                                              ; preds = %418, %387
  %432 = load ptr, ptr %46, align 8, !tbaa !5
  call void @Ip6FreeRouteEntry(ptr noundef %432)
  br label %433

433:                                              ; preds = %431, %378
  %434 = load ptr, ptr %11, align 8, !tbaa !5
  %435 = getelementptr inbounds %struct._IP6_SERVICE, ptr %434, i32 0, i32 41
  %436 = load i32, ptr %435, align 8, !tbaa !59
  %437 = zext i32 %436 to i64
  %438 = add i64 %437, 40
  %439 = trunc i64 %438 to i32
  store i32 %439, ptr %25, align 4, !tbaa !9
  %440 = load i32, ptr %37, align 4, !tbaa !9
  %441 = zext i32 %440 to i64
  %442 = add i64 40, %441
  %443 = trunc i64 %442 to i32
  store i32 %443, ptr %26, align 4, !tbaa !9
  %444 = load ptr, ptr %14, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.NET_BUF, ptr %444, i32 0, i32 9
  %446 = load i32, ptr %445, align 4, !tbaa !47
  %447 = load i32, ptr %26, align 4, !tbaa !9
  %448 = add i32 %446, %447
  %449 = load i32, ptr %25, align 4, !tbaa !9
  %450 = icmp ugt i32 %448, %449
  br i1 %450, label %451, label %646

451:                                              ; preds = %433
  %452 = load i8, ptr %50, align 1, !tbaa !36
  %453 = icmp ne i8 %452, 0
  br i1 %453, label %454, label %470

454:                                              ; preds = %451
  %455 = load ptr, ptr %51, align 8, !tbaa !5
  store ptr %455, ptr %16, align 8, !tbaa !5
  %456 = load i32, ptr %17, align 4, !tbaa !9
  %457 = zext i32 %456 to i64
  %458 = sub i64 %457, 8
  %459 = trunc i64 %458 to i32
  store i32 %459, ptr %17, align 4, !tbaa !9
  %460 = load ptr, ptr %16, align 8, !tbaa !5
  %461 = icmp eq ptr %460, null
  br i1 %461, label %462, label %469

462:                                              ; preds = %454
  %463 = load i32, ptr %17, align 4, !tbaa !9
  %464 = icmp eq i32 %463, 0
  br i1 %464, label %465, label %469

465:                                              ; preds = %462
  %466 = load i8, ptr %52, align 1, !tbaa !36
  %467 = load ptr, ptr %15, align 8, !tbaa !5
  %468 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %467, i32 0, i32 3
  store i8 %466, ptr %468, align 1, !tbaa !57
  br label %469

469:                                              ; preds = %465, %462, %454
  br label %470

470:                                              ; preds = %469, %451
  %471 = load i32, ptr %17, align 4, !tbaa !9
  %472 = load i32, ptr %30, align 4, !tbaa !9
  %473 = sub i32 %471, %472
  store i32 %473, ptr %31, align 4, !tbaa !9
  %474 = load ptr, ptr %14, align 8, !tbaa !5
  %475 = getelementptr inbounds %struct.NET_BUF, ptr %474, i32 0, i32 9
  %476 = load i32, ptr %475, align 4, !tbaa !47
  %477 = load i32, ptr %31, align 4, !tbaa !9
  %478 = add i32 %476, %477
  %479 = lshr i32 %478, 3
  %480 = and i32 %479, -8192
  %481 = icmp ne i32 %480, 0
  br i1 %481, label %482, label %483

482:                                              ; preds = %470
  store i64 -9223372036854775804, ptr %24, align 8, !tbaa !48
  br label %697

483:                                              ; preds = %470
  %484 = load i32, ptr %31, align 4, !tbaa !9
  %485 = icmp ne i32 %484, 0
  br i1 %485, label %486, label %528

486:                                              ; preds = %483
  %487 = load ptr, ptr %14, align 8, !tbaa !5
  %488 = load ptr, ptr %14, align 8, !tbaa !5
  %489 = getelementptr inbounds %struct.NET_BUF, ptr %488, i32 0, i32 9
  %490 = load i32, ptr %489, align 4, !tbaa !47
  %491 = load i32, ptr %31, align 4, !tbaa !9
  %492 = call ptr @NetbufGetFragment(ptr noundef %487, i32 noundef 0, i32 noundef %490, i32 noundef %491)
  store ptr %492, ptr %39, align 8, !tbaa !5
  br label %493

493:                                              ; preds = %486
  %494 = call zeroext i8 @DebugAssertEnabled()
  %495 = icmp ne i8 %494, 0
  br i1 %495, label %496, label %501

496:                                              ; preds = %493
  %497 = load ptr, ptr %39, align 8, !tbaa !5
  %498 = icmp ne ptr %497, null
  br i1 %498, label %500, label %499

499:                                              ; preds = %496
  call void @DebugAssert(ptr noundef @.str, i64 noundef 849, ptr noundef @.str.8)
  br label %500

500:                                              ; preds = %499, %496
  br label %501

501:                                              ; preds = %500, %493
  br label %502

502:                                              ; preds = %501
  br label %503

503:                                              ; preds = %502
  %504 = load ptr, ptr %39, align 8, !tbaa !5
  %505 = load i32, ptr %31, align 4, !tbaa !9
  %506 = call ptr @NetbufAllocSpace(ptr noundef %504, i32 noundef %505, i8 noundef zeroext 1)
  store ptr %506, ptr %42, align 8, !tbaa !5
  br label %507

507:                                              ; preds = %503
  %508 = call zeroext i8 @DebugAssertEnabled()
  %509 = icmp ne i8 %508, 0
  br i1 %509, label %510, label %515

510:                                              ; preds = %507
  %511 = load ptr, ptr %42, align 8, !tbaa !5
  %512 = icmp ne ptr %511, null
  br i1 %512, label %514, label %513

513:                                              ; preds = %510
  call void @DebugAssert(ptr noundef @.str, i64 noundef 855, ptr noundef @.str.9)
  br label %514

514:                                              ; preds = %513, %510
  br label %515

515:                                              ; preds = %514, %507
  br label %516

516:                                              ; preds = %515
  br label %517

517:                                              ; preds = %516
  %518 = load ptr, ptr %42, align 8, !tbaa !5
  %519 = load ptr, ptr %16, align 8, !tbaa !5
  %520 = load i32, ptr %30, align 4, !tbaa !9
  %521 = zext i32 %520 to i64
  %522 = getelementptr inbounds i8, ptr %519, i64 %521
  %523 = load i32, ptr %31, align 4, !tbaa !9
  %524 = zext i32 %523 to i64
  %525 = call ptr @CopyMem(ptr noundef %518, ptr noundef %522, i64 noundef %524)
  %526 = load ptr, ptr %14, align 8, !tbaa !5
  call void @NetbufFree(ptr noundef %526)
  %527 = load ptr, ptr %39, align 8, !tbaa !5
  store ptr %527, ptr %14, align 8, !tbaa !5
  br label %528

528:                                              ; preds = %517, %483
  %529 = load i32, ptr %30, align 4, !tbaa !9
  %530 = zext i32 %529 to i64
  %531 = add i64 40, %530
  %532 = add i64 %531, 8
  %533 = trunc i64 %532 to i32
  store i32 %533, ptr %29, align 4, !tbaa !9
  %534 = load i32, ptr %25, align 4, !tbaa !9
  %535 = load i32, ptr %29, align 4, !tbaa !9
  %536 = sub i32 %534, %535
  %537 = and i32 %536, -8
  store i32 %537, ptr %25, align 4, !tbaa !9
  %538 = load ptr, ptr %14, align 8, !tbaa !5
  %539 = getelementptr inbounds %struct.NET_BUF, ptr %538, i32 0, i32 9
  %540 = load i32, ptr %539, align 4, !tbaa !47
  %541 = load i32, ptr %25, align 4, !tbaa !9
  %542 = add i32 %540, %541
  %543 = sub i32 %542, 1
  %544 = load i32, ptr %25, align 4, !tbaa !9
  %545 = udiv i32 %543, %544
  store i32 %545, ptr %41, align 4, !tbaa !9
  store i32 0, ptr %35, align 4, !tbaa !9
  store i32 0, ptr %38, align 4, !tbaa !9
  %546 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %546, ptr %36, align 4, !tbaa !9
  br label %547

547:                                              ; preds = %634, %528
  %548 = load i32, ptr %35, align 4, !tbaa !9
  %549 = load i32, ptr %41, align 4, !tbaa !9
  %550 = icmp ult i32 %548, %549
  br i1 %550, label %551, label %637

551:                                              ; preds = %547
  %552 = load ptr, ptr %14, align 8, !tbaa !5
  %553 = load i32, ptr %38, align 4, !tbaa !9
  %554 = load i32, ptr %36, align 4, !tbaa !9
  %555 = load i32, ptr %29, align 4, !tbaa !9
  %556 = call ptr @NetbufGetFragment(ptr noundef %552, i32 noundef %553, i32 noundef %554, i32 noundef %555)
  store ptr %556, ptr %40, align 8, !tbaa !5
  %557 = load ptr, ptr %40, align 8, !tbaa !5
  %558 = icmp eq ptr %557, null
  br i1 %558, label %559, label %560

559:                                              ; preds = %551
  store i64 -9223372036854775799, ptr %24, align 8, !tbaa !48
  br label %697

560:                                              ; preds = %551
  %561 = load i32, ptr %38, align 4, !tbaa !9
  %562 = trunc i32 %561 to i16
  %563 = zext i16 %562 to i32
  %564 = or i32 %563, 1
  %565 = trunc i32 %564 to i16
  store i16 %565, ptr %27, align 2, !tbaa !46
  %566 = load i32, ptr %35, align 4, !tbaa !9
  %567 = load i32, ptr %41, align 4, !tbaa !9
  %568 = sub i32 %567, 1
  %569 = icmp eq i32 %566, %568
  br i1 %569, label %570, label %575

570:                                              ; preds = %560
  %571 = load i16, ptr %27, align 2, !tbaa !46
  %572 = zext i16 %571 to i32
  %573 = and i32 %572, -2
  %574 = trunc i32 %573 to i16
  store i16 %574, ptr %27, align 2, !tbaa !46
  br label %575

575:                                              ; preds = %570, %560
  %576 = load ptr, ptr %11, align 8, !tbaa !5
  %577 = load ptr, ptr %40, align 8, !tbaa !5
  %578 = load ptr, ptr %15, align 8, !tbaa !5
  %579 = load i16, ptr %27, align 2, !tbaa !46
  %580 = load ptr, ptr %16, align 8, !tbaa !5
  %581 = load i32, ptr %17, align 4, !tbaa !9
  %582 = load i8, ptr %49, align 1, !tbaa !36
  %583 = load i32, ptr %29, align 4, !tbaa !9
  %584 = call i64 @Ip6PrependHead(ptr noundef %576, ptr noundef %577, ptr noundef %578, i16 noundef zeroext %579, ptr noundef %580, i32 noundef %581, i8 noundef zeroext %582, i32 noundef %583)
  store i64 %584, ptr %24, align 8, !tbaa !48
  br label %585

585:                                              ; preds = %575
  %586 = call zeroext i8 @DebugAssertEnabled()
  %587 = icmp ne i8 %586, 0
  br i1 %587, label %588, label %593

588:                                              ; preds = %585
  %589 = load i64, ptr %24, align 8, !tbaa !48
  %590 = icmp eq i64 %589, 0
  br i1 %590, label %592, label %591

591:                                              ; preds = %588
  call void @DebugAssert(ptr noundef @.str, i64 noundef 906, ptr noundef @.str.10)
  br label %592

592:                                              ; preds = %591, %588
  br label %593

593:                                              ; preds = %592, %585
  br label %594

594:                                              ; preds = %593
  br label %595

595:                                              ; preds = %594
  %596 = load ptr, ptr %20, align 8, !tbaa !5
  %597 = load ptr, ptr %13, align 8, !tbaa !5
  %598 = load ptr, ptr %40, align 8, !tbaa !5
  %599 = load ptr, ptr %14, align 8, !tbaa !5
  %600 = call i64 @Ip6SendFrame(ptr noundef %596, ptr noundef %597, ptr noundef %598, ptr noundef %21, ptr noundef @Ip6SysPacketSent, ptr noundef %599)
  store i64 %600, ptr %24, align 8, !tbaa !48
  %601 = load i64, ptr %24, align 8, !tbaa !48
  %602 = icmp slt i64 %601, 0
  br i1 %602, label %603, label %604

603:                                              ; preds = %595
  br label %697

604:                                              ; preds = %595
  %605 = load i32, ptr %35, align 4, !tbaa !9
  %606 = load i32, ptr %41, align 4, !tbaa !9
  %607 = sub i32 %606, 1
  %608 = icmp eq i32 %605, %607
  br i1 %608, label %609, label %619

609:                                              ; preds = %604
  %610 = load ptr, ptr %19, align 8, !tbaa !5
  %611 = icmp ne ptr %610, null
  br i1 %611, label %612, label %619

612:                                              ; preds = %609
  %613 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %613, ptr %45, align 8, !tbaa !5
  %614 = load i64, ptr %24, align 8, !tbaa !48
  %615 = load ptr, ptr %45, align 8, !tbaa !5
  %616 = getelementptr inbounds %struct.IP6_TXTOKEN_WRAP, ptr %615, i32 0, i32 1
  %617 = load ptr, ptr %616, align 8, !tbaa !60
  %618 = getelementptr inbounds %struct.EFI_IP6_COMPLETION_TOKEN, ptr %617, i32 0, i32 1
  store i64 %614, ptr %618, align 8, !tbaa !62
  br label %619

619:                                              ; preds = %612, %609, %604
  %620 = load i32, ptr %36, align 4, !tbaa !9
  %621 = load i32, ptr %38, align 4, !tbaa !9
  %622 = add i32 %621, %620
  store i32 %622, ptr %38, align 4, !tbaa !9
  %623 = load ptr, ptr %14, align 8, !tbaa !5
  %624 = getelementptr inbounds %struct.NET_BUF, ptr %623, i32 0, i32 9
  %625 = load i32, ptr %624, align 4, !tbaa !47
  %626 = load i32, ptr %38, align 4, !tbaa !9
  %627 = sub i32 %625, %626
  store i32 %627, ptr %36, align 4, !tbaa !9
  %628 = load i32, ptr %36, align 4, !tbaa !9
  %629 = load i32, ptr %25, align 4, !tbaa !9
  %630 = icmp ugt i32 %628, %629
  br i1 %630, label %631, label %633

631:                                              ; preds = %619
  %632 = load i32, ptr %25, align 4, !tbaa !9
  store i32 %632, ptr %36, align 4, !tbaa !9
  br label %633

633:                                              ; preds = %631, %619
  br label %634

634:                                              ; preds = %633
  %635 = load i32, ptr %35, align 4, !tbaa !9
  %636 = add i32 %635, 1
  store i32 %636, ptr %35, align 4, !tbaa !9
  br label %547, !llvm.loop !63

637:                                              ; preds = %547
  %638 = load ptr, ptr %14, align 8, !tbaa !5
  call void @NetbufFree(ptr noundef %638)
  %639 = load i32, ptr @mIp6Id, align 4, !tbaa !9
  %640 = add i32 %639, 1
  store i32 %640, ptr @mIp6Id, align 4, !tbaa !9
  %641 = load ptr, ptr %47, align 8, !tbaa !5
  %642 = icmp ne ptr %641, null
  br i1 %642, label %643, label %645

643:                                              ; preds = %637
  %644 = load ptr, ptr %47, align 8, !tbaa !5
  call void @FreePool(ptr noundef %644)
  br label %645

645:                                              ; preds = %643, %637
  store i64 0, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

646:                                              ; preds = %433
  %647 = load ptr, ptr %14, align 8, !tbaa !5
  %648 = load i32, ptr %26, align 4, !tbaa !9
  %649 = call ptr @NetbufAllocSpace(ptr noundef %647, i32 noundef %648, i8 noundef zeroext 1)
  store ptr %649, ptr %43, align 8, !tbaa !5
  %650 = load ptr, ptr %43, align 8, !tbaa !5
  %651 = icmp eq ptr %650, null
  br i1 %651, label %652, label %653

652:                                              ; preds = %646
  store i64 -9223372036854775804, ptr %24, align 8, !tbaa !48
  br label %697

653:                                              ; preds = %646
  %654 = load ptr, ptr %43, align 8, !tbaa !5
  %655 = load ptr, ptr %15, align 8, !tbaa !5
  %656 = call ptr @CopyMem(ptr noundef %654, ptr noundef %655, i64 noundef 40)
  %657 = load ptr, ptr %43, align 8, !tbaa !5
  %658 = load ptr, ptr %14, align 8, !tbaa !5
  %659 = getelementptr inbounds %struct.NET_BUF, ptr %658, i32 0, i32 3
  store ptr %657, ptr %659, align 8, !tbaa !36
  %660 = load ptr, ptr %16, align 8, !tbaa !5
  %661 = icmp ne ptr %660, null
  br i1 %661, label %662, label %670

662:                                              ; preds = %653
  %663 = load ptr, ptr %43, align 8, !tbaa !5
  %664 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %663, i64 1
  store ptr %664, ptr %42, align 8, !tbaa !5
  %665 = load ptr, ptr %42, align 8, !tbaa !5
  %666 = load ptr, ptr %16, align 8, !tbaa !5
  %667 = load i32, ptr %17, align 4, !tbaa !9
  %668 = zext i32 %667 to i64
  %669 = call ptr @CopyMem(ptr noundef %665, ptr noundef %666, i64 noundef %668)
  br label %670

670:                                              ; preds = %662, %653
  %671 = load ptr, ptr %47, align 8, !tbaa !5
  %672 = icmp ne ptr %671, null
  br i1 %672, label %673, label %690

673:                                              ; preds = %670
  %674 = load ptr, ptr %43, align 8, !tbaa !5
  %675 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %674, i32 0, i32 2
  %676 = load i16, ptr %675, align 1, !tbaa !65
  %677 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %676)
  %678 = zext i16 %677 to i64
  %679 = add i64 %678, 8
  %680 = trunc i64 %679 to i16
  %681 = load ptr, ptr %43, align 8, !tbaa !5
  %682 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %681, i32 0, i32 2
  store i16 %680, ptr %682, align 1, !tbaa !65
  %683 = load ptr, ptr %43, align 8, !tbaa !5
  %684 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %683, i32 0, i32 2
  %685 = load i16, ptr %684, align 1, !tbaa !65
  %686 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %685)
  %687 = load ptr, ptr %43, align 8, !tbaa !5
  %688 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %687, i32 0, i32 2
  store i16 %686, ptr %688, align 1, !tbaa !65
  %689 = load ptr, ptr %47, align 8, !tbaa !5
  call void @FreePool(ptr noundef %689)
  br label %690

690:                                              ; preds = %673, %670
  %691 = load ptr, ptr %20, align 8, !tbaa !5
  %692 = load ptr, ptr %13, align 8, !tbaa !5
  %693 = load ptr, ptr %14, align 8, !tbaa !5
  %694 = load ptr, ptr %18, align 8, !tbaa !5
  %695 = load ptr, ptr %19, align 8, !tbaa !5
  %696 = call i64 @Ip6SendFrame(ptr noundef %691, ptr noundef %692, ptr noundef %693, ptr noundef %21, ptr noundef %694, ptr noundef %695)
  store i64 %696, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

697:                                              ; preds = %652, %603, %559, %482
  %698 = load ptr, ptr %47, align 8, !tbaa !5
  %699 = icmp ne ptr %698, null
  br i1 %699, label %700, label %702

700:                                              ; preds = %697
  %701 = load ptr, ptr %47, align 8, !tbaa !5
  call void @FreePool(ptr noundef %701)
  br label %702

702:                                              ; preds = %700, %697
  %703 = load ptr, ptr %20, align 8, !tbaa !5
  %704 = load ptr, ptr %14, align 8, !tbaa !5
  %705 = load i64, ptr %24, align 8, !tbaa !48
  call void @Ip6CancelPacket(ptr noundef %703, ptr noundef %704, i64 noundef %705)
  %706 = load i64, ptr %24, align 8, !tbaa !48
  store i64 %706, ptr %10, align 8
  store i32 1, ptr %55, align 4
  br label %707

707:                                              ; preds = %702, %690, %645, %404, %358, %346, %336, %306, %271, %266, %255, %201, %115, %75
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %53) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %52) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %51) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %49) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %48) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %46) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  %708 = load i64, ptr %10, align 8
  ret i64 %708
}

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

declare ptr @NetbufGetByte(ptr noundef, i32 noundef, ptr noundef) #1

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

declare zeroext i16 @NetbufChecksum(ptr noundef) #1

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

declare zeroext i16 @NetAddChecksum(i16 noundef zeroext, i16 noundef zeroext) #1

declare i64 @Ip6IpSecProcessPacket(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

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

declare void @Ip6FreeRouteCacheEntry(ptr noundef) #1

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

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

declare void @Ip6OnArpResolved(ptr noundef) #1

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

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

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

declare void @Ip6FreeRouteEntry(ptr noundef) #1

declare ptr @NetbufGetFragment(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @Ip6CancelPacket(ptr noundef, ptr noundef, i64 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_IP6_SERVICE", !10, i64 0, !13, i64 8, !14, i64 24, !14, i64 32, !15, i64 40, !15, i64 56, !6, i64 72, !6, i64 80, !16, i64 88, !18, i64 136, !19, i64 2168, !18, i64 2192, !7, i64 2208, !7, i64 2209, !7, i64 2210, !7, i64 2211, !7, i64 2212, !10, i64 2216, !10, i64 2220, !10, i64 2224, !10, i64 2228, !15, i64 2232, !15, i64 2248, !15, i64 2264, !15, i64 2280, !10, i64 2296, !7, i64 2300, !6, i64 2304, !7, i64 2312, !7, i64 2313, !10, i64 2316, !6, i64 2320, !6, i64 2328, !6, i64 2336, !6, i64 2344, !20, i64 2352, !22, i64 2372, !6, i64 3032, !6, i64 3040, !23, i64 3048, !6, i64 4176, !10, i64 4184, !10, i64 4188}
!13 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!16 = !{!"", !10, i64 0, !6, i64 8, !6, i64 16, !17, i64 24}
!17 = !{!"", !6, i64 0, !14, i64 8, !7, i64 16}
!18 = !{!"", !7, i64 0}
!19 = !{!"", !14, i64 0, !15, i64 8}
!20 = !{!"", !10, i64 0, !10, i64 4, !21, i64 8, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16}
!21 = !{!"short", !7, i64 0}
!22 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !18, i64 552, !18, i64 584, !18, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!23 = !{!"_IP6_CONFIG_INSTANCE", !10, i64 0, !7, i64 4, !15, i64 8, !21, i64 24, !24, i64 32, !18, i64 168, !10, i64 176, !25, i64 180, !7, i64 184, !26, i64 800, !26, i64 840, !27, i64 880, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !7, i64 944, !10, i64 948, !6, i64 952, !10, i64 960, !6, i64 968, !10, i64 976, !28, i64 984, !30, i64 1040}
!24 = !{!"", !7, i64 0, !7, i64 64, !10, i64 68, !18, i64 72, !10, i64 104, !6, i64 112, !10, i64 120, !6, i64 128}
!25 = !{!"", !10, i64 0}
!26 = !{!"", !15, i64 0, !15, i64 16, !14, i64 32}
!27 = !{!"_EFI_IP6_CONFIG_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!28 = !{!"_IP6_FORM_CALLBACK_INFO", !10, i64 0, !6, i64 8, !29, i64 16, !6, i64 40, !6, i64 48}
!29 = !{!"_EFI_HII_CONFIG_ACCESS_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"", !10, i64 0, !25, i64 4, !18, i64 8, !15, i64 16, !10, i64 32, !15, i64 40, !10, i64 56, !15, i64 64, !10, i64 80}
!31 = !{!32, !6, i64 264}
!32 = !{!"_IP6_PROTOCOL", !10, i64 0, !33, i64 8, !6, i64 80, !14, i64 88, !6, i64 96, !15, i64 104, !7, i64 120, !26, i64 128, !26, i64 168, !15, i64 208, !15, i64 224, !34, i64 240, !6, i64 264, !15, i64 272, !6, i64 288, !10, i64 296, !35, i64 300, !7, i64 352}
!33 = !{!"_EFI_IP6_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}
!34 = !{!"", !14, i64 0, !14, i64 8, !10, i64 16}
!35 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !18, i64 4, !18, i64 20, !7, i64 36, !7, i64 37, !10, i64 40, !10, i64 44, !10, i64 48}
!36 = !{!7, !7, i64 0}
!37 = !{!38, !6, i64 48}
!38 = !{!"", !10, i64 0, !14, i64 8, !15, i64 16, !7, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !6, i64 120, !10, i64 128, !10, i64 132, !7, i64 136}
!39 = !{!40, !21, i64 6}
!40 = !{!"", !21, i64 0, !21, i64 2, !21, i64 4, !21, i64 6}
!41 = !{!38, !6, i64 40}
!42 = !{!43, !21, i64 16}
!43 = !{!"", !21, i64 0, !21, i64 2, !10, i64 4, !10, i64 8, !7, i64 12, !7, i64 12, !7, i64 13, !21, i64 14, !21, i64 16, !21, i64 18}
!44 = !{!45, !21, i64 2}
!45 = !{!"", !7, i64 0, !7, i64 1, !21, i64 2}
!46 = !{!21, !21, i64 0}
!47 = !{!38, !10, i64 132}
!48 = !{!14, !14, i64 0}
!49 = !{!50, !10, i64 96}
!50 = !{!"_IP6_NEIGHBOR_ENTRY", !15, i64 0, !15, i64 16, !14, i64 32, !7, i64 40, !7, i64 41, !7, i64 42, !18, i64 43, !18, i64 59, !10, i64 92, !10, i64 96, !10, i64 100, !15, i64 104, !6, i64 120, !6, i64 128}
!51 = !{!12, !10, i64 2228}
!52 = !{!50, !10, i64 100}
!53 = !{!50, !6, i64 120}
!54 = !{!12, !6, i64 80}
!55 = !{!56, !10, i64 24}
!56 = !{!"", !15, i64 0, !14, i64 16, !10, i64 24, !7, i64 28, !18, i64 29, !18, i64 45}
!57 = !{!58, !7, i64 6}
!58 = !{!"_EFI_IP6_HEADER", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 1, !21, i64 2, !21, i64 4, !7, i64 6, !7, i64 7, !18, i64 8, !18, i64 24}
!59 = !{!12, !10, i64 4184}
!60 = !{!61, !6, i64 8}
!61 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !14, i64 40}
!62 = !{!17, !14, i64 8}
!63 = distinct !{!63, !64}
!64 = !{!"llvm.loop.mustprogress"}
!65 = !{!58, !21, i64 4}


; 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 [131 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [25 x i8], align 1
@mIp6Id = external dso_local local_unnamed_addr global i32, align 4
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1

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

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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

; 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
declare dso_local i64 @Ip6SelectSourceAddress(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare void @NetbufFree(ptr noundef) local_unnamed_addr #1

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

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

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

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

declare void @FreePool(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i64 @Ip6Output(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #2 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.EFI_IPv6_ADDRESS, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %struct.EFI_IPv6_ADDRESS, align 1
  %20 = alloca %struct.EFI_IPv6_ADDRESS, align 1
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  store i32 %6, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #4
  %21 = tail call zeroext i8 @DebugAssertEnabled() #4
  %.not = icmp eq i8 %21, 0
  br i1 %.not, label %27, label %22

22:                                               ; preds = %9
  %.not184 = icmp eq ptr %0, null
  br i1 %.not184, label %26, label %23

23:                                               ; preds = %22
  %24 = load i32, ptr %0, align 8, !tbaa !11
  %25 = icmp eq i32 %24, 1396068425
  br i1 %25, label %27, label %26

26:                                               ; preds = %23, %22
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 530, ptr noundef nonnull @.str.2) #4
  br label %27

27:                                               ; preds = %23, %26, %9
  %28 = and i32 %6, 7
  %.not185 = icmp eq i32 %28, 0
  br i1 %.not185, label %29, label %352

29:                                               ; preds = %27
  store ptr null, ptr %15, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %4, i64 6
  %31 = call zeroext i8 @Ip6IsExtsValid(ptr noundef null, ptr noundef null, ptr noundef nonnull %30, ptr noundef %5, i32 noundef %6, i8 noundef zeroext 0, ptr noundef null, ptr noundef nonnull %15, ptr noundef null, ptr noundef null, ptr noundef null) #4
  %32 = icmp eq ptr %1, null
  br i1 %32, label %33, label %.thread208

33:                                               ; preds = %29
  %34 = icmp eq ptr %2, null
  br i1 %34, label %.thread, label %39

.thread:                                          ; preds = %33
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 24
  %37 = getelementptr inbounds i8, ptr %35, i64 8
  %38 = call ptr @Ip6SelectInterface(ptr noundef %0, ptr noundef nonnull %36, ptr noundef nonnull %37)
  br label %48

39:                                               ; preds = %33
  %40 = getelementptr inbounds i8, ptr %2, i64 264
  %41 = load ptr, ptr %40, align 8, !tbaa !31
  %42 = icmp eq ptr %41, null
  br i1 %42, label %43, label %.thread208

43:                                               ; preds = %39
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 24
  %46 = getelementptr inbounds i8, ptr %44, i64 8
  %47 = call ptr @Ip6SelectInterface(ptr noundef %0, ptr noundef nonnull %45, ptr noundef nonnull %46)
  store ptr %47, ptr %40, align 8, !tbaa !31
  br label %48

48:                                               ; preds = %.thread, %43
  %.0149 = phi ptr [ %47, %43 ], [ %38, %.thread ]
  %49 = icmp eq ptr %.0149, null
  br i1 %49, label %352, label %.thread208

.thread208:                                       ; preds = %39, %29, %48
  %.0149210 = phi ptr [ %.0149, %48 ], [ %41, %39 ], [ %1, %29 ]
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = load i16, ptr %50, align 1
  %52 = and i16 %51, -241
  %53 = or disjoint i16 %52, 96
  store i16 %53, ptr %50, align 1
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = load i16, ptr %54, align 1
  %56 = and i16 %55, 4095
  store i16 %56, ptr %54, align 1
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = load i16, ptr %57, align 1
  %59 = and i16 %58, -16
  store i16 %59, ptr %57, align 1
  %60 = load ptr, ptr %15, align 8, !tbaa !5
  %61 = load i8, ptr %60, align 1, !tbaa !36
  switch i8 %61, label %.thread214 [
    i8 17, label %62
    i8 6, label %79
    i8 58, label %96
  ]

62:                                               ; preds = %.thread208
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = call ptr @NetbufGetByte(ptr noundef %63, i32 noundef 0, ptr noundef null) #4
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %65, i64 48
  store ptr %64, ptr %66, align 8, !tbaa !37
  %67 = call zeroext i8 @DebugAssertEnabled() #4
  %.not190 = icmp eq i8 %67, 0
  %.pre223 = load ptr, ptr %10, align 8, !tbaa !5
  br i1 %.not190, label %72, label %68

68:                                               ; preds = %62
  %69 = getelementptr inbounds i8, ptr %.pre223, i64 48
  %70 = load ptr, ptr %69, align 8, !tbaa !37
  %.not191 = icmp eq ptr %70, null
  br i1 %.not191, label %71, label %72

71:                                               ; preds = %68
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 593, ptr noundef nonnull @.str.5) #4
  %.pre222 = load ptr, ptr %10, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %68, %71, %62
  %73 = phi ptr [ %.pre223, %68 ], [ %.pre222, %71 ], [ %.pre223, %62 ]
  %74 = getelementptr inbounds i8, ptr %73, i64 48
  %75 = load ptr, ptr %74, align 8, !tbaa !37
  %76 = getelementptr inbounds i8, ptr %75, i64 6
  %77 = load i16, ptr %76, align 1, !tbaa !39
  %78 = icmp eq i16 %77, 0
  br i1 %78, label %select.unfold, label %.thread214

79:                                               ; preds = %.thread208
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = call ptr @NetbufGetByte(ptr noundef %80, i32 noundef 0, ptr noundef null) #4
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds i8, ptr %82, i64 40
  store ptr %81, ptr %83, align 8, !tbaa !41
  %84 = call zeroext i8 @DebugAssertEnabled() #4
  %.not188 = icmp eq i8 %84, 0
  %.pre221 = load ptr, ptr %10, align 8, !tbaa !5
  br i1 %.not188, label %89, label %85

85:                                               ; preds = %79
  %86 = getelementptr inbounds i8, ptr %.pre221, i64 40
  %87 = load ptr, ptr %86, align 8, !tbaa !41
  %.not189 = icmp eq ptr %87, null
  br i1 %.not189, label %88, label %89

88:                                               ; preds = %85
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 601, ptr noundef nonnull @.str.6) #4
  %.pre = load ptr, ptr %10, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %85, %88, %79
  %90 = phi ptr [ %.pre221, %85 ], [ %.pre, %88 ], [ %.pre221, %79 ]
  %91 = getelementptr inbounds i8, ptr %90, i64 40
  %92 = load ptr, ptr %91, align 8, !tbaa !41
  %93 = getelementptr inbounds i8, ptr %92, i64 16
  %94 = load i16, ptr %93, align 1, !tbaa !42
  %95 = icmp eq i16 %94, 0
  br i1 %95, label %select.unfold, label %.thread214

96:                                               ; preds = %.thread208
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  %98 = getelementptr inbounds i8, ptr %97, i64 24
  %99 = call zeroext i8 @Ip6IsAnycast(ptr noundef %0, ptr noundef nonnull %98) #4
  %.not187 = icmp eq i8 %99, 0
  br i1 %.not187, label %100, label %352

100:                                              ; preds = %96
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = call ptr @NetbufGetByte(ptr noundef %101, i32 noundef 0, ptr noundef null) #4
  %103 = call zeroext i8 @DebugAssertEnabled() #4
  %104 = icmp eq i8 %103, 0
  %105 = icmp ne ptr %102, null
  %or.cond7 = select i1 %104, i1 true, i1 %105
  br i1 %or.cond7, label %107, label %106

106:                                              ; preds = %100
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 616, ptr noundef nonnull @.str.7) #4
  br label %107

107:                                              ; preds = %106, %100
  %108 = getelementptr inbounds i8, ptr %102, i64 2
  %109 = load i16, ptr %108, align 1, !tbaa !44
  %110 = icmp eq i16 %109, 0
  br i1 %110, label %.select.unfold_crit_edge, label %.thread214

.select.unfold_crit_edge:                         ; preds = %107
  %.pre224 = load ptr, ptr %10, align 8, !tbaa !5
  br label %select.unfold

select.unfold:                                    ; preds = %.select.unfold_crit_edge, %89, %72
  %111 = phi ptr [ %73, %72 ], [ %90, %89 ], [ %.pre224, %.select.unfold_crit_edge ]
  %.0153 = phi ptr [ %76, %72 ], [ %93, %89 ], [ %108, %.select.unfold_crit_edge ]
  %112 = call zeroext i16 @NetbufChecksum(ptr noundef %111) #4
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  %114 = getelementptr inbounds i8, ptr %113, i64 8
  %115 = getelementptr inbounds i8, ptr %113, i64 24
  %116 = load ptr, ptr %10, align 8, !tbaa !5
  %117 = getelementptr inbounds i8, ptr %116, i64 132
  %118 = load i32, ptr %117, align 4, !tbaa !46
  %119 = call zeroext i16 @NetIp6PseudoHeadChecksum(ptr noundef nonnull %114, ptr noundef nonnull %115, i8 noundef zeroext %61, i32 noundef %118) #4
  %120 = call zeroext i16 @NetAddChecksum(i16 noundef zeroext %112, i16 noundef zeroext %119) #4
  %121 = xor i16 %120, -1
  store i16 %121, ptr %.0153, align 2, !tbaa !47
  br label %.thread214

.thread214:                                       ; preds = %107, %89, %72, %.thread208, %select.unfold
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = call i64 @Ip6IpSecProcessPacket(ptr noundef %0, ptr noundef nonnull %11, ptr noundef %122, ptr noundef nonnull %10, ptr noundef nonnull %12, ptr noundef nonnull %13, i32 noundef 1, ptr noundef %8) #4
  %124 = icmp slt i64 %123, 0
  br i1 %124, label %352, label %125

125:                                              ; preds = %.thread214
  store ptr null, ptr %15, align 8, !tbaa !5
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = load ptr, ptr %11, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i64 6
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = load i32, ptr %13, align 4, !tbaa !9
  %131 = call zeroext i8 @Ip6IsExtsValid(ptr noundef %0, ptr noundef %126, ptr noundef nonnull %128, ptr noundef %129, i32 noundef %130, i8 noundef zeroext 0, ptr noundef null, ptr noundef nonnull %15, ptr noundef nonnull %17, ptr noundef nonnull %16, ptr noundef null) #4
  %.not193 = icmp eq i8 %131, 0
  br i1 %.not193, label %352, label %132

132:                                              ; preds = %125
  %133 = load i32, ptr %17, align 4, !tbaa !9
  %134 = and i32 %133, 7
  %.not194 = icmp eq i32 %134, 0
  br i1 %.not194, label %135, label %352

135:                                              ; preds = %132
  %136 = load ptr, ptr %15, align 8, !tbaa !5
  %137 = load i8, ptr %136, align 1, !tbaa !36
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %138, i64 24
  %140 = load i8, ptr %139, align 1, !tbaa !36
  %141 = icmp eq i8 %140, -1
  br i1 %141, label %142, label %144

142:                                              ; preds = %135
  %143 = call ptr @CopyMem(ptr noundef nonnull %14, ptr noundef nonnull %139, i64 noundef 16) #4
  br label %157

144:                                              ; preds = %135
  %145 = call ptr @Ip6FindNeighborEntry(ptr noundef %0, ptr noundef nonnull %139) #4
  %.not195 = icmp eq ptr %145, null
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = getelementptr inbounds i8, ptr %146, i64 24
  br i1 %.not195, label %150, label %148

148:                                              ; preds = %144
  %149 = call ptr @CopyMem(ptr noundef nonnull %14, ptr noundef nonnull %147, i64 noundef 16) #4
  br label %157

150:                                              ; preds = %144
  %151 = getelementptr inbounds i8, ptr %146, i64 8
  %152 = call ptr @Ip6Route(ptr noundef %0, ptr noundef nonnull %147, ptr noundef nonnull %151) #4
  %153 = icmp eq ptr %152, null
  br i1 %153, label %352, label %154

154:                                              ; preds = %150
  %155 = getelementptr inbounds i8, ptr %152, i64 64
  %156 = call ptr @CopyMem(ptr noundef nonnull %14, ptr noundef nonnull %155, i64 noundef 16) #4
  call void @Ip6FreeRouteCacheEntry(ptr noundef nonnull %152) #4
  br label %157

157:                                              ; preds = %148, %154, %142
  %158 = load i8, ptr %14, align 1, !tbaa !36
  %159 = icmp eq i8 %158, -1
  br i1 %159, label %192, label %160

160:                                              ; preds = %157
  %161 = load ptr, ptr %11, align 8, !tbaa !5
  %162 = getelementptr inbounds i8, ptr %161, i64 24
  %163 = getelementptr inbounds i8, ptr %161, i64 8
  %164 = call i64 @CompareMem(ptr noundef nonnull %162, ptr noundef nonnull %163, i64 noundef 16) #4
  %165 = icmp eq i64 %164, 0
  br i1 %165, label %192, label %166

166:                                              ; preds = %160
  %167 = call ptr @Ip6FindNeighborEntry(ptr noundef %0, ptr noundef nonnull %14) #4
  %168 = icmp eq ptr %167, null
  br i1 %168, label %169, label %190

169:                                              ; preds = %166
  %170 = call ptr @Ip6CreateNeighborEntry(ptr noundef %0, ptr noundef nonnull @Ip6OnArpResolved, ptr noundef nonnull %14, ptr noundef null) #4
  %171 = icmp eq ptr %170, null
  br i1 %171, label %352, label %172

172:                                              ; preds = %169
  %173 = getelementptr inbounds i8, ptr %170, i64 43
  call void @Ip6CreateSNMulticastAddr(ptr noundef nonnull %173, ptr noundef nonnull %20) #4
  %174 = call i64 @Ip6SelectSourceAddress(ptr noundef %0, ptr noundef nonnull %173, ptr noundef nonnull %19)
  %175 = icmp slt i64 %174, 0
  br i1 %175, label %352, label %176

176:                                              ; preds = %172
  %177 = getelementptr inbounds i8, ptr %0, i64 2924
  %178 = call i64 @Ip6SendNeighborSolicit(ptr noundef %0, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %173, ptr noundef nonnull %177) #4
  %179 = icmp slt i64 %178, 0
  br i1 %179, label %352, label %180

180:                                              ; preds = %176
  %181 = getelementptr inbounds i8, ptr %170, i64 96
  %182 = load i32, ptr %181, align 8, !tbaa !48
  %183 = add i32 %182, -1
  store i32 %183, ptr %181, align 8, !tbaa !48
  %184 = getelementptr inbounds i8, ptr %0, i64 2228
  %185 = load i32, ptr %184, align 4, !tbaa !50
  %186 = add i32 %185, 99
  %187 = udiv i32 %186, 100
  %188 = add nuw nsw i32 %187, 1
  %189 = getelementptr inbounds i8, ptr %170, i64 100
  store i32 %188, ptr %189, align 4, !tbaa !51
  br label %190

190:                                              ; preds = %180, %166
  %.0150 = phi ptr [ %170, %180 ], [ %167, %166 ]
  %191 = getelementptr inbounds i8, ptr %.0150, i64 120
  store ptr %.0149210, ptr %191, align 8, !tbaa !52
  br label %192

192:                                              ; preds = %190, %160, %157
  store ptr null, ptr %18, align 8, !tbaa !5
  %193 = getelementptr inbounds i8, ptr %0, i64 80
  %194 = load ptr, ptr %193, align 8, !tbaa !53
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  %196 = getelementptr inbounds i8, ptr %195, i64 24
  %197 = call ptr @Ip6FindRouteEntry(ptr noundef %194, ptr noundef nonnull %196, ptr noundef null) #4
  %.not196 = icmp eq ptr %197, null
  br i1 %.not196, label %227, label %198

198:                                              ; preds = %192
  %199 = getelementptr inbounds i8, ptr %197, i64 24
  %200 = load i32, ptr %199, align 8, !tbaa !54
  %201 = and i32 %200, 16
  %.not197 = icmp eq i32 %201, 0
  br i1 %.not197, label %226, label %202

202:                                              ; preds = %198
  %203 = load ptr, ptr %11, align 8, !tbaa !5
  %204 = getelementptr inbounds i8, ptr %203, i64 6
  %205 = load i8, ptr %204, align 1, !tbaa !56
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  %207 = load i32, ptr %13, align 4, !tbaa !9
  %208 = call i64 @Ip6FillFragmentHeader(ptr noundef nonnull %0, i8 noundef zeroext %205, i8 noundef zeroext %137, ptr noundef %206, i32 noundef %207, i16 noundef zeroext 0, ptr noundef nonnull %18) #4
  %209 = icmp slt i64 %208, 0
  br i1 %209, label %352, label %210

210:                                              ; preds = %202
  %211 = load ptr, ptr %12, align 8, !tbaa !5
  %212 = icmp eq ptr %211, null
  %213 = load i32, ptr %13, align 4
  %214 = icmp eq i32 %213, 0
  %or.cond = select i1 %212, i1 %214, i1 false
  br i1 %or.cond, label %215, label %219

215:                                              ; preds = %210
  %216 = load ptr, ptr %11, align 8, !tbaa !5
  %217 = getelementptr inbounds i8, ptr %216, i64 6
  %218 = load i8, ptr %217, align 1, !tbaa !56
  store i8 44, ptr %217, align 1, !tbaa !56
  br label %219

219:                                              ; preds = %215, %210
  %.0 = phi i8 [ %218, %215 ], [ 0, %210 ]
  %220 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %220, ptr %12, align 8, !tbaa !5
  %221 = add i32 %213, 8
  store i32 %221, ptr %13, align 4, !tbaa !9
  %222 = load i32, ptr %17, align 4, !tbaa !9
  %223 = add i32 %222, 8
  store i32 %223, ptr %17, align 4, !tbaa !9
  %224 = load i32, ptr @mIp6Id, align 4, !tbaa !9
  %225 = add i32 %224, 1
  store i32 %225, ptr @mIp6Id, align 4, !tbaa !9
  br label %226

226:                                              ; preds = %219, %198
  %.0144 = phi ptr [ %211, %219 ], [ null, %198 ]
  %.1 = phi i8 [ %.0, %219 ], [ 0, %198 ]
  call void @Ip6FreeRouteEntry(ptr noundef nonnull %197) #4
  br label %227

227:                                              ; preds = %226, %192
  %.1147 = phi i1 [ %.not197, %226 ], [ true, %192 ]
  %.1145 = phi ptr [ %.0144, %226 ], [ null, %192 ]
  %.2 = phi i8 [ %.1, %226 ], [ 0, %192 ]
  %228 = getelementptr inbounds i8, ptr %0, i64 4184
  %229 = load i32, ptr %228, align 8, !tbaa !58
  %230 = add i32 %229, 40
  %231 = load i32, ptr %17, align 4, !tbaa !9
  %232 = add i32 %231, 40
  %233 = load ptr, ptr %10, align 8, !tbaa !5
  %234 = getelementptr inbounds i8, ptr %233, i64 132
  %235 = load i32, ptr %234, align 4, !tbaa !46
  %236 = add i32 %235, %232
  %237 = icmp ugt i32 %236, %230
  br i1 %237, label %238, label %322

238:                                              ; preds = %227
  %.pre225 = load i32, ptr %13, align 4, !tbaa !9
  br i1 %.1147, label %246, label %239

239:                                              ; preds = %238
  store ptr %.1145, ptr %12, align 8, !tbaa !5
  %240 = add i32 %.pre225, -8
  store i32 %240, ptr %13, align 4, !tbaa !9
  %241 = icmp eq ptr %.1145, null
  %242 = icmp eq i32 %240, 0
  %or.cond3 = select i1 %241, i1 %242, i1 false
  br i1 %or.cond3, label %243, label %246

243:                                              ; preds = %239
  %244 = load ptr, ptr %11, align 8, !tbaa !5
  %245 = getelementptr inbounds i8, ptr %244, i64 6
  store i8 %.2, ptr %245, align 1, !tbaa !56
  br label %246

246:                                              ; preds = %239, %243, %238
  %247 = phi i32 [ %240, %239 ], [ 0, %243 ], [ %.pre225, %238 ]
  %248 = load i32, ptr %16, align 4, !tbaa !9
  %249 = sub i32 %247, %248
  %250 = add i32 %235, %249
  %.not201 = icmp ult i32 %250, 65536
  br i1 %.not201, label %251, label %.loopexit

251:                                              ; preds = %246
  %.not202 = icmp eq i32 %247, %248
  br i1 %.not202, label %272, label %252

252:                                              ; preds = %251
  %253 = call ptr @NetbufGetFragment(ptr noundef nonnull %233, i32 noundef 0, i32 noundef %235, i32 noundef %249) #4
  %254 = call zeroext i8 @DebugAssertEnabled() #4
  %255 = icmp eq i8 %254, 0
  %256 = icmp ne ptr %253, null
  %or.cond9 = select i1 %255, i1 true, i1 %256
  br i1 %or.cond9, label %258, label %257

257:                                              ; preds = %252
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 849, ptr noundef nonnull @.str.8) #4
  br label %258

258:                                              ; preds = %257, %252
  %259 = call ptr @NetbufAllocSpace(ptr noundef %253, i32 noundef %249, i8 noundef zeroext 1) #4
  %260 = call zeroext i8 @DebugAssertEnabled() #4
  %261 = icmp eq i8 %260, 0
  %262 = icmp ne ptr %259, null
  %or.cond11 = select i1 %261, i1 true, i1 %262
  br i1 %or.cond11, label %264, label %263

263:                                              ; preds = %258
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 855, ptr noundef nonnull @.str.9) #4
  br label %264

264:                                              ; preds = %263, %258
  %265 = load ptr, ptr %12, align 8, !tbaa !5
  %266 = load i32, ptr %16, align 4, !tbaa !9
  %267 = zext i32 %266 to i64
  %268 = getelementptr inbounds i8, ptr %265, i64 %267
  %269 = zext i32 %249 to i64
  %270 = call ptr @CopyMem(ptr noundef %259, ptr noundef %268, i64 noundef %269) #4
  %271 = load ptr, ptr %10, align 8, !tbaa !5
  call void @NetbufFree(ptr noundef %271) #4
  store ptr %253, ptr %10, align 8, !tbaa !5
  %.pre226 = load i32, ptr %16, align 4, !tbaa !9
  %.phi.trans.insert = getelementptr inbounds i8, ptr %253, i64 132
  %.pre227 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !46
  br label %272

272:                                              ; preds = %264, %251
  %273 = phi i32 [ %.pre227, %264 ], [ %235, %251 ]
  %274 = phi ptr [ %253, %264 ], [ %233, %251 ]
  %275 = phi i32 [ %.pre226, %264 ], [ %247, %251 ]
  %276 = add i32 %275, 48
  %277 = sub i32 %230, %276
  %278 = and i32 %277, -8
  %279 = add i32 %273, -1
  %280 = add i32 %279, %278
  %281 = udiv i32 %280, %278
  %.not220 = icmp ugt i32 %278, %280
  br i1 %.not220, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %272
  %282 = add i32 %281, -1
  %283 = icmp ne ptr %8, null
  %284 = getelementptr inbounds i8, ptr %8, i64 8
  br label %285

285:                                              ; preds = %.lr.ph, %309
  %286 = phi ptr [ %274, %.lr.ph ], [ %311, %309 ]
  %.0154219 = phi i32 [ 0, %.lr.ph ], [ %315, %309 ]
  %.0155218 = phi i32 [ %278, %.lr.ph ], [ %spec.select207, %309 ]
  %.0157217 = phi i32 [ 0, %.lr.ph ], [ %310, %309 ]
  %287 = call ptr @NetbufGetFragment(ptr noundef nonnull %286, i32 noundef %.0157217, i32 noundef %.0155218, i32 noundef %276) #4
  %288 = icmp eq ptr %287, null
  br i1 %288, label %.loopexit, label %289

289:                                              ; preds = %285
  %290 = trunc i32 %.0157217 to i16
  %291 = icmp eq i32 %.0154219, %282
  %292 = and i16 %290, -2
  %not. = xor i1 %291, true
  %masksel = zext i1 %not. to i16
  %.0152 = or disjoint i16 %292, %masksel
  %293 = load ptr, ptr %11, align 8, !tbaa !5
  %294 = load ptr, ptr %12, align 8, !tbaa !5
  %295 = load i32, ptr %13, align 4, !tbaa !9
  %296 = call i64 @Ip6PrependHead(ptr noundef %0, ptr noundef nonnull %287, ptr noundef %293, i16 noundef zeroext %.0152, ptr noundef %294, i32 noundef %295, i8 noundef zeroext %137, i32 noundef %276)
  %297 = call zeroext i8 @DebugAssertEnabled() #4
  %298 = icmp eq i8 %297, 0
  %299 = icmp eq i64 %296, 0
  %or.cond13 = select i1 %298, i1 true, i1 %299
  br i1 %or.cond13, label %301, label %300

300:                                              ; preds = %289
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 906, ptr noundef nonnull @.str.10) #4
  br label %301

301:                                              ; preds = %300, %289
  %302 = load ptr, ptr %10, align 8, !tbaa !5
  %303 = call i64 @Ip6SendFrame(ptr noundef nonnull %.0149210, ptr noundef %2, ptr noundef nonnull %287, ptr noundef nonnull %14, ptr noundef nonnull @Ip6SysPacketSent, ptr noundef %302) #4
  %304 = icmp slt i64 %303, 0
  br i1 %304, label %.loopexit, label %305

305:                                              ; preds = %301
  %or.cond5 = and i1 %283, %291
  br i1 %or.cond5, label %306, label %309

306:                                              ; preds = %305
  %307 = load ptr, ptr %284, align 8, !tbaa !59
  %308 = getelementptr inbounds i8, ptr %307, i64 8
  store i64 %303, ptr %308, align 8, !tbaa !61
  br label %309

309:                                              ; preds = %306, %305
  %310 = add i32 %.0155218, %.0157217
  %311 = load ptr, ptr %10, align 8, !tbaa !5
  %312 = getelementptr inbounds i8, ptr %311, i64 132
  %313 = load i32, ptr %312, align 4, !tbaa !46
  %314 = sub i32 %313, %310
  %spec.select207 = call i32 @llvm.umin.i32(i32 %314, i32 %278)
  %315 = add nuw i32 %.0154219, 1
  %316 = icmp ult i32 %315, %281
  br i1 %316, label %285, label %._crit_edge, !llvm.loop !62

._crit_edge:                                      ; preds = %309, %272
  %317 = phi ptr [ %274, %272 ], [ %311, %309 ]
  call void @NetbufFree(ptr noundef nonnull %317) #4
  %318 = load i32, ptr @mIp6Id, align 4, !tbaa !9
  %319 = add i32 %318, 1
  store i32 %319, ptr @mIp6Id, align 4, !tbaa !9
  %320 = load ptr, ptr %18, align 8, !tbaa !5
  %.not203 = icmp eq ptr %320, null
  br i1 %.not203, label %352, label %321

321:                                              ; preds = %._crit_edge
  call void @FreePool(ptr noundef nonnull %320) #4
  br label %352

322:                                              ; preds = %227
  %323 = call ptr @NetbufAllocSpace(ptr noundef nonnull %233, i32 noundef %232, i8 noundef zeroext 1) #4
  %324 = icmp eq ptr %323, null
  br i1 %324, label %.loopexit, label %325

325:                                              ; preds = %322
  %326 = load ptr, ptr %11, align 8, !tbaa !5
  %327 = call ptr @CopyMem(ptr noundef nonnull %323, ptr noundef %326, i64 noundef 40) #4
  %328 = load ptr, ptr %10, align 8, !tbaa !5
  %329 = getelementptr inbounds i8, ptr %328, i64 32
  store ptr %323, ptr %329, align 8, !tbaa !36
  %330 = load ptr, ptr %12, align 8, !tbaa !5
  %.not198 = icmp eq ptr %330, null
  br i1 %.not198, label %336, label %331

331:                                              ; preds = %325
  %332 = getelementptr inbounds i8, ptr %323, i64 40
  %333 = load i32, ptr %13, align 4, !tbaa !9
  %334 = zext i32 %333 to i64
  %335 = call ptr @CopyMem(ptr noundef nonnull %332, ptr noundef nonnull %330, i64 noundef %334) #4
  br label %336

336:                                              ; preds = %331, %325
  %337 = load ptr, ptr %18, align 8, !tbaa !5
  %.not199 = icmp eq ptr %337, null
  br i1 %.not199, label %345, label %338

338:                                              ; preds = %336
  %339 = getelementptr inbounds i8, ptr %323, i64 4
  %340 = load i16, ptr %339, align 1, !tbaa !64
  %341 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %340) #4
  %342 = add i16 %341, 8
  store i16 %342, ptr %339, align 1, !tbaa !64
  %343 = call zeroext i16 @SwapBytes16(i16 noundef zeroext %342) #4
  store i16 %343, ptr %339, align 1, !tbaa !64
  %344 = load ptr, ptr %18, align 8, !tbaa !5
  call void @FreePool(ptr noundef %344) #4
  br label %345

345:                                              ; preds = %338, %336
  %346 = load ptr, ptr %10, align 8, !tbaa !5
  %347 = call i64 @Ip6SendFrame(ptr noundef nonnull %.0149210, ptr noundef %2, ptr noundef %346, ptr noundef nonnull %14, ptr noundef %7, ptr noundef %8) #4
  br label %352

.loopexit:                                        ; preds = %285, %301, %322, %246
  %.0151 = phi i64 [ -9223372036854775804, %246 ], [ -9223372036854775804, %322 ], [ -9223372036854775799, %285 ], [ %303, %301 ]
  %348 = load ptr, ptr %18, align 8, !tbaa !5
  %.not204 = icmp eq ptr %348, null
  br i1 %.not204, label %350, label %349

349:                                              ; preds = %.loopexit
  call void @FreePool(ptr noundef nonnull %348) #4
  br label %350

350:                                              ; preds = %349, %.loopexit
  %351 = load ptr, ptr %10, align 8, !tbaa !5
  call void @Ip6CancelPacket(ptr noundef nonnull %.0149210, ptr noundef %351, i64 noundef %.0151)
  br label %352

352:                                              ; preds = %._crit_edge, %321, %202, %176, %172, %169, %150, %132, %125, %.thread214, %96, %48, %27, %350, %345
  %.0148 = phi i64 [ %.0151, %350 ], [ %347, %345 ], [ -9223372036854775806, %27 ], [ -9223372036854775791, %48 ], [ -9223372036854775806, %96 ], [ %123, %.thread214 ], [ -9223372036854775806, %125 ], [ -9223372036854775806, %132 ], [ -9223372036854775794, %150 ], [ -9223372036854775799, %169 ], [ %174, %172 ], [ %178, %176 ], [ %208, %202 ], [ 0, %321 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #4
  ret i64 %.0148
}

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

declare ptr @NetbufGetByte(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

declare zeroext i16 @NetbufChecksum(ptr noundef) local_unnamed_addr #1

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

declare zeroext i16 @NetAddChecksum(i16 noundef zeroext, i16 noundef zeroext) local_unnamed_addr #1

declare i64 @Ip6IpSecProcessPacket(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

declare void @Ip6FreeRouteCacheEntry(ptr noundef) local_unnamed_addr #1

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

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

declare void @Ip6OnArpResolved(ptr noundef) #1

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

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

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

declare void @Ip6FreeRouteEntry(ptr noundef) local_unnamed_addr #1

declare ptr @NetbufGetFragment(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #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 nosync nounwind speculatable willreturn memory(none) }
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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_IP6_SERVICE", !10, i64 0, !13, i64 8, !14, i64 24, !14, i64 32, !15, i64 40, !15, i64 56, !6, i64 72, !6, i64 80, !16, i64 88, !18, i64 136, !19, i64 2168, !18, i64 2192, !7, i64 2208, !7, i64 2209, !7, i64 2210, !7, i64 2211, !7, i64 2212, !10, i64 2216, !10, i64 2220, !10, i64 2224, !10, i64 2228, !15, i64 2232, !15, i64 2248, !15, i64 2264, !15, i64 2280, !10, i64 2296, !7, i64 2300, !6, i64 2304, !7, i64 2312, !7, i64 2313, !10, i64 2316, !6, i64 2320, !6, i64 2328, !6, i64 2336, !6, i64 2344, !20, i64 2352, !22, i64 2372, !6, i64 3032, !6, i64 3040, !23, i64 3048, !6, i64 4176, !10, i64 4184, !10, i64 4188}
!13 = !{!"_EFI_SERVICE_BINDING_PROTOCOL", !6, i64 0, !6, i64 8}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!16 = !{!"", !10, i64 0, !6, i64 8, !6, i64 16, !17, i64 24}
!17 = !{!"", !6, i64 0, !14, i64 8, !7, i64 16}
!18 = !{!"", !7, i64 0}
!19 = !{!"", !14, i64 0, !15, i64 8}
!20 = !{!"", !10, i64 0, !10, i64 4, !21, i64 8, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16}
!21 = !{!"short", !7, i64 0}
!22 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !18, i64 552, !18, i64 584, !18, i64 616, !7, i64 648, !7, i64 649, !7, i64 650, !7, i64 651, !7, i64 652}
!23 = !{!"_IP6_CONFIG_INSTANCE", !10, i64 0, !7, i64 4, !15, i64 8, !21, i64 24, !24, i64 32, !18, i64 168, !10, i64 176, !25, i64 180, !7, i64 184, !26, i64 800, !26, i64 840, !27, i64 880, !6, i64 912, !6, i64 920, !6, i64 928, !6, i64 936, !7, i64 944, !10, i64 948, !6, i64 952, !10, i64 960, !6, i64 968, !10, i64 976, !28, i64 984, !30, i64 1040}
!24 = !{!"", !7, i64 0, !7, i64 64, !10, i64 68, !18, i64 72, !10, i64 104, !6, i64 112, !10, i64 120, !6, i64 128}
!25 = !{!"", !10, i64 0}
!26 = !{!"", !15, i64 0, !15, i64 16, !14, i64 32}
!27 = !{!"_EFI_IP6_CONFIG_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!28 = !{!"_IP6_FORM_CALLBACK_INFO", !10, i64 0, !6, i64 8, !29, i64 16, !6, i64 40, !6, i64 48}
!29 = !{!"_EFI_HII_CONFIG_ACCESS_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"", !10, i64 0, !25, i64 4, !18, i64 8, !15, i64 16, !10, i64 32, !15, i64 40, !10, i64 56, !15, i64 64, !10, i64 80}
!31 = !{!32, !6, i64 264}
!32 = !{!"_IP6_PROTOCOL", !10, i64 0, !33, i64 8, !6, i64 80, !14, i64 88, !6, i64 96, !15, i64 104, !7, i64 120, !26, i64 128, !26, i64 168, !15, i64 208, !15, i64 224, !34, i64 240, !6, i64 264, !15, i64 272, !6, i64 288, !10, i64 296, !35, i64 300, !7, i64 352}
!33 = !{!"_EFI_IP6_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}
!34 = !{!"", !14, i64 0, !14, i64 8, !10, i64 16}
!35 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !18, i64 4, !18, i64 20, !7, i64 36, !7, i64 37, !10, i64 40, !10, i64 44, !10, i64 48}
!36 = !{!7, !7, i64 0}
!37 = !{!38, !6, i64 48}
!38 = !{!"", !10, i64 0, !14, i64 8, !15, i64 16, !7, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !6, i64 120, !10, i64 128, !10, i64 132, !7, i64 136}
!39 = !{!40, !21, i64 6}
!40 = !{!"", !21, i64 0, !21, i64 2, !21, i64 4, !21, i64 6}
!41 = !{!38, !6, i64 40}
!42 = !{!43, !21, i64 16}
!43 = !{!"", !21, i64 0, !21, i64 2, !10, i64 4, !10, i64 8, !7, i64 12, !7, i64 12, !7, i64 13, !21, i64 14, !21, i64 16, !21, i64 18}
!44 = !{!45, !21, i64 2}
!45 = !{!"", !7, i64 0, !7, i64 1, !21, i64 2}
!46 = !{!38, !10, i64 132}
!47 = !{!21, !21, i64 0}
!48 = !{!49, !10, i64 96}
!49 = !{!"_IP6_NEIGHBOR_ENTRY", !15, i64 0, !15, i64 16, !14, i64 32, !7, i64 40, !7, i64 41, !7, i64 42, !18, i64 43, !18, i64 59, !10, i64 92, !10, i64 96, !10, i64 100, !15, i64 104, !6, i64 120, !6, i64 128}
!50 = !{!12, !10, i64 2228}
!51 = !{!49, !10, i64 100}
!52 = !{!49, !6, i64 120}
!53 = !{!12, !6, i64 80}
!54 = !{!55, !10, i64 24}
!55 = !{!"", !15, i64 0, !14, i64 16, !10, i64 24, !7, i64 28, !18, i64 29, !18, i64 45}
!56 = !{!57, !7, i64 6}
!57 = !{!"_EFI_IP6_HEADER", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 1, !21, i64 2, !21, i64 4, !7, i64 6, !7, i64 7, !18, i64 8, !18, i64 24}
!58 = !{!12, !10, i64 4184}
!59 = !{!60, !6, i64 8}
!60 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !14, i64 40}
!61 = !{!17, !14, i64 8}
!62 = distinct !{!62, !63}
!63 = !{!"llvm.loop.mustprogress"}
!64 = !{!57, !21, i64 4}


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