; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/OptionRomPkg (E100bReceive)

; 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.s_data_instance = type { i16, i16, i8, i8, i16, i16, i16, i16, i16, [32 x i8], [32 x i8], [32 x i8], [64 x i32], [128 x i32], i32, i32, i16, i16, i8, i8, i8, i8, i16, i16, i16, i16, i32, i32, i16, i16, [2 x i16], i8, i8, i16, i32, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, [64 x i64], i16, i16, i16, i16, i8, i8, i8, i8, i8, [3 x i8], %struct.mc, i64, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.mc = type { [3 x i16], i16, [8 x [32 x i8]] }
%struct.s_RxFD = type { %struct.CB_Header, i32, i16, i16, [1536 x i8], i8, [3 x i8] }
%struct.CB_Header = type { i16, i16, i32 }
%struct.s_pxe_cpb_receive = type { i64, i32, i32 }
%struct.s_pxe_db_receive = type { [32 x i8], [32 x i8], i32, i16, i16, i8, [7 x i8] }
%struct.eth = type { [6 x i8], [6 x i8], i16 }

; 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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i16 @InWord(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @OutWord(ptr noundef, i16 noundef zeroext, i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @OutLong(ptr noundef, i32 noundef, i32 noundef) #1

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

57:                                               ; preds = %279, %3
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.s_RxFD, ptr %58, i32 0, i32 0
  %60 = getelementptr inbounds %struct.CB_Header, ptr %59, i32 0, i32 0
  %61 = load i16, ptr %60, align 1, !tbaa !22
  %62 = zext i16 %61 to i32
  store i32 %62, ptr %10, align 4, !tbaa !18
  %63 = and i32 %62, 32768
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %288

65:                                               ; preds = %57
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.s_data_instance, ptr %66, i32 0, i32 26
  %68 = load i32, ptr %67, align 8, !tbaa !25
  %69 = add i32 %68, 1
  store i32 %69, ptr %67, align 8, !tbaa !25
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.s_RxFD, ptr %70, i32 0, i32 5
  %72 = load i8, ptr %71, align 1, !tbaa !26
  %73 = icmp ne i8 %72, 0
  br i1 %73, label %74, label %75

74:                                               ; preds = %65
  br label %258

75:                                               ; preds = %65
  %76 = load i32, ptr %10, align 4, !tbaa !18
  %77 = and i32 %76, 3472
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %75
  br label %258

80:                                               ; preds = %75
  %81 = load i32, ptr %10, align 4, !tbaa !18
  %82 = and i32 %81, 8192
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %80
  br label %258

85:                                               ; preds = %80
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.s_RxFD, ptr %86, i32 0, i32 2
  %88 = load i16, ptr %87, align 1, !tbaa !27
  %89 = zext i16 %88 to i32
  %90 = and i32 %89, 16383
  %91 = trunc i32 %90 to i16
  store i16 %91, ptr %12, align 2, !tbaa !11
  %92 = load i16, ptr %12, align 2, !tbaa !11
  %93 = zext i16 %92 to i32
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %257

95:                                               ; preds = %85
  %96 = load i16, ptr %12, align 2, !tbaa !11
  store i16 %96, ptr %15, align 2, !tbaa !11
  %97 = load i16, ptr %12, align 2, !tbaa !11
  %98 = zext i16 %97 to i32
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.s_pxe_cpb_receive, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 1, !tbaa !28
  %102 = icmp ugt i32 %98, %101
  br i1 %102, label %103, label %108

103:                                              ; preds = %95
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.s_pxe_cpb_receive, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 1, !tbaa !28
  %107 = trunc i32 %106 to i16
  store i16 %107, ptr %15, align 2, !tbaa !11
  br label %108

108:                                              ; preds = %103, %95
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.s_pxe_cpb_receive, ptr %109, i32 0, i32 0
  %111 = load i64, ptr %110, align 1, !tbaa !30
  %112 = inttoptr i64 %111 to ptr
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.s_RxFD, ptr %113, i32 0, i32 4
  %115 = load i16, ptr %15, align 2, !tbaa !11
  %116 = zext i16 %115 to i64
  %117 = call ptr @CopyMem(ptr noundef %112, ptr noundef %114, i64 noundef %116)
  %118 = load ptr, ptr %9, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.s_RxFD, ptr %118, i32 0, i32 4
  store ptr %119, ptr %16, align 8, !tbaa !5
  %120 = load i16, ptr %12, align 2, !tbaa !11
  %121 = zext i16 %120 to i32
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.s_pxe_db_receive, ptr %122, i32 0, i32 2
  store i32 %121, ptr %123, align 1, !tbaa !31
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.s_pxe_db_receive, ptr %124, i32 0, i32 4
  store i16 14, ptr %125, align 1, !tbaa !33
  store i32 0, ptr %11, align 4, !tbaa !18
  br label %126

126:                                              ; preds = %147, %108
  %127 = load i32, ptr %11, align 4, !tbaa !18
  %128 = icmp slt i32 %127, 6
  br i1 %128, label %129, label %150

129:                                              ; preds = %126
  %130 = load ptr, ptr %16, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.eth, ptr %130, i32 0, i32 0
  %132 = load i32, ptr %11, align 4, !tbaa !18
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [6 x i8], ptr %131, i64 0, i64 %133
  %135 = load i8, ptr %134, align 1, !tbaa !13
  %136 = zext i8 %135 to i32
  %137 = load ptr, ptr %4, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.s_data_instance, ptr %137, i32 0, i32 10
  %139 = load i32, ptr %11, align 4, !tbaa !18
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [32 x i8], ptr %138, i64 0, i64 %140
  %142 = load i8, ptr %141, align 1, !tbaa !13
  %143 = zext i8 %142 to i32
  %144 = icmp ne i32 %136, %143
  br i1 %144, label %145, label %146

145:                                              ; preds = %129
  br label %150

146:                                              ; preds = %129
  br label %147

147:                                              ; preds = %146
  %148 = load i32, ptr %11, align 4, !tbaa !18
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %11, align 4, !tbaa !18
  br label %126, !llvm.loop !34

150:                                              ; preds = %145, %126
  %151 = load i32, ptr %11, align 4, !tbaa !18
  %152 = icmp sge i32 %151, 6
  br i1 %152, label %153, label %154

153:                                              ; preds = %150
  store i8 1, ptr %14, align 1, !tbaa !13
  br label %195

154:                                              ; preds = %150
  store i32 0, ptr %11, align 4, !tbaa !18
  br label %155

155:                                              ; preds = %176, %154
  %156 = load i32, ptr %11, align 4, !tbaa !18
  %157 = icmp slt i32 %156, 6
  br i1 %157, label %158, label %179

158:                                              ; preds = %155
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.eth, ptr %159, i32 0, i32 0
  %161 = load i32, ptr %11, align 4, !tbaa !18
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [6 x i8], ptr %160, i64 0, i64 %162
  %164 = load i8, ptr %163, align 1, !tbaa !13
  %165 = zext i8 %164 to i32
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.s_data_instance, ptr %166, i32 0, i32 11
  %168 = load i32, ptr %11, align 4, !tbaa !18
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [32 x i8], ptr %167, i64 0, i64 %169
  %171 = load i8, ptr %170, align 1, !tbaa !13
  %172 = zext i8 %171 to i32
  %173 = icmp ne i32 %165, %172
  br i1 %173, label %174, label %175

174:                                              ; preds = %158
  br label %179

175:                                              ; preds = %158
  br label %176

176:                                              ; preds = %175
  %177 = load i32, ptr %11, align 4, !tbaa !18
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %11, align 4, !tbaa !18
  br label %155, !llvm.loop !36

179:                                              ; preds = %174, %155
  %180 = load i32, ptr %11, align 4, !tbaa !18
  %181 = icmp sge i32 %180, 6
  br i1 %181, label %182, label %183

182:                                              ; preds = %179
  store i8 2, ptr %14, align 1, !tbaa !13
  br label %194

183:                                              ; preds = %179
  %184 = load ptr, ptr %16, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.eth, ptr %184, i32 0, i32 0
  %186 = getelementptr inbounds [6 x i8], ptr %185, i64 0, i64 0
  %187 = load i8, ptr %186, align 1, !tbaa !13
  %188 = zext i8 %187 to i32
  %189 = and i32 %188, 1
  %190 = icmp eq i32 %189, 1
  br i1 %190, label %191, label %192

191:                                              ; preds = %183
  store i8 3, ptr %14, align 1, !tbaa !13
  br label %193

192:                                              ; preds = %183
  store i8 4, ptr %14, align 1, !tbaa !13
  br label %193

193:                                              ; preds = %192, %191
  br label %194

194:                                              ; preds = %193, %182
  br label %195

195:                                              ; preds = %194, %153
  %196 = load i8, ptr %14, align 1, !tbaa !13
  %197 = load ptr, ptr %8, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.s_pxe_db_receive, ptr %197, i32 0, i32 5
  store i8 %196, ptr %198, align 1, !tbaa !37
  %199 = load ptr, ptr %16, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.eth, ptr %199, i32 0, i32 2
  %201 = load i16, ptr %200, align 1, !tbaa !38
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.s_pxe_db_receive, ptr %202, i32 0, i32 3
  store i16 %201, ptr %203, align 1, !tbaa !40
  store i32 0, ptr %11, align 4, !tbaa !18
  br label %204

204:                                              ; preds = %230, %195
  %205 = load i32, ptr %11, align 4, !tbaa !18
  %206 = icmp slt i32 %205, 6
  br i1 %206, label %207, label %233

207:                                              ; preds = %204
  %208 = load ptr, ptr %16, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.eth, ptr %208, i32 0, i32 1
  %210 = load i32, ptr %11, align 4, !tbaa !18
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [6 x i8], ptr %209, i64 0, i64 %211
  %213 = load i8, ptr %212, align 1, !tbaa !13
  %214 = load ptr, ptr %8, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.s_pxe_db_receive, ptr %214, i32 0, i32 0
  %216 = load i32, ptr %11, align 4, !tbaa !18
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [32 x i8], ptr %215, i64 0, i64 %217
  store i8 %213, ptr %218, align 1, !tbaa !13
  %219 = load ptr, ptr %16, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.eth, ptr %219, i32 0, i32 0
  %221 = load i32, ptr %11, align 4, !tbaa !18
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [6 x i8], ptr %220, i64 0, i64 %222
  %224 = load i8, ptr %223, align 1, !tbaa !13
  %225 = load ptr, ptr %8, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.s_pxe_db_receive, ptr %225, i32 0, i32 1
  %227 = load i32, ptr %11, align 4, !tbaa !18
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [32 x i8], ptr %226, i64 0, i64 %228
  store i8 %224, ptr %229, align 1, !tbaa !13
  br label %230

230:                                              ; preds = %207
  %231 = load i32, ptr %11, align 4, !tbaa !18
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %11, align 4, !tbaa !18
  br label %204, !llvm.loop !41

233:                                              ; preds = %204
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.s_RxFD, ptr %234, i32 0, i32 5
  store i8 1, ptr %235, align 1, !tbaa !26
  store i16 0, ptr %13, align 2, !tbaa !11
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = load ptr, ptr %4, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.s_data_instance, ptr %237, i32 0, i32 49
  %239 = load i16, ptr %238, align 4, !tbaa !21
  call void @Recycle_RFD(ptr noundef %236, i16 noundef zeroext %239)
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.s_data_instance, ptr %240, i32 0, i32 49
  %242 = load i16, ptr %241, align 4, !tbaa !21
  %243 = add i16 %242, 1
  store i16 %243, ptr %241, align 4, !tbaa !21
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.s_data_instance, ptr %244, i32 0, i32 49
  %246 = load i16, ptr %245, align 4, !tbaa !21
  %247 = zext i16 %246 to i32
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.s_data_instance, ptr %248, i32 0, i32 24
  %250 = load i16, ptr %249, align 4, !tbaa !42
  %251 = zext i16 %250 to i32
  %252 = icmp eq i32 %247, %251
  br i1 %252, label %253, label %256

253:                                              ; preds = %233
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.s_data_instance, ptr %254, i32 0, i32 49
  store i16 0, ptr %255, align 4, !tbaa !21
  br label %256

256:                                              ; preds = %253, %233
  br label %288

257:                                              ; preds = %85
  br label %258

258:                                              ; preds = %257, %84, %79, %74
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.s_data_instance, ptr %260, i32 0, i32 49
  %262 = load i16, ptr %261, align 4, !tbaa !21
  call void @Recycle_RFD(ptr noundef %259, i16 noundef zeroext %262)
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.s_data_instance, ptr %263, i32 0, i32 49
  %265 = load i16, ptr %264, align 4, !tbaa !21
  %266 = add i16 %265, 1
  store i16 %266, ptr %264, align 4, !tbaa !21
  %267 = load ptr, ptr %4, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.s_data_instance, ptr %267, i32 0, i32 49
  %269 = load i16, ptr %268, align 4, !tbaa !21
  %270 = zext i16 %269 to i32
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.s_data_instance, ptr %271, i32 0, i32 24
  %273 = load i16, ptr %272, align 4, !tbaa !42
  %274 = zext i16 %273 to i32
  %275 = icmp eq i32 %270, %274
  br i1 %275, label %276, label %279

276:                                              ; preds = %258
  %277 = load ptr, ptr %4, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.s_data_instance, ptr %277, i32 0, i32 49
  store i16 0, ptr %278, align 4, !tbaa !21
  br label %279

279:                                              ; preds = %276, %258
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.s_data_instance, ptr %280, i32 0, i32 35
  %282 = load ptr, ptr %281, align 8, !tbaa !20
  %283 = load ptr, ptr %4, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.s_data_instance, ptr %283, i32 0, i32 49
  %285 = load i16, ptr %284, align 4, !tbaa !21
  %286 = zext i16 %285 to i64
  %287 = getelementptr inbounds %struct.s_RxFD, ptr %282, i64 %286
  store ptr %287, ptr %9, align 8, !tbaa !5
  br label %57, !llvm.loop !43

288:                                              ; preds = %256, %57
  %289 = load i8, ptr %14, align 1, !tbaa !13
  %290 = zext i8 %289 to i32
  %291 = icmp eq i32 %290, 0
  br i1 %291, label %292, label %299

292:                                              ; preds = %288
  %293 = load ptr, ptr %4, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.s_data_instance, ptr %293, i32 0, i32 29
  %295 = load i16, ptr %294, align 2, !tbaa !19
  %296 = zext i16 %295 to i32
  %297 = and i32 %296, -16385
  %298 = trunc i32 %297 to i16
  store i16 %298, ptr %294, align 2, !tbaa !19
  br label %299

299:                                              ; preds = %292, %288
  %300 = load ptr, ptr %4, align 8, !tbaa !5
  %301 = load ptr, ptr %4, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.s_data_instance, ptr %301, i32 0, i32 14
  %303 = load i32, ptr %302, align 8, !tbaa !14
  %304 = add i32 %303, 0
  %305 = call zeroext i16 @InWord(ptr noundef %300, i32 noundef %304)
  %306 = zext i16 %305 to i32
  store i32 %306, ptr %10, align 4, !tbaa !18
  %307 = load i32, ptr %10, align 4, !tbaa !18
  %308 = and i32 %307, 8
  %309 = icmp ne i32 %308, 0
  br i1 %309, label %310, label %329

310:                                              ; preds = %299
  %311 = load ptr, ptr %4, align 8, !tbaa !5
  %312 = call zeroext i8 @SetupReceiveQueues(ptr noundef %311)
  %313 = load ptr, ptr %4, align 8, !tbaa !5
  %314 = load ptr, ptr %4, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.s_data_instance, ptr %314, i32 0, i32 41
  %316 = load i64, ptr %315, align 8, !tbaa !44
  %317 = trunc i64 %316 to i32
  %318 = load ptr, ptr %4, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.s_data_instance, ptr %318, i32 0, i32 14
  %320 = load i32, ptr %319, align 8, !tbaa !14
  %321 = add i32 %320, 4
  call void @OutLong(ptr noundef %313, i32 noundef %317, i32 noundef %321)
  %322 = load ptr, ptr %4, align 8, !tbaa !5
  %323 = load ptr, ptr %4, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.s_data_instance, ptr %323, i32 0, i32 14
  %325 = load i32, ptr %324, align 8, !tbaa !14
  %326 = add i32 %325, 2
  call void @OutWord(ptr noundef %322, i16 noundef zeroext 1, i32 noundef %326)
  %327 = load ptr, ptr %4, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.s_data_instance, ptr %327, i32 0, i32 49
  store i16 0, ptr %328, align 4, !tbaa !21
  br label %329

329:                                              ; preds = %310, %299
  %330 = load i16, ptr %13, align 2, !tbaa !11
  %331 = zext i16 %330 to i64
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret i64 %331
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @Recycle_RFD(ptr noundef, i16 noundef zeroext) #1

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @SetupReceiveQueues(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !16, i64 880}
!15 = !{!"s_data_instance", !12, i64 0, !12, i64 2, !7, i64 4, !7, i64 5, !12, i64 6, !12, i64 8, !12, i64 10, !12, i64 12, !12, i64 14, !7, i64 16, !7, i64 48, !7, i64 80, !7, i64 112, !7, i64 368, !16, i64 880, !16, i64 884, !12, i64 888, !12, i64 890, !7, i64 892, !7, i64 893, !7, i64 894, !7, i64 895, !12, i64 896, !12, i64 898, !12, i64 900, !12, i64 902, !16, i64 904, !16, i64 908, !12, i64 912, !12, i64 914, !7, i64 916, !7, i64 920, !7, i64 921, !12, i64 922, !16, i64 924, !6, i64 928, !6, i64 936, !6, i64 944, !6, i64 952, !6, i64 960, !6, i64 968, !10, i64 976, !10, i64 984, !10, i64 992, !10, i64 1000, !10, i64 1008, !7, i64 1016, !12, i64 1528, !12, i64 1530, !12, i64 1532, !12, i64 1534, !7, i64 1536, !7, i64 1537, !7, i64 1538, !7, i64 1539, !7, i64 1540, !7, i64 1541, !17, i64 1544, !10, i64 1808, !6, i64 1816, !10, i64 1824, !6, i64 1832, !6, i64 1840, !6, i64 1848, !6, i64 1856, !6, i64 1864, !6, i64 1872, !6, i64 1880, !6, i64 1888, !6, i64 1896, !6, i64 1904, !6, i64 1912}
!16 = !{!"int", !7, i64 0}
!17 = !{!"mc", !7, i64 0, !12, i64 6, !7, i64 8}
!18 = !{!16, !16, i64 0}
!19 = !{!15, !12, i64 914}
!20 = !{!15, !6, i64 928}
!21 = !{!15, !12, i64 1532}
!22 = !{!23, !12, i64 0}
!23 = !{!"s_RxFD", !24, i64 0, !16, i64 8, !12, i64 12, !12, i64 14, !7, i64 16, !7, i64 1552, !7, i64 1553}
!24 = !{!"CB_Header", !12, i64 0, !12, i64 2, !16, i64 4}
!25 = !{!15, !16, i64 904}
!26 = !{!23, !7, i64 1552}
!27 = !{!23, !12, i64 12}
!28 = !{!29, !16, i64 8}
!29 = !{!"s_pxe_cpb_receive", !10, i64 0, !16, i64 8, !16, i64 12}
!30 = !{!29, !10, i64 0}
!31 = !{!32, !16, i64 64}
!32 = !{!"s_pxe_db_receive", !7, i64 0, !7, i64 32, !16, i64 64, !12, i64 68, !12, i64 70, !7, i64 72, !7, i64 73}
!33 = !{!32, !12, i64 70}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}
!37 = !{!32, !7, i64 72}
!38 = !{!39, !12, i64 12}
!39 = !{!"eth", !7, i64 0, !7, i64 6, !12, i64 12}
!40 = !{!32, !12, i64 68}
!41 = distinct !{!41, !35}
!42 = !{!15, !12, i64 900}
!43 = distinct !{!43, !35}
!44 = !{!15, !10, i64 976}


; 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.s_RxFD = type { %struct.CB_Header, i32, i16, i16, [1536 x i8], i8, [3 x i8] }
%struct.CB_Header = type { i16, i16, i32 }

; Function Attrs: nounwind uwtable
declare dso_local zeroext i16 @InWord(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @OutWord(ptr noundef, i16 noundef zeroext, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @OutLong(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i64 0, 20) i64 @E100bReceive(ptr noundef %0, i64 noundef %1, i64 noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 880
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = tail call zeroext i16 @InWord(ptr noundef %0, i32 noundef %5)
  %7 = getelementptr inbounds i8, ptr %0, i64 914
  %8 = load i16, ptr %7, align 2, !tbaa !14
  %9 = or i16 %8, %6
  store i16 %9, ptr %7, align 2, !tbaa !14
  %10 = and i16 %6, -1024
  %11 = load i32, ptr %4, align 8, !tbaa !5
  tail call void @OutWord(ptr noundef %0, i16 noundef zeroext %10, i32 noundef %11)
  %12 = inttoptr i64 %1 to ptr
  %13 = inttoptr i64 %2 to ptr
  %14 = getelementptr inbounds i8, ptr %0, i64 928
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %0, i64 1532
  %17 = load i16, ptr %16, align 4, !tbaa !16
  %18 = zext i16 %17 to i64
  %19 = getelementptr inbounds %struct.s_RxFD, ptr %15, i64 %18
  %20 = load i16, ptr %19, align 1, !tbaa !17
  %.not113 = icmp sgt i16 %20, -1
  br i1 %.not113, label %.thread105, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %21 = getelementptr inbounds i8, ptr %0, i64 904
  %22 = getelementptr inbounds i8, ptr %0, i64 900
  br label %23

23:                                               ; preds = %.lr.ph, %150
  %24 = phi i16 [ %17, %.lr.ph ], [ %spec.store.select103, %150 ]
  %25 = phi i16 [ %20, %.lr.ph ], [ %158, %150 ]
  %.0114 = phi ptr [ %19, %.lr.ph ], [ %157, %150 ]
  %26 = load i32, ptr %21, align 8, !tbaa !20
  %27 = add i32 %26, 1
  store i32 %27, ptr %21, align 8, !tbaa !20
  %28 = getelementptr inbounds i8, ptr %.0114, i64 1552
  %29 = load i8, ptr %28, align 1, !tbaa !21
  %.not94 = icmp ne i8 %29, 0
  %30 = and i16 %25, 11664
  %31 = icmp ne i16 %30, 8192
  %or.cond102 = or i1 %31, %.not94
  br i1 %or.cond102, label %150, label %32

32:                                               ; preds = %23
  %33 = getelementptr inbounds i8, ptr %.0114, i64 12
  %34 = load i16, ptr %33, align 1, !tbaa !22
  %35 = and i16 %34, 16383
  %.not96 = icmp eq i16 %35, 0
  br i1 %.not96, label %150, label %36

36:                                               ; preds = %32
  %37 = getelementptr inbounds i8, ptr %.0114, i64 1552
  %38 = zext nneg i16 %35 to i32
  %39 = getelementptr inbounds i8, ptr %12, i64 8
  %40 = load i32, ptr %39, align 1, !tbaa !23
  %41 = icmp ult i32 %40, %38
  %42 = trunc nuw nsw i32 %40 to i16
  %spec.select = select i1 %41, i16 %42, i16 %35
  %43 = load i64, ptr %12, align 1, !tbaa !25
  %44 = inttoptr i64 %43 to ptr
  %45 = getelementptr inbounds i8, ptr %.0114, i64 16
  %46 = zext nneg i16 %spec.select to i64
  %47 = tail call ptr @CopyMem(ptr noundef %44, ptr noundef nonnull %45, i64 noundef %46) #2
  %48 = getelementptr inbounds i8, ptr %13, i64 64
  store i32 %38, ptr %48, align 1, !tbaa !26
  %49 = getelementptr inbounds i8, ptr %13, i64 70
  store i16 14, ptr %49, align 1, !tbaa !28
  %50 = getelementptr inbounds i8, ptr %0, i64 48
  %51 = load i8, ptr %45, align 1, !tbaa !29
  %52 = load i8, ptr %50, align 1, !tbaa !29
  %.not97 = icmp eq i8 %51, %52
  br i1 %.not97, label %53, label %.preheader

53:                                               ; preds = %36
  %54 = getelementptr inbounds i8, ptr %.0114, i64 17
  %55 = load i8, ptr %54, align 1, !tbaa !29
  %56 = getelementptr inbounds i8, ptr %0, i64 49
  %57 = load i8, ptr %56, align 1, !tbaa !29
  %.not97.1 = icmp eq i8 %55, %57
  br i1 %.not97.1, label %58, label %.preheader

58:                                               ; preds = %53
  %59 = getelementptr inbounds i8, ptr %.0114, i64 18
  %60 = load i8, ptr %59, align 1, !tbaa !29
  %61 = getelementptr inbounds i8, ptr %0, i64 50
  %62 = load i8, ptr %61, align 1, !tbaa !29
  %.not97.2 = icmp eq i8 %60, %62
  br i1 %.not97.2, label %63, label %.preheader

63:                                               ; preds = %58
  %64 = getelementptr inbounds i8, ptr %.0114, i64 19
  %65 = load i8, ptr %64, align 1, !tbaa !29
  %66 = getelementptr inbounds i8, ptr %0, i64 51
  %67 = load i8, ptr %66, align 1, !tbaa !29
  %.not97.3 = icmp eq i8 %65, %67
  br i1 %.not97.3, label %68, label %.preheader

68:                                               ; preds = %63
  %69 = getelementptr inbounds i8, ptr %.0114, i64 20
  %70 = load i8, ptr %69, align 1, !tbaa !29
  %71 = getelementptr inbounds i8, ptr %0, i64 52
  %72 = load i8, ptr %71, align 1, !tbaa !29
  %.not97.4 = icmp eq i8 %70, %72
  br i1 %.not97.4, label %73, label %.preheader

73:                                               ; preds = %68
  %74 = getelementptr inbounds i8, ptr %.0114, i64 21
  %75 = load i8, ptr %74, align 1, !tbaa !29
  %76 = getelementptr inbounds i8, ptr %0, i64 53
  %77 = load i8, ptr %76, align 1, !tbaa !29
  %.not97.5 = icmp eq i8 %75, %77
  br i1 %.not97.5, label %.thread, label %.preheader

.preheader:                                       ; preds = %73, %68, %63, %58, %53, %36
  %78 = getelementptr inbounds i8, ptr %0, i64 80
  %79 = load i8, ptr %78, align 1, !tbaa !29
  %.not98 = icmp eq i8 %51, %79
  br i1 %.not98, label %80, label %105

80:                                               ; preds = %.preheader
  %81 = getelementptr inbounds i8, ptr %.0114, i64 17
  %82 = load i8, ptr %81, align 1, !tbaa !29
  %83 = getelementptr inbounds i8, ptr %0, i64 81
  %84 = load i8, ptr %83, align 1, !tbaa !29
  %.not98.1 = icmp eq i8 %82, %84
  br i1 %.not98.1, label %85, label %105

85:                                               ; preds = %80
  %86 = getelementptr inbounds i8, ptr %.0114, i64 18
  %87 = load i8, ptr %86, align 1, !tbaa !29
  %88 = getelementptr inbounds i8, ptr %0, i64 82
  %89 = load i8, ptr %88, align 1, !tbaa !29
  %.not98.2 = icmp eq i8 %87, %89
  br i1 %.not98.2, label %90, label %105

90:                                               ; preds = %85
  %91 = getelementptr inbounds i8, ptr %.0114, i64 19
  %92 = load i8, ptr %91, align 1, !tbaa !29
  %93 = getelementptr inbounds i8, ptr %0, i64 83
  %94 = load i8, ptr %93, align 1, !tbaa !29
  %.not98.3 = icmp eq i8 %92, %94
  br i1 %.not98.3, label %95, label %105

95:                                               ; preds = %90
  %96 = getelementptr inbounds i8, ptr %.0114, i64 20
  %97 = load i8, ptr %96, align 1, !tbaa !29
  %98 = getelementptr inbounds i8, ptr %0, i64 84
  %99 = load i8, ptr %98, align 1, !tbaa !29
  %.not98.4 = icmp eq i8 %97, %99
  br i1 %.not98.4, label %100, label %105

100:                                              ; preds = %95
  %101 = getelementptr inbounds i8, ptr %.0114, i64 21
  %102 = load i8, ptr %101, align 1, !tbaa !29
  %103 = getelementptr inbounds i8, ptr %0, i64 85
  %104 = load i8, ptr %103, align 1, !tbaa !29
  %.not98.5 = icmp eq i8 %102, %104
  br i1 %.not98.5, label %.thread, label %105

105:                                              ; preds = %100, %95, %90, %85, %80, %.preheader
  %106 = and i8 %51, 1
  %.not99 = icmp eq i8 %106, 0
  %. = select i1 %.not99, i8 4, i8 3
  br label %.thread

.thread:                                          ; preds = %100, %73, %105
  %.088 = phi i8 [ %., %105 ], [ 1, %73 ], [ 2, %100 ]
  %107 = getelementptr inbounds i8, ptr %13, i64 72
  store i8 %.088, ptr %107, align 1, !tbaa !30
  %108 = getelementptr inbounds i8, ptr %.0114, i64 28
  %109 = load i16, ptr %108, align 1, !tbaa !31
  %110 = getelementptr inbounds i8, ptr %13, i64 68
  store i16 %109, ptr %110, align 1, !tbaa !33
  %111 = getelementptr inbounds i8, ptr %.0114, i64 22
  %112 = getelementptr inbounds i8, ptr %13, i64 32
  %113 = load i8, ptr %111, align 1, !tbaa !29
  store i8 %113, ptr %13, align 1, !tbaa !29
  %114 = load i8, ptr %45, align 1, !tbaa !29
  store i8 %114, ptr %112, align 1, !tbaa !29
  %115 = getelementptr inbounds i8, ptr %.0114, i64 23
  %116 = load i8, ptr %115, align 1, !tbaa !29
  %117 = getelementptr inbounds i8, ptr %13, i64 1
  store i8 %116, ptr %117, align 1, !tbaa !29
  %118 = getelementptr inbounds i8, ptr %.0114, i64 17
  %119 = load i8, ptr %118, align 1, !tbaa !29
  %120 = getelementptr inbounds i8, ptr %13, i64 33
  store i8 %119, ptr %120, align 1, !tbaa !29
  %121 = getelementptr inbounds i8, ptr %.0114, i64 24
  %122 = load i8, ptr %121, align 1, !tbaa !29
  %123 = getelementptr inbounds i8, ptr %13, i64 2
  store i8 %122, ptr %123, align 1, !tbaa !29
  %124 = getelementptr inbounds i8, ptr %.0114, i64 18
  %125 = load i8, ptr %124, align 1, !tbaa !29
  %126 = getelementptr inbounds i8, ptr %13, i64 34
  store i8 %125, ptr %126, align 1, !tbaa !29
  %127 = getelementptr inbounds i8, ptr %.0114, i64 25
  %128 = load i8, ptr %127, align 1, !tbaa !29
  %129 = getelementptr inbounds i8, ptr %13, i64 3
  store i8 %128, ptr %129, align 1, !tbaa !29
  %130 = getelementptr inbounds i8, ptr %.0114, i64 19
  %131 = load i8, ptr %130, align 1, !tbaa !29
  %132 = getelementptr inbounds i8, ptr %13, i64 35
  store i8 %131, ptr %132, align 1, !tbaa !29
  %133 = getelementptr inbounds i8, ptr %.0114, i64 26
  %134 = load i8, ptr %133, align 1, !tbaa !29
  %135 = getelementptr inbounds i8, ptr %13, i64 4
  store i8 %134, ptr %135, align 1, !tbaa !29
  %136 = getelementptr inbounds i8, ptr %.0114, i64 20
  %137 = load i8, ptr %136, align 1, !tbaa !29
  %138 = getelementptr inbounds i8, ptr %13, i64 36
  store i8 %137, ptr %138, align 1, !tbaa !29
  %139 = getelementptr inbounds i8, ptr %.0114, i64 27
  %140 = load i8, ptr %139, align 1, !tbaa !29
  %141 = getelementptr inbounds i8, ptr %13, i64 5
  store i8 %140, ptr %141, align 1, !tbaa !29
  %142 = getelementptr inbounds i8, ptr %.0114, i64 21
  %143 = load i8, ptr %142, align 1, !tbaa !29
  %144 = getelementptr inbounds i8, ptr %13, i64 37
  store i8 %143, ptr %144, align 1, !tbaa !29
  store i8 1, ptr %37, align 1, !tbaa !21
  %145 = load i16, ptr %16, align 4, !tbaa !16
  tail call void @Recycle_RFD(ptr noundef nonnull %0, i16 noundef zeroext %145)
  %146 = load i16, ptr %16, align 4, !tbaa !16
  %147 = add i16 %146, 1
  %148 = load i16, ptr %22, align 4, !tbaa !34
  %149 = icmp eq i16 %147, %148
  %spec.store.select = select i1 %149, i16 0, i16 %147
  store i16 %spec.store.select, ptr %16, align 4
  br label %161

150:                                              ; preds = %32, %23
  tail call void @Recycle_RFD(ptr noundef nonnull %0, i16 noundef zeroext %24)
  %151 = load i16, ptr %16, align 4, !tbaa !16
  %152 = add i16 %151, 1
  %153 = load i16, ptr %22, align 4, !tbaa !34
  %154 = icmp eq i16 %152, %153
  %spec.store.select103 = select i1 %154, i16 0, i16 %152
  store i16 %spec.store.select103, ptr %16, align 4
  %155 = load ptr, ptr %14, align 8, !tbaa !15
  %156 = zext i16 %spec.store.select103 to i64
  %157 = getelementptr inbounds %struct.s_RxFD, ptr %155, i64 %156
  %158 = load i16, ptr %157, align 1, !tbaa !17
  %.not = icmp sgt i16 %158, -1
  br i1 %.not, label %.thread105, label %23, !llvm.loop !35

.thread105:                                       ; preds = %150, %3
  %159 = load i16, ptr %7, align 2, !tbaa !14
  %160 = and i16 %159, -16385
  store i16 %160, ptr %7, align 2, !tbaa !14
  br label %161

161:                                              ; preds = %.thread, %.thread105
  %.089107 = phi i64 [ 19, %.thread105 ], [ 0, %.thread ]
  %162 = load i32, ptr %4, align 8, !tbaa !5
  %163 = tail call zeroext i16 @InWord(ptr noundef nonnull %0, i32 noundef %162)
  %164 = and i16 %163, 8
  %.not100 = icmp eq i16 %164, 0
  br i1 %.not100, label %174, label %165

165:                                              ; preds = %161
  %166 = tail call zeroext i8 @SetupReceiveQueues(ptr noundef nonnull %0)
  %167 = getelementptr inbounds i8, ptr %0, i64 976
  %168 = load i64, ptr %167, align 8, !tbaa !37
  %169 = trunc i64 %168 to i32
  %170 = load i32, ptr %4, align 8, !tbaa !5
  %171 = add i32 %170, 4
  tail call void @OutLong(ptr noundef nonnull %0, i32 noundef %169, i32 noundef %171)
  %172 = load i32, ptr %4, align 8, !tbaa !5
  %173 = add i32 %172, 2
  tail call void @OutWord(ptr noundef nonnull %0, i16 noundef zeroext 1, i32 noundef %173)
  store i16 0, ptr %16, align 4, !tbaa !16
  br label %174

174:                                              ; preds = %165, %161
  ret i64 %.089107
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @Recycle_RFD(ptr noundef, i16 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i8 @SetupReceiveQueues(ptr noundef) local_unnamed_addr #0

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 }

!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, !10, i64 880}
!6 = !{!"s_data_instance", !7, i64 0, !7, i64 2, !8, i64 4, !8, i64 5, !7, i64 6, !7, i64 8, !7, i64 10, !7, i64 12, !7, i64 14, !8, i64 16, !8, i64 48, !8, i64 80, !8, i64 112, !8, i64 368, !10, i64 880, !10, i64 884, !7, i64 888, !7, i64 890, !8, i64 892, !8, i64 893, !8, i64 894, !8, i64 895, !7, i64 896, !7, i64 898, !7, i64 900, !7, i64 902, !10, i64 904, !10, i64 908, !7, i64 912, !7, i64 914, !8, i64 916, !8, i64 920, !8, i64 921, !7, i64 922, !10, i64 924, !11, i64 928, !11, i64 936, !11, i64 944, !11, i64 952, !11, i64 960, !11, i64 968, !12, i64 976, !12, i64 984, !12, i64 992, !12, i64 1000, !12, i64 1008, !8, i64 1016, !7, i64 1528, !7, i64 1530, !7, i64 1532, !7, i64 1534, !8, i64 1536, !8, i64 1537, !8, i64 1538, !8, i64 1539, !8, i64 1540, !8, i64 1541, !13, i64 1544, !12, i64 1808, !11, i64 1816, !12, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !11, i64 1856, !11, i64 1864, !11, i64 1872, !11, i64 1880, !11, i64 1888, !11, i64 1896, !11, i64 1904, !11, i64 1912}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long long", !8, i64 0}
!13 = !{!"mc", !8, i64 0, !7, i64 6, !8, i64 8}
!14 = !{!6, !7, i64 914}
!15 = !{!6, !11, i64 928}
!16 = !{!6, !7, i64 1532}
!17 = !{!18, !7, i64 0}
!18 = !{!"s_RxFD", !19, i64 0, !10, i64 8, !7, i64 12, !7, i64 14, !8, i64 16, !8, i64 1552, !8, i64 1553}
!19 = !{!"CB_Header", !7, i64 0, !7, i64 2, !10, i64 4}
!20 = !{!6, !10, i64 904}
!21 = !{!18, !8, i64 1552}
!22 = !{!18, !7, i64 12}
!23 = !{!24, !10, i64 8}
!24 = !{!"s_pxe_cpb_receive", !12, i64 0, !10, i64 8, !10, i64 12}
!25 = !{!24, !12, i64 0}
!26 = !{!27, !10, i64 64}
!27 = !{!"s_pxe_db_receive", !8, i64 0, !8, i64 32, !10, i64 64, !7, i64 68, !7, i64 70, !8, i64 72, !8, i64 73}
!28 = !{!27, !7, i64 70}
!29 = !{!8, !8, i64 0}
!30 = !{!27, !8, i64 72}
!31 = !{!32, !7, i64 12}
!32 = !{!"eth", !8, i64 0, !8, i64 6, !7, i64 12}
!33 = !{!27, !7, i64 68}
!34 = !{!6, !7, i64 900}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!6, !12, i64 976}


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