; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library (TcpIoReceive)

; 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.TCP_IO = type { i8, ptr, ptr, ptr, %union.TCP_IO_PROTOCOL, %union.TCP_IO_PROTOCOL, %union.TCP_IO_CONNECTION_TOKEN, %union.TCP_IO_IO_TOKEN, %union.TCP_IO_IO_TOKEN, %union.TCP_IO_CLOSE_TOKEN, %union.TCP_IO_LISTEN_TOKEN, i8, i8, i8, i8, i8 }
%union.TCP_IO_PROTOCOL = type { ptr }
%union.TCP_IO_CONNECTION_TOKEN = type { %struct.EFI_TCP4_CONNECTION_TOKEN }
%struct.EFI_TCP4_CONNECTION_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN }
%struct.EFI_TCP4_COMPLETION_TOKEN = type { ptr, i64 }
%union.TCP_IO_IO_TOKEN = type { %struct.EFI_TCP4_IO_TOKEN }
%struct.EFI_TCP4_IO_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN, %union.anon }
%union.anon = type { ptr }
%union.TCP_IO_CLOSE_TOKEN = type { %struct.EFI_TCP4_CLOSE_TOKEN }
%struct.EFI_TCP4_CLOSE_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN, i8 }
%union.TCP_IO_LISTEN_TOKEN = type { %struct.EFI_TCP4_LISTEN_TOKEN }
%struct.EFI_TCP4_LISTEN_TOKEN = type { %struct.EFI_TCP4_COMPLETION_TOKEN, ptr }
%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] }
%struct._LIST_ENTRY = type { ptr, ptr }
%union.NET_IP_HEAD = type { ptr }
%struct.NET_BLOCK_OP = type { ptr, ptr, ptr, ptr, i32 }
%struct.EFI_TCP4_RECEIVE_DATA = type { i8, i32, i32, [1 x %struct.EFI_TCP4_FRAGMENT_DATA] }
%struct.EFI_TCP4_FRAGMENT_DATA = type { i32, ptr }
%struct.NET_FRAGMENT = type { i32, ptr }
%struct._EFI_TCP4_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._EFI_TCP6_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_BOOT_SERVICES = type { %struct.EFI_TABLE_HEADER, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.EFI_TABLE_HEADER = type { i64, i32, i32, i32, i32 }
%struct.EFI_TCP6_IO_TOKEN = type { %struct.EFI_TCP6_COMPLETION_TOKEN, %union.anon.0 }
%struct.EFI_TCP6_COMPLETION_TOKEN = type { ptr, i64 }
%union.anon.0 = type { ptr }

@gBS = external global ptr, align 8

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

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

declare void @FreePool(ptr noundef) #1

declare ptr @AllocatePool(i64 noundef) #1

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

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

20:                                               ; preds = %4
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.TCP_IO, ptr %21, i32 0, i32 4
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = icmp eq ptr %23, null
  br i1 %24, label %28, label %25

25:                                               ; preds = %20
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %29

28:                                               ; preds = %25, %20, %4
  store i64 -9223372036854775806, ptr %5, align 8
  store i32 1, ptr %17, align 4
  br label %287

29:                                               ; preds = %25
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.TCP_IO, ptr %30, i32 0, i32 8
  %32 = getelementptr inbounds %struct.EFI_TCP4_IO_TOKEN, ptr %31, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  store ptr %33, ptr %12, align 8, !tbaa !5
  %34 = load ptr, ptr %12, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %29
  store i64 -9223372036854775806, ptr %5, align 8
  store i32 1, ptr %17, align 4
  br label %287

37:                                               ; preds = %29
  store ptr null, ptr %10, align 8, !tbaa !5
  store ptr null, ptr %11, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.TCP_IO, ptr %38, i32 0, i32 0
  %40 = load i8, ptr %39, align 8, !tbaa !10
  %41 = zext i8 %40 to i32
  %42 = icmp eq i32 %41, 4
  br i1 %42, label %43, label %60

43:                                               ; preds = %37
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.TCP_IO, ptr %44, i32 0, i32 4
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  store ptr %46, ptr %10, align 8, !tbaa !5
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.TCP_IO, ptr %47, i32 0, i32 15
  %49 = load i8, ptr %48, align 4, !tbaa !12
  %50 = icmp ne i8 %49, 0
  br i1 %50, label %51, label %55

51:                                               ; preds = %43
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.TCP_IO, ptr %52, i32 0, i32 5
  %54 = load ptr, ptr %53, align 8, !tbaa !9
  store ptr %54, ptr %10, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %51, %43
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = icmp eq ptr %56, null
  br i1 %57, label %58, label %59

58:                                               ; preds = %55
  store i64 -9223372036854775801, ptr %5, align 8
  store i32 1, ptr %17, align 4
  br label %287

59:                                               ; preds = %55
  br label %85

60:                                               ; preds = %37
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.TCP_IO, ptr %61, i32 0, i32 0
  %63 = load i8, ptr %62, align 8, !tbaa !10
  %64 = zext i8 %63 to i32
  %65 = icmp eq i32 %64, 6
  br i1 %65, label %66, label %83

66:                                               ; preds = %60
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.TCP_IO, ptr %67, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  store ptr %69, ptr %11, align 8, !tbaa !5
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.TCP_IO, ptr %70, i32 0, i32 15
  %72 = load i8, ptr %71, align 4, !tbaa !12
  %73 = icmp ne i8 %72, 0
  br i1 %73, label %74, label %78

74:                                               ; preds = %66
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.TCP_IO, ptr %75, i32 0, i32 5
  %77 = load ptr, ptr %76, align 8, !tbaa !9
  store ptr %77, ptr %11, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %74, %66
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = icmp eq ptr %79, null
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  store i64 -9223372036854775801, ptr %5, align 8
  store i32 1, ptr %17, align 4
  br label %287

82:                                               ; preds = %78
  br label %84

83:                                               ; preds = %60
  store i64 -9223372036854775805, ptr %5, align 8
  store i32 1, ptr %17, align 4
  br label %287

84:                                               ; preds = %82
  br label %85

85:                                               ; preds = %84, %59
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.NET_BUF, ptr %86, i32 0, i32 8
  %88 = load i32, ptr %87, align 8, !tbaa !13
  store i32 %88, ptr %15, align 4, !tbaa !18
  %89 = load i32, ptr %15, align 4, !tbaa !18
  %90 = zext i32 %89 to i64
  %91 = mul i64 %90, 16
  %92 = call ptr @AllocatePool(i64 noundef %91)
  store ptr %92, ptr %14, align 8, !tbaa !5
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = icmp eq ptr %93, null
  br i1 %94, label %95, label %96

95:                                               ; preds = %85
  store i64 -9223372036854775799, ptr %13, align 8, !tbaa !19
  br label %280

96:                                               ; preds = %85
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = call i64 @NetbufBuildExt(ptr noundef %97, ptr noundef %98, ptr noundef %15)
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.EFI_TCP4_RECEIVE_DATA, ptr %100, i32 0, i32 2
  store i32 1, ptr %101, align 8, !tbaa !20
  store i32 0, ptr %16, align 4, !tbaa !18
  store i64 0, ptr %13, align 8, !tbaa !19
  br label %102

102:                                              ; preds = %278, %96
  %103 = load i32, ptr %16, align 4, !tbaa !18
  %104 = load i32, ptr %15, align 4, !tbaa !18
  %105 = icmp ult i32 %103, %104
  br i1 %105, label %106, label %279

106:                                              ; preds = %102
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = load i32, ptr %16, align 4, !tbaa !18
  %109 = zext i32 %108 to i64
  %110 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %107, i64 %109
  %111 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 8, !tbaa !22
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.EFI_TCP4_RECEIVE_DATA, ptr %113, i32 0, i32 1
  store i32 %112, ptr %114, align 4, !tbaa !24
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = load i32, ptr %16, align 4, !tbaa !18
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %115, i64 %117
  %119 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %118, i32 0, i32 0
  %120 = load i32, ptr %119, align 8, !tbaa !22
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.EFI_TCP4_RECEIVE_DATA, ptr %121, i32 0, i32 3
  %123 = getelementptr inbounds [1 x %struct.EFI_TCP4_FRAGMENT_DATA], ptr %122, i64 0, i64 0
  %124 = getelementptr inbounds %struct.EFI_TCP4_FRAGMENT_DATA, ptr %123, i32 0, i32 0
  store i32 %120, ptr %124, align 8, !tbaa !22
  %125 = load ptr, ptr %14, align 8, !tbaa !5
  %126 = load i32, ptr %16, align 4, !tbaa !18
  %127 = zext i32 %126 to i64
  %128 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %125, i64 %127
  %129 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %128, i32 0, i32 1
  %130 = load ptr, ptr %129, align 8, !tbaa !25
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.EFI_TCP4_RECEIVE_DATA, ptr %131, i32 0, i32 3
  %133 = getelementptr inbounds [1 x %struct.EFI_TCP4_FRAGMENT_DATA], ptr %132, i64 0, i64 0
  %134 = getelementptr inbounds %struct.EFI_TCP4_FRAGMENT_DATA, ptr %133, i32 0, i32 1
  store ptr %130, ptr %134, align 8, !tbaa !25
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.TCP_IO, ptr %135, i32 0, i32 0
  %137 = load i8, ptr %136, align 8, !tbaa !10
  %138 = zext i8 %137 to i32
  %139 = icmp eq i32 %138, 4
  br i1 %139, label %140, label %148

140:                                              ; preds = %106
  %141 = load ptr, ptr %10, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct._EFI_TCP4_PROTOCOL, ptr %141, i32 0, i32 6
  %143 = load ptr, ptr %142, align 8, !tbaa !26
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.TCP_IO, ptr %145, i32 0, i32 8
  %147 = call i64 %143(ptr noundef %144, ptr noundef %146)
  store i64 %147, ptr %13, align 8, !tbaa !19
  br label %156

148:                                              ; preds = %106
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct._EFI_TCP6_PROTOCOL, ptr %149, i32 0, i32 5
  %151 = load ptr, ptr %150, align 8, !tbaa !28
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.TCP_IO, ptr %153, i32 0, i32 8
  %155 = call i64 %151(ptr noundef %152, ptr noundef %154)
  store i64 %155, ptr %13, align 8, !tbaa !19
  br label %156

156:                                              ; preds = %148, %140
  %157 = load i64, ptr %13, align 8, !tbaa !19
  %158 = icmp slt i64 %157, 0
  br i1 %158, label %159, label %160

159:                                              ; preds = %156
  br label %280

160:                                              ; preds = %156
  br label %161

161:                                              ; preds = %198, %160
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.TCP_IO, ptr %162, i32 0, i32 13
  %164 = load i8, ptr %163, align 2, !tbaa !30
  %165 = icmp ne i8 %164, 0
  br i1 %165, label %178, label %166

166:                                              ; preds = %161
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = icmp eq ptr %167, null
  br i1 %168, label %176, label %169

169:                                              ; preds = %166
  %170 = load ptr, ptr @gBS, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.EFI_BOOT_SERVICES, ptr %170, i32 0, i32 13
  %172 = load ptr, ptr %171, align 8, !tbaa !31
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = call i64 %172(ptr noundef %173)
  %175 = icmp slt i64 %174, 0
  br label %176

176:                                              ; preds = %169, %166
  %177 = phi i1 [ true, %166 ], [ %175, %169 ]
  br label %178

178:                                              ; preds = %176, %161
  %179 = phi i1 [ false, %161 ], [ %177, %176 ]
  br i1 %179, label %180, label %199

180:                                              ; preds = %178
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.TCP_IO, ptr %181, i32 0, i32 0
  %183 = load i8, ptr %182, align 8, !tbaa !10
  %184 = zext i8 %183 to i32
  %185 = icmp eq i32 %184, 4
  br i1 %185, label %186, label %192

186:                                              ; preds = %180
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct._EFI_TCP4_PROTOCOL, ptr %187, i32 0, i32 9
  %189 = load ptr, ptr %188, align 8, !tbaa !34
  %190 = load ptr, ptr %10, align 8, !tbaa !5
  %191 = call i64 %189(ptr noundef %190)
  br label %198

192:                                              ; preds = %180
  %193 = load ptr, ptr %11, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct._EFI_TCP6_PROTOCOL, ptr %193, i32 0, i32 8
  %195 = load ptr, ptr %194, align 8, !tbaa !35
  %196 = load ptr, ptr %11, align 8, !tbaa !5
  %197 = call i64 %195(ptr noundef %196)
  br label %198

198:                                              ; preds = %192, %186
  br label %161, !llvm.loop !36

199:                                              ; preds = %178
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.TCP_IO, ptr %200, i32 0, i32 13
  %202 = load i8, ptr %201, align 2, !tbaa !30
  %203 = icmp ne i8 %202, 0
  br i1 %203, label %229, label %204

204:                                              ; preds = %199
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.TCP_IO, ptr %205, i32 0, i32 0
  %207 = load i8, ptr %206, align 8, !tbaa !10
  %208 = zext i8 %207 to i32
  %209 = icmp eq i32 %208, 4
  br i1 %209, label %210, label %219

210:                                              ; preds = %204
  %211 = load ptr, ptr %10, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct._EFI_TCP4_PROTOCOL, ptr %211, i32 0, i32 8
  %213 = load ptr, ptr %212, align 8, !tbaa !38
  %214 = load ptr, ptr %10, align 8, !tbaa !5
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.TCP_IO, ptr %215, i32 0, i32 8
  %217 = getelementptr inbounds %struct.EFI_TCP4_IO_TOKEN, ptr %216, i32 0, i32 0
  %218 = call i64 %213(ptr noundef %214, ptr noundef %217)
  br label %228

219:                                              ; preds = %204
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct._EFI_TCP6_PROTOCOL, ptr %220, i32 0, i32 7
  %222 = load ptr, ptr %221, align 8, !tbaa !39
  %223 = load ptr, ptr %11, align 8, !tbaa !5
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.TCP_IO, ptr %224, i32 0, i32 8
  %226 = getelementptr inbounds %struct.EFI_TCP6_IO_TOKEN, ptr %225, i32 0, i32 0
  %227 = call i64 %222(ptr noundef %223, ptr noundef %226)
  br label %228

228:                                              ; preds = %219, %210
  store i64 -9223372036854775790, ptr %13, align 8, !tbaa !19
  br label %280

229:                                              ; preds = %199
  %230 = load ptr, ptr %6, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.TCP_IO, ptr %230, i32 0, i32 13
  store i8 0, ptr %231, align 2, !tbaa !30
  br label %232

232:                                              ; preds = %229
  %233 = load ptr, ptr %6, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.TCP_IO, ptr %233, i32 0, i32 8
  %235 = getelementptr inbounds %struct.EFI_TCP4_IO_TOKEN, ptr %234, i32 0, i32 0
  %236 = getelementptr inbounds %struct.EFI_TCP4_COMPLETION_TOKEN, ptr %235, i32 0, i32 1
  %237 = load i64, ptr %236, align 8, !tbaa !9
  store i64 %237, ptr %13, align 8, !tbaa !19
  %238 = load i64, ptr %13, align 8, !tbaa !19
  %239 = icmp slt i64 %238, 0
  br i1 %239, label %240, label %241

240:                                              ; preds = %232
  br label %280

241:                                              ; preds = %232
  %242 = load ptr, ptr %12, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.EFI_TCP4_RECEIVE_DATA, ptr %242, i32 0, i32 3
  %244 = getelementptr inbounds [1 x %struct.EFI_TCP4_FRAGMENT_DATA], ptr %243, i64 0, i64 0
  %245 = getelementptr inbounds %struct.EFI_TCP4_FRAGMENT_DATA, ptr %244, i32 0, i32 0
  %246 = load i32, ptr %245, align 8, !tbaa !22
  %247 = load ptr, ptr %14, align 8, !tbaa !5
  %248 = load i32, ptr %16, align 4, !tbaa !18
  %249 = zext i32 %248 to i64
  %250 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %247, i64 %249
  %251 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %250, i32 0, i32 0
  %252 = load i32, ptr %251, align 8, !tbaa !22
  %253 = sub i32 %252, %246
  store i32 %253, ptr %251, align 8, !tbaa !22
  %254 = load ptr, ptr %14, align 8, !tbaa !5
  %255 = load i32, ptr %16, align 4, !tbaa !18
  %256 = zext i32 %255 to i64
  %257 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %254, i64 %256
  %258 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %257, i32 0, i32 0
  %259 = load i32, ptr %258, align 8, !tbaa !22
  %260 = icmp eq i32 %259, 0
  br i1 %260, label %261, label %264

261:                                              ; preds = %241
  %262 = load i32, ptr %16, align 4, !tbaa !18
  %263 = add i32 %262, 1
  store i32 %263, ptr %16, align 4, !tbaa !18
  br label %278

264:                                              ; preds = %241
  %265 = load ptr, ptr %12, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.EFI_TCP4_RECEIVE_DATA, ptr %265, i32 0, i32 3
  %267 = getelementptr inbounds [1 x %struct.EFI_TCP4_FRAGMENT_DATA], ptr %266, i64 0, i64 0
  %268 = getelementptr inbounds %struct.EFI_TCP4_FRAGMENT_DATA, ptr %267, i32 0, i32 0
  %269 = load i32, ptr %268, align 8, !tbaa !22
  %270 = load ptr, ptr %14, align 8, !tbaa !5
  %271 = load i32, ptr %16, align 4, !tbaa !18
  %272 = zext i32 %271 to i64
  %273 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %270, i64 %272
  %274 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %273, i32 0, i32 1
  %275 = load ptr, ptr %274, align 8, !tbaa !25
  %276 = zext i32 %269 to i64
  %277 = getelementptr inbounds i8, ptr %275, i64 %276
  store ptr %277, ptr %274, align 8, !tbaa !25
  br label %278

278:                                              ; preds = %264, %261
  br label %102, !llvm.loop !40

279:                                              ; preds = %102
  br label %280

280:                                              ; preds = %279, %240, %228, %159, %95
  %281 = load ptr, ptr %14, align 8, !tbaa !5
  %282 = icmp ne ptr %281, null
  br i1 %282, label %283, label %285

283:                                              ; preds = %280
  %284 = load ptr, ptr %14, align 8, !tbaa !5
  call void @FreePool(ptr noundef %284)
  br label %285

285:                                              ; preds = %283, %280
  %286 = load i64, ptr %13, align 8, !tbaa !19
  store i64 %286, ptr %5, align 8
  store i32 1, ptr %17, align 4
  br label %287

287:                                              ; preds = %285, %83, %81, %58, %36, %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %288 = load i64, ptr %5, align 8
  ret i64 %288
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !7, i64 0}
!11 = !{!"", !7, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 64, !7, i64 88, !7, i64 112, !7, i64 136, !7, i64 160, !7, i64 161, !7, i64 162, !7, i64 163, !7, i64 164}
!12 = !{!11, !7, i64 164}
!13 = !{!14, !15, i64 128}
!14 = !{!"", !15, i64 0, !16, i64 8, !17, i64 16, !7, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !6, i64 120, !15, i64 128, !15, i64 132, !7, i64 136}
!15 = !{!"int", !7, i64 0}
!16 = !{!"long long", !7, i64 0}
!17 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!18 = !{!15, !15, i64 0}
!19 = !{!16, !16, i64 0}
!20 = !{!21, !15, i64 8}
!21 = !{!"", !7, i64 0, !15, i64 4, !15, i64 8, !7, i64 16}
!22 = !{!23, !15, i64 0}
!23 = !{!"", !15, i64 0, !6, i64 8}
!24 = !{!21, !15, i64 4}
!25 = !{!23, !6, i64 8}
!26 = !{!27, !6, i64 48}
!27 = !{!"_EFI_TCP4_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, !6, i64 72}
!28 = !{!29, !6, i64 40}
!29 = !{!"_EFI_TCP6_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}
!30 = !{!11, !7, i64 162}
!31 = !{!32, !6, i64 120}
!32 = !{!"", !33, i64 0, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !6, i64 360, !6, i64 368}
!33 = !{!"", !16, i64 0, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20}
!34 = !{!27, !6, i64 72}
!35 = !{!29, !6, i64 64}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!27, !6, i64 64}
!39 = !{!29, !6, i64 56}
!40 = distinct !{!40, !37}


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

@gBS = external local_unnamed_addr global ptr, align 8

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

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

declare void @FreePool(ptr noundef) local_unnamed_addr #1

declare ptr @AllocatePool(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local i64 @TcpIoReceive(ptr noundef %0, ptr noundef %1, i8 noundef zeroext %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  %6 = icmp eq ptr %0, null
  br i1 %6, label %.thread100, label %7

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  %11 = icmp eq ptr %1, null
  %or.cond = or i1 %11, %10
  br i1 %or.cond, label %.thread100, label %12

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %0, i64 88
  %14 = getelementptr inbounds i8, ptr %0, i64 104
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = icmp eq ptr %15, null
  br i1 %16, label %.thread100, label %17

17:                                               ; preds = %12
  %18 = load i8, ptr %0, align 8, !tbaa !8
  switch i8 %18, label %.thread100 [
    i8 4, label %19
    i8 6, label %26
  ]

19:                                               ; preds = %17
  %20 = getelementptr inbounds i8, ptr %0, i64 164
  %21 = load i8, ptr %20, align 4, !tbaa !11
  %.not89 = icmp eq i8 %21, 0
  br i1 %.not89, label %.thread, label %22

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %25 = icmp eq ptr %24, null
  br i1 %25, label %.thread100, label %.thread

26:                                               ; preds = %17
  %27 = getelementptr inbounds i8, ptr %0, i64 164
  %28 = load i8, ptr %27, align 4, !tbaa !11
  %.not = icmp eq i8 %28, 0
  br i1 %.not, label %.thread, label %29

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %0, i64 40
  %31 = load ptr, ptr %30, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %.thread100, label %.thread

.thread:                                          ; preds = %26, %19, %29, %22
  %.178 = phi ptr [ null, %22 ], [ %31, %29 ], [ null, %19 ], [ %9, %26 ]
  %.176 = phi ptr [ %24, %22 ], [ null, %29 ], [ %9, %19 ], [ null, %26 ]
  %33 = getelementptr inbounds i8, ptr %1, i64 128
  %34 = load i32, ptr %33, align 8, !tbaa !12
  store i32 %34, ptr %5, align 4, !tbaa !17
  %35 = zext i32 %34 to i64
  %36 = shl nuw nsw i64 %35, 4
  %37 = tail call ptr @AllocatePool(i64 noundef %36) #3
  %38 = icmp eq ptr %37, null
  br i1 %38, label %.thread100, label %39

39:                                               ; preds = %.thread
  %40 = call i64 @NetbufBuildExt(ptr noundef nonnull %1, ptr noundef nonnull %37, ptr noundef nonnull %5) #3
  %41 = getelementptr inbounds i8, ptr %15, i64 8
  store i32 1, ptr %41, align 8, !tbaa !18
  %42 = load i32, ptr %5, align 4, !tbaa !17
  %.not111 = icmp eq i32 %42, 0
  br i1 %.not111, label %.thread97, label %.lr.ph106

.lr.ph106:                                        ; preds = %39
  %43 = getelementptr inbounds i8, ptr %15, i64 4
  %44 = getelementptr inbounds i8, ptr %15, i64 16
  %45 = getelementptr inbounds i8, ptr %15, i64 24
  %46 = getelementptr inbounds i8, ptr %.178, i64 40
  %47 = getelementptr inbounds i8, ptr %.176, i64 48
  %48 = getelementptr inbounds i8, ptr %0, i64 162
  %49 = icmp eq ptr %3, null
  %50 = getelementptr inbounds i8, ptr %.178, i64 64
  %51 = getelementptr inbounds i8, ptr %.176, i64 72
  %52 = getelementptr inbounds i8, ptr %0, i64 96
  br i1 %49, label %.lr.ph106.split.us, label %.lr.ph106.split

.lr.ph106.split.us:                               ; preds = %.lr.ph106, %75
  %.0105.us = phi i32 [ %.1.us, %75 ], [ 0, %.lr.ph106 ]
  %53 = zext i32 %.0105.us to i64
  %54 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %37, i64 %53
  %55 = load i32, ptr %54, align 8, !tbaa !20
  store i32 %55, ptr %43, align 4, !tbaa !22
  store i32 %55, ptr %44, align 8, !tbaa !20
  %56 = getelementptr inbounds i8, ptr %54, i64 8
  %57 = load ptr, ptr %56, align 8, !tbaa !23
  store ptr %57, ptr %45, align 8, !tbaa !23
  %58 = load i8, ptr %0, align 8, !tbaa !8
  %59 = icmp eq i8 %58, 4
  %. = select i1 %59, ptr %47, ptr %46
  %.176..178 = select i1 %59, ptr %.176, ptr %.178
  %60 = load ptr, ptr %., align 8, !tbaa !24
  %61 = call i64 %60(ptr noundef %.176..178, ptr noundef nonnull %13) #3
  %62 = icmp slt i64 %61, 0
  br i1 %62, label %.thread97, label %.preheader.us

63:                                               ; preds = %.critedge.thread.loopexit.us
  %64 = load i32, ptr %44, align 8, !tbaa !20
  %65 = load i32, ptr %54, align 8, !tbaa !20
  %66 = sub i32 %65, %64
  store i32 %66, ptr %54, align 8, !tbaa !20
  %67 = icmp eq i32 %65, %64
  br i1 %67, label %73, label %68

68:                                               ; preds = %63
  %69 = load i32, ptr %44, align 8, !tbaa !20
  %70 = load ptr, ptr %56, align 8, !tbaa !23
  %71 = zext i32 %69 to i64
  %72 = getelementptr inbounds i8, ptr %70, i64 %71
  store ptr %72, ptr %56, align 8, !tbaa !23
  br label %75

73:                                               ; preds = %63
  %74 = add i32 %.0105.us, 1
  br label %75

75:                                               ; preds = %73, %68
  %.1.us = phi i32 [ %74, %73 ], [ %.0105.us, %68 ]
  %76 = load i32, ptr %5, align 4, !tbaa !17
  %77 = icmp ult i32 %.1.us, %76
  br i1 %77, label %.lr.ph106.split.us, label %.thread97, !llvm.loop !25

.preheader.us:                                    ; preds = %.lr.ph106.split.us
  %78 = load i8, ptr %48, align 2, !tbaa !27
  %.not90104.us = icmp eq i8 %78, 0
  br i1 %.not90104.us, label %.critedge3.us.us, label %.critedge.thread.loopexit.us

.critedge.thread.loopexit.us:                     ; preds = %.critedge3.us.us, %.preheader.us
  store i8 0, ptr %48, align 2, !tbaa !27
  %79 = load i64, ptr %52, align 8, !tbaa !5
  %80 = icmp slt i64 %79, 0
  br i1 %80, label %.thread97, label %63

.critedge3.us.us:                                 ; preds = %.preheader.us, %.critedge3.us.us
  %81 = load i8, ptr %0, align 8, !tbaa !8
  %82 = icmp eq i8 %81, 4
  %.124 = select i1 %82, ptr %51, ptr %50
  %.176..178125 = select i1 %82, ptr %.176, ptr %.178
  %83 = load ptr, ptr %.124, align 8, !tbaa !24
  %84 = call i64 %83(ptr noundef %.176..178125) #3
  %85 = load i8, ptr %48, align 2, !tbaa !27
  %.not90.us.us = icmp eq i8 %85, 0
  br i1 %.not90.us.us, label %.critedge3.us.us, label %.critedge.thread.loopexit.us, !llvm.loop !28

.lr.ph106.split:                                  ; preds = %.lr.ph106, %127
  %.0105 = phi i32 [ %.1, %127 ], [ 0, %.lr.ph106 ]
  %86 = zext i32 %.0105 to i64
  %87 = getelementptr inbounds %struct.NET_FRAGMENT, ptr %37, i64 %86
  %88 = load i32, ptr %87, align 8, !tbaa !20
  store i32 %88, ptr %43, align 4, !tbaa !22
  store i32 %88, ptr %44, align 8, !tbaa !20
  %89 = getelementptr inbounds i8, ptr %87, i64 8
  %90 = load ptr, ptr %89, align 8, !tbaa !23
  store ptr %90, ptr %45, align 8, !tbaa !23
  %91 = load i8, ptr %0, align 8, !tbaa !8
  %92 = icmp eq i8 %91, 4
  %.126 = select i1 %92, ptr %47, ptr %46
  %.176..178127 = select i1 %92, ptr %.176, ptr %.178
  %93 = load ptr, ptr %.126, align 8, !tbaa !24
  %94 = call i64 %93(ptr noundef %.176..178127, ptr noundef nonnull %13) #3
  %95 = icmp slt i64 %94, 0
  br i1 %95, label %.thread97, label %.preheader

.preheader:                                       ; preds = %.lr.ph106.split
  %96 = load i8, ptr %48, align 2, !tbaa !27
  %.not90104 = icmp eq i8 %96, 0
  br i1 %.not90104, label %.lr.ph, label %.critedge.thread

.lr.ph:                                           ; preds = %.preheader, %.critedge3
  %97 = load ptr, ptr @gBS, align 8, !tbaa !24
  %98 = getelementptr inbounds i8, ptr %97, i64 120
  %99 = load ptr, ptr %98, align 8, !tbaa !29
  %100 = call i64 %99(ptr noundef nonnull %3) #3
  %101 = icmp slt i64 %100, 0
  br i1 %101, label %.critedge3, label %.critedge

.critedge3:                                       ; preds = %.lr.ph
  %102 = load i8, ptr %0, align 8, !tbaa !8
  %103 = icmp eq i8 %102, 4
  %.128 = select i1 %103, ptr %51, ptr %50
  %.176..178129 = select i1 %103, ptr %.176, ptr %.178
  %104 = load ptr, ptr %.128, align 8, !tbaa !24
  %105 = call i64 %104(ptr noundef %.176..178129) #3
  %106 = load i8, ptr %48, align 2, !tbaa !27
  %.not90 = icmp eq i8 %106, 0
  br i1 %.not90, label %.lr.ph, label %.critedge.thread, !llvm.loop !28

.critedge:                                        ; preds = %.lr.ph
  %.pr = load i8, ptr %48, align 2, !tbaa !27
  %.not91 = icmp eq i8 %.pr, 0
  br i1 %.not91, label %.thread97.sink.split, label %.critedge.thread

.thread97.sink.split:                             ; preds = %.critedge
  %107 = load i8, ptr %0, align 8, !tbaa !8
  %108 = icmp eq i8 %107, 4
  %109 = getelementptr inbounds i8, ptr %.178, i64 56
  %110 = getelementptr inbounds i8, ptr %.176, i64 64
  %.sink123 = select i1 %108, ptr %110, ptr %109
  %.178.sink122 = select i1 %108, ptr %.176, ptr %.178
  %111 = load ptr, ptr %.sink123, align 8, !tbaa !24
  %112 = call i64 %111(ptr noundef %.178.sink122, ptr noundef nonnull %13) #3
  br label %.thread97

.critedge.thread:                                 ; preds = %.critedge3, %.preheader, %.critedge
  store i8 0, ptr %48, align 2, !tbaa !27
  %113 = load i64, ptr %52, align 8, !tbaa !5
  %114 = icmp slt i64 %113, 0
  br i1 %114, label %.thread97, label %115

115:                                              ; preds = %.critedge.thread
  %116 = load i32, ptr %44, align 8, !tbaa !20
  %117 = load i32, ptr %87, align 8, !tbaa !20
  %118 = sub i32 %117, %116
  store i32 %118, ptr %87, align 8, !tbaa !20
  %119 = icmp eq i32 %117, %116
  br i1 %119, label %120, label %122

120:                                              ; preds = %115
  %121 = add i32 %.0105, 1
  br label %127

122:                                              ; preds = %115
  %123 = load i32, ptr %44, align 8, !tbaa !20
  %124 = load ptr, ptr %89, align 8, !tbaa !23
  %125 = zext i32 %123 to i64
  %126 = getelementptr inbounds i8, ptr %124, i64 %125
  store ptr %126, ptr %89, align 8, !tbaa !23
  br label %127

127:                                              ; preds = %122, %120
  %.1 = phi i32 [ %121, %120 ], [ %.0105, %122 ]
  %128 = load i32, ptr %5, align 4, !tbaa !17
  %129 = icmp ult i32 %.1, %128
  br i1 %129, label %.lr.ph106.split, label %.thread97, !llvm.loop !25

.thread97:                                        ; preds = %127, %.lr.ph106.split, %.critedge.thread, %75, %.lr.ph106.split.us, %.critedge.thread.loopexit.us, %.thread97.sink.split, %39
  %.299 = phi i64 [ 0, %39 ], [ -9223372036854775790, %.thread97.sink.split ], [ %79, %.critedge.thread.loopexit.us ], [ %79, %75 ], [ %61, %.lr.ph106.split.us ], [ %113, %.critedge.thread ], [ %113, %127 ], [ %94, %.lr.ph106.split ]
  call void @FreePool(ptr noundef nonnull %37) #3
  br label %.thread100

.thread100:                                       ; preds = %.thread, %.thread97, %17, %29, %22, %12, %4, %7
  %.072 = phi i64 [ -9223372036854775806, %7 ], [ -9223372036854775806, %4 ], [ -9223372036854775806, %12 ], [ -9223372036854775801, %22 ], [ -9223372036854775801, %29 ], [ -9223372036854775805, %17 ], [ %.299, %.thread97 ], [ -9223372036854775799, %.thread ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  ret i64 %.072
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !6, i64 0}
!9 = !{!"", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 64, !6, i64 88, !6, i64 112, !6, i64 136, !6, i64 160, !6, i64 161, !6, i64 162, !6, i64 163, !6, i64 164}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!9, !6, i64 164}
!12 = !{!13, !14, i64 128}
!13 = !{!"", !14, i64 0, !15, i64 8, !16, i64 16, !6, i64 32, !10, i64 40, !10, i64 48, !6, i64 56, !10, i64 120, !14, i64 128, !14, i64 132, !6, i64 136}
!14 = !{!"int", !6, i64 0}
!15 = !{!"long long", !6, i64 0}
!16 = !{!"_LIST_ENTRY", !10, i64 0, !10, i64 8}
!17 = !{!14, !14, i64 0}
!18 = !{!19, !14, i64 8}
!19 = !{!"", !6, i64 0, !14, i64 4, !14, i64 8, !6, i64 16}
!20 = !{!21, !14, i64 0}
!21 = !{!"", !14, i64 0, !10, i64 8}
!22 = !{!19, !14, i64 4}
!23 = !{!21, !10, i64 8}
!24 = !{!10, !10, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!9, !6, i64 162}
!28 = distinct !{!28, !26}
!29 = !{!30, !10, i64 120}
!30 = !{!"", !31, i64 0, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368}
!31 = !{!"", !15, i64 0, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}


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