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

; 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_SEG = type { i32, i32, i32, i8, i16, i32 }
%struct._TCP_CB = type { %struct._LIST_ENTRY, ptr, ptr, %struct._TCP_PEER, %struct._TCP_PEER, %struct._LIST_ENTRY, %struct._LIST_ENTRY, i32, i32, i8, i8, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i32, i32, i32, i32, i32, i16, i16, [6 x i32], i32, i32, i32, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i8, i8, i32, i32, i32, i8, i8, i16, i32, i32, i32, i8, i8, i8, %struct.EFI_IPv4_ADDRESS, ptr }
%struct._TCP_PEER = type { i32, i16 }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct.EFI_IPv4_ADDRESS = type { [4 x i8] }
%struct._TCP_OPTION = type { i8, i8, i16, i32, i32 }

@.str.11 = external hidden unnamed_addr constant [151 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @TcpInitTcbPeer(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i16, align 2
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %7) #3
  br label %8

8:                                                ; preds = %3
  %9 = call zeroext i8 @DebugAssertEnabled()
  %10 = icmp ne i8 %9, 0
  br i1 %10, label %11, label %22

11:                                               ; preds = %8
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %20

14:                                               ; preds = %11
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %20

17:                                               ; preds = %14
  %18 = load ptr, ptr %6, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %21, label %20

20:                                               ; preds = %17, %14, %11
  call void @DebugAssert(ptr noundef @.str.11, i64 noundef 104, ptr noundef @.str.12)
  br label %21

21:                                               ; preds = %20, %17
  br label %22

22:                                               ; preds = %21, %8
  br label %23

23:                                               ; preds = %22
  br label %24

24:                                               ; preds = %23
  br label %25

25:                                               ; preds = %24
  %26 = call zeroext i8 @DebugAssertEnabled()
  %27 = icmp ne i8 %26, 0
  br i1 %27, label %28, label %40

28:                                               ; preds = %25
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct._TCP_SEG, ptr %29, i32 0, i32 3
  %31 = load i8, ptr %30, align 4, !tbaa !9
  %32 = zext i8 %31 to i32
  %33 = and i32 %32, 2
  %34 = icmp ne i32 %33, 0
  %35 = zext i1 %34 to i32
  %36 = trunc i32 %35 to i8
  %37 = icmp ne i8 %36, 0
  br i1 %37, label %39, label %38

38:                                               ; preds = %28
  call void @DebugAssert(ptr noundef @.str.11, i64 noundef 105, ptr noundef @.str.13)
  br label %39

39:                                               ; preds = %38, %28
  br label %40

40:                                               ; preds = %39, %25
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct._TCP_SEG, ptr %43, i32 0, i32 5
  %45 = load i32, ptr %44, align 4, !tbaa !13
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct._TCP_CB, ptr %46, i32 0, i32 17
  store i32 %45, ptr %47, align 8, !tbaa !14
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct._TCP_CB, ptr %48, i32 0, i32 17
  %50 = load i32, ptr %49, align 8, !tbaa !14
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct._TCP_CB, ptr %51, i32 0, i32 18
  store i32 %50, ptr %52, align 4, !tbaa !19
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._TCP_SEG, ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 4, !tbaa !20
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct._TCP_CB, ptr %56, i32 0, i32 19
  store i32 %55, ptr %57, align 8, !tbaa !21
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._TCP_SEG, ptr %58, i32 0, i32 3
  %60 = load i8, ptr %59, align 4, !tbaa !9
  %61 = zext i8 %60 to i32
  %62 = and i32 %61, 16
  %63 = icmp ne i32 %62, 0
  %64 = zext i1 %63 to i32
  %65 = trunc i32 %64 to i8
  %66 = icmp ne i8 %65, 0
  br i1 %66, label %67, label %73

67:                                               ; preds = %42
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct._TCP_SEG, ptr %68, i32 0, i32 2
  %70 = load i32, ptr %69, align 4, !tbaa !22
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._TCP_CB, ptr %71, i32 0, i32 20
  store i32 %70, ptr %72, align 4, !tbaa !23
  br label %80

73:                                               ; preds = %42
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct._TCP_CB, ptr %74, i32 0, i32 12
  %76 = load i32, ptr %75, align 4, !tbaa !24
  %77 = add i32 %76, 1
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._TCP_CB, ptr %78, i32 0, i32 20
  store i32 %77, ptr %79, align 4, !tbaa !23
  br label %80

80:                                               ; preds = %73, %67
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct._TCP_OPTION, ptr %81, i32 0, i32 0
  %83 = load i8, ptr %82, align 4, !tbaa !25
  %84 = zext i8 %83 to i32
  %85 = and i32 %84, 1
  %86 = icmp ne i32 %85, 0
  %87 = zext i1 %86 to i32
  %88 = trunc i32 %87 to i8
  %89 = icmp ne i8 %88, 0
  br i1 %89, label %90, label %123

90:                                               ; preds = %80
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct._TCP_OPTION, ptr %91, i32 0, i32 2
  %93 = load i16, ptr %92, align 2, !tbaa !27
  %94 = zext i16 %93 to i32
  %95 = icmp sgt i32 64, %94
  br i1 %95, label %96, label %97

96:                                               ; preds = %90
  br label %102

97:                                               ; preds = %90
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct._TCP_OPTION, ptr %98, i32 0, i32 2
  %100 = load i16, ptr %99, align 2, !tbaa !27
  %101 = zext i16 %100 to i32
  br label %102

102:                                              ; preds = %97, %96
  %103 = phi i32 [ 64, %96 ], [ %101, %97 ]
  %104 = trunc i32 %103 to i16
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct._TCP_CB, ptr %105, i32 0, i32 21
  store i16 %104, ptr %106, align 8, !tbaa !28
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct._TCP_CB, ptr %107, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !29
  %110 = call zeroext i16 @TcpGetRcvMss(ptr noundef %109)
  store i16 %110, ptr %7, align 2, !tbaa !30
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct._TCP_CB, ptr %111, i32 0, i32 21
  %113 = load i16, ptr %112, align 8, !tbaa !28
  %114 = zext i16 %113 to i32
  %115 = load i16, ptr %7, align 2, !tbaa !30
  %116 = zext i16 %115 to i32
  %117 = icmp sgt i32 %114, %116
  br i1 %117, label %118, label %122

118:                                              ; preds = %102
  %119 = load i16, ptr %7, align 2, !tbaa !30
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct._TCP_CB, ptr %120, i32 0, i32 21
  store i16 %119, ptr %121, align 8, !tbaa !28
  br label %122

122:                                              ; preds = %118, %102
  br label %126

123:                                              ; preds = %80
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct._TCP_CB, ptr %124, i32 0, i32 27
  store i16 536, ptr %125, align 8, !tbaa !31
  br label %126

126:                                              ; preds = %123, %122
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct._TCP_CB, ptr %127, i32 0, i32 21
  %129 = load i16, ptr %128, align 8, !tbaa !28
  %130 = zext i16 %129 to i32
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct._TCP_CB, ptr %131, i32 0, i32 43
  store i32 %130, ptr %132, align 8, !tbaa !32
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct._TCP_SEG, ptr %133, i32 0, i32 0
  %135 = load i32, ptr %134, align 4, !tbaa !20
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct._TCP_CB, ptr %136, i32 0, i32 26
  store i32 %135, ptr %137, align 4, !tbaa !33
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct._TCP_CB, ptr %138, i32 0, i32 26
  %140 = load i32, ptr %139, align 4, !tbaa !33
  %141 = add i32 %140, 1
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct._TCP_CB, ptr %142, i32 0, i32 22
  store i32 %141, ptr %143, align 4, !tbaa !34
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct._TCP_CB, ptr %144, i32 0, i32 22
  %146 = load i32, ptr %145, align 4, !tbaa !34
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct._TCP_CB, ptr %147, i32 0, i32 24
  store i32 %146, ptr %148, align 4, !tbaa !35
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct._TCP_OPTION, ptr %149, i32 0, i32 0
  %151 = load i8, ptr %150, align 4, !tbaa !25
  %152 = zext i8 %151 to i32
  %153 = and i32 %152, 2
  %154 = icmp ne i32 %153, 0
  %155 = zext i1 %154 to i32
  %156 = trunc i32 %155 to i8
  %157 = zext i8 %156 to i32
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %182

159:                                              ; preds = %126
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct._TCP_CB, ptr %160, i32 0, i32 7
  %162 = load i32, ptr %161, align 8, !tbaa !36
  %163 = and i32 %162, 4
  %164 = icmp ne i32 %163, 0
  %165 = zext i1 %164 to i32
  %166 = trunc i32 %165 to i8
  %167 = icmp ne i8 %166, 0
  br i1 %167, label %182, label %168

168:                                              ; preds = %159
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct._TCP_OPTION, ptr %169, i32 0, i32 1
  %171 = load i8, ptr %170, align 1, !tbaa !37
  %172 = load ptr, ptr %4, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct._TCP_CB, ptr %172, i32 0, i32 34
  store i8 %171, ptr %173, align 1, !tbaa !38
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = call zeroext i8 @TcpComputeScale(ptr noundef %174)
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct._TCP_CB, ptr %176, i32 0, i32 35
  store i8 %175, ptr %177, align 2, !tbaa !39
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct._TCP_CB, ptr %178, i32 0, i32 7
  %180 = load i32, ptr %179, align 8, !tbaa !36
  %181 = or i32 %180, 8
  store i32 %181, ptr %179, align 8, !tbaa !36
  br label %185

182:                                              ; preds = %159, %126
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct._TCP_CB, ptr %183, i32 0, i32 35
  store i8 0, ptr %184, align 2, !tbaa !39
  br label %185

185:                                              ; preds = %182, %168
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct._TCP_OPTION, ptr %186, i32 0, i32 0
  %188 = load i8, ptr %187, align 4, !tbaa !25
  %189 = zext i8 %188 to i32
  %190 = and i32 %189, 4
  %191 = icmp ne i32 %190, 0
  %192 = zext i1 %191 to i32
  %193 = trunc i32 %192 to i8
  %194 = zext i8 %193 to i32
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %220

196:                                              ; preds = %185
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct._TCP_CB, ptr %197, i32 0, i32 7
  %199 = load i32, ptr %198, align 8, !tbaa !36
  %200 = and i32 %199, 16
  %201 = icmp ne i32 %200, 0
  %202 = zext i1 %201 to i32
  %203 = trunc i32 %202 to i8
  %204 = icmp ne i8 %203, 0
  br i1 %204, label %220, label %205

205:                                              ; preds = %196
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct._TCP_CB, ptr %206, i32 0, i32 7
  %208 = load i32, ptr %207, align 8, !tbaa !36
  %209 = or i32 %208, 64
  store i32 %209, ptr %207, align 8, !tbaa !36
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct._TCP_CB, ptr %210, i32 0, i32 7
  %212 = load i32, ptr %211, align 8, !tbaa !36
  %213 = or i32 %212, 32
  store i32 %213, ptr %211, align 8, !tbaa !36
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct._TCP_CB, ptr %214, i32 0, i32 21
  %216 = load i16, ptr %215, align 8, !tbaa !28
  %217 = zext i16 %216 to i32
  %218 = sub nsw i32 %217, 12
  %219 = trunc i32 %218 to i16
  store i16 %219, ptr %215, align 8, !tbaa !28
  br label %220

220:                                              ; preds = %205, %196, %185
  call void @llvm.lifetime.end.p0(i64 2, ptr %7) #3
  ret void
}

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

declare zeroext i8 @DebugAssertEnabled() #2

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i16 @TcpGetRcvMss(ptr noundef) #0

declare zeroext i8 @TcpComputeScale(ptr noundef) #2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !7, i64 12}
!10 = !{!"_TCP_SEG", !11, i64 0, !11, i64 4, !11, i64 8, !7, i64 12, !12, i64 14, !11, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!10, !11, i64 16}
!14 = !{!15, !11, i64 112}
!15 = !{!"_TCP_CB", !16, i64 0, !6, i64 16, !6, i64 24, !17, i64 32, !17, i64 40, !16, i64 48, !16, i64 64, !11, i64 80, !11, i64 84, !7, i64 88, !7, i64 89, !12, i64 90, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !12, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !12, i64 152, !12, i64 154, !7, i64 156, !11, i64 180, !11, i64 184, !11, i64 188, !7, i64 192, !7, i64 193, !7, i64 194, !11, i64 196, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !12, i64 236, !7, i64 238, !7, i64 239, !11, i64 240, !11, i64 244, !11, i64 248, !7, i64 252, !7, i64 253, !12, i64 254, !11, i64 256, !11, i64 260, !11, i64 264, !7, i64 268, !7, i64 269, !7, i64 270, !18, i64 271, !6, i64 280}
!16 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!17 = !{!"_TCP_PEER", !11, i64 0, !12, i64 4}
!18 = !{!"", !7, i64 0}
!19 = !{!15, !11, i64 116}
!20 = !{!10, !11, i64 0}
!21 = !{!15, !11, i64 120}
!22 = !{!10, !11, i64 8}
!23 = !{!15, !11, i64 124}
!24 = !{!15, !11, i64 92}
!25 = !{!26, !7, i64 0}
!26 = !{!"_TCP_OPTION", !7, i64 0, !7, i64 1, !12, i64 2, !11, i64 4, !11, i64 8}
!27 = !{!26, !12, i64 2}
!28 = !{!15, !12, i64 128}
!29 = !{!15, !6, i64 24}
!30 = !{!12, !12, i64 0}
!31 = !{!15, !12, i64 152}
!32 = !{!15, !11, i64 224}
!33 = !{!15, !11, i64 148}
!34 = !{!15, !11, i64 132}
!35 = !{!15, !11, i64 140}
!36 = !{!15, !11, i64 80}
!37 = !{!26, !7, i64 1}
!38 = !{!15, !7, i64 193}
!39 = !{!15, !7, i64 194}


; 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"

@.str.11 = external hidden unnamed_addr constant [151 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [42 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @TcpInitTcbPeer(ptr noundef %0, ptr noundef readonly %1, ptr noundef readonly %2) local_unnamed_addr #0 {
  %4 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not = icmp eq i8 %4, 0
  br i1 %.not, label %10, label %5

5:                                                ; preds = %3
  %6 = icmp ne ptr %0, null
  %7 = icmp ne ptr %1, null
  %or.cond = and i1 %6, %7
  %8 = icmp ne ptr %2, null
  %or.cond3 = and i1 %or.cond, %8
  br i1 %or.cond3, label %10, label %9

9:                                                ; preds = %5
  tail call void @DebugAssert(ptr noundef nonnull @.str.11, i64 noundef 104, ptr noundef nonnull @.str.12) #3
  br label %10

10:                                               ; preds = %3, %5, %9
  %11 = tail call zeroext i8 @DebugAssertEnabled() #3
  %.not48 = icmp eq i8 %11, 0
  br i1 %.not48, label %17, label %12

12:                                               ; preds = %10
  %13 = getelementptr inbounds i8, ptr %1, i64 12
  %14 = load i8, ptr %13, align 4, !tbaa !5
  %15 = and i8 %14, 2
  %.not49 = icmp eq i8 %15, 0
  br i1 %.not49, label %16, label %17

16:                                               ; preds = %12
  tail call void @DebugAssert(ptr noundef nonnull @.str.11, i64 noundef 105, ptr noundef nonnull @.str.13) #3
  br label %17

17:                                               ; preds = %12, %16, %10
  %18 = getelementptr inbounds i8, ptr %1, i64 16
  %19 = load i32, ptr %18, align 4, !tbaa !11
  %20 = getelementptr inbounds i8, ptr %0, i64 112
  store i32 %19, ptr %20, align 8, !tbaa !12
  %21 = getelementptr inbounds i8, ptr %0, i64 116
  store i32 %19, ptr %21, align 4, !tbaa !18
  %22 = load i32, ptr %1, align 4, !tbaa !19
  %23 = getelementptr inbounds i8, ptr %0, i64 120
  store i32 %22, ptr %23, align 8, !tbaa !20
  %24 = getelementptr inbounds i8, ptr %1, i64 12
  %25 = load i8, ptr %24, align 4, !tbaa !5
  %26 = and i8 %25, 16
  %.not50 = icmp eq i8 %26, 0
  br i1 %.not50, label %30, label %27

27:                                               ; preds = %17
  %28 = getelementptr inbounds i8, ptr %1, i64 8
  %29 = load i32, ptr %28, align 4, !tbaa !21
  br label %34

30:                                               ; preds = %17
  %31 = getelementptr inbounds i8, ptr %0, i64 92
  %32 = load i32, ptr %31, align 4, !tbaa !22
  %33 = add i32 %32, 1
  br label %34

34:                                               ; preds = %30, %27
  %.sink = phi i32 [ %33, %30 ], [ %29, %27 ]
  %35 = getelementptr inbounds i8, ptr %0, i64 124
  store i32 %.sink, ptr %35, align 4
  %36 = load i8, ptr %2, align 4, !tbaa !23
  %37 = and i8 %36, 1
  %.not51 = icmp eq i8 %37, 0
  br i1 %.not51, label %48, label %38

38:                                               ; preds = %34
  %39 = getelementptr inbounds i8, ptr %2, i64 2
  %40 = load i16, ptr %39, align 2, !tbaa !25
  %spec.select = tail call i16 @llvm.umax.i16(i16 %40, i16 64)
  %41 = getelementptr inbounds i8, ptr %0, i64 128
  store i16 %spec.select, ptr %41, align 8, !tbaa !26
  %42 = getelementptr inbounds i8, ptr %0, i64 24
  %43 = load ptr, ptr %42, align 8, !tbaa !27
  %44 = tail call zeroext i16 @TcpGetRcvMss(ptr noundef %43)
  %45 = load i16, ptr %41, align 8, !tbaa !26
  %46 = icmp ugt i16 %45, %44
  br i1 %46, label %47, label %50

47:                                               ; preds = %38
  store i16 %44, ptr %41, align 8, !tbaa !26
  br label %50

48:                                               ; preds = %34
  %49 = getelementptr inbounds i8, ptr %0, i64 152
  store i16 536, ptr %49, align 8, !tbaa !28
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 128
  %.pre = load i16, ptr %.phi.trans.insert, align 8, !tbaa !26
  br label %50

50:                                               ; preds = %38, %47, %48
  %51 = phi i16 [ %45, %38 ], [ %44, %47 ], [ %.pre, %48 ]
  %52 = getelementptr inbounds i8, ptr %0, i64 128
  %53 = zext i16 %51 to i32
  %54 = getelementptr inbounds i8, ptr %0, i64 224
  store i32 %53, ptr %54, align 8, !tbaa !29
  %55 = load i32, ptr %1, align 4, !tbaa !19
  %56 = getelementptr inbounds i8, ptr %0, i64 148
  store i32 %55, ptr %56, align 4, !tbaa !30
  %57 = add i32 %55, 1
  %58 = getelementptr inbounds i8, ptr %0, i64 132
  store i32 %57, ptr %58, align 4, !tbaa !31
  %59 = getelementptr inbounds i8, ptr %0, i64 140
  store i32 %57, ptr %59, align 4, !tbaa !32
  %60 = load i8, ptr %2, align 4, !tbaa !23
  %61 = and i8 %60, 2
  %.not52 = icmp eq i8 %61, 0
  br i1 %.not52, label %74, label %62

62:                                               ; preds = %50
  %63 = getelementptr inbounds i8, ptr %0, i64 80
  %64 = load i32, ptr %63, align 8, !tbaa !33
  %65 = and i32 %64, 4
  %.not53 = icmp eq i32 %65, 0
  br i1 %.not53, label %66, label %74

66:                                               ; preds = %62
  %67 = getelementptr inbounds i8, ptr %2, i64 1
  %68 = load i8, ptr %67, align 1, !tbaa !34
  %69 = getelementptr inbounds i8, ptr %0, i64 193
  store i8 %68, ptr %69, align 1, !tbaa !35
  %70 = tail call zeroext i8 @TcpComputeScale(ptr noundef nonnull %0) #3
  %71 = getelementptr inbounds i8, ptr %0, i64 194
  store i8 %70, ptr %71, align 2, !tbaa !36
  %72 = load i32, ptr %63, align 8, !tbaa !33
  %73 = or i32 %72, 8
  store i32 %73, ptr %63, align 8, !tbaa !33
  %.pre56 = load i8, ptr %2, align 4, !tbaa !23
  br label %76

74:                                               ; preds = %62, %50
  %75 = getelementptr inbounds i8, ptr %0, i64 194
  store i8 0, ptr %75, align 2, !tbaa !36
  br label %76

76:                                               ; preds = %74, %66
  %77 = phi i8 [ %60, %74 ], [ %.pre56, %66 ]
  %78 = and i8 %77, 4
  %.not54 = icmp eq i8 %78, 0
  br i1 %.not54, label %87, label %79

79:                                               ; preds = %76
  %80 = getelementptr inbounds i8, ptr %0, i64 80
  %81 = load i32, ptr %80, align 8, !tbaa !33
  %82 = and i32 %81, 16
  %.not55 = icmp eq i32 %82, 0
  br i1 %.not55, label %83, label %87

83:                                               ; preds = %79
  %84 = or i32 %81, 96
  store i32 %84, ptr %80, align 8, !tbaa !33
  %85 = load i16, ptr %52, align 8, !tbaa !26
  %86 = add i16 %85, -12
  store i16 %86, ptr %52, align 8, !tbaa !26
  br label %87

87:                                               ; preds = %83, %79, %76
  ret void
}

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

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

declare zeroext i8 @TcpComputeScale(ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i16 @llvm.umax.i16(i16, i16) #2

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 12}
!6 = !{!"_TCP_SEG", !7, i64 0, !7, i64 4, !7, i64 8, !8, i64 12, !10, i64 14, !7, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!13, !7, i64 112}
!13 = !{!"_TCP_CB", !14, i64 0, !15, i64 16, !15, i64 24, !16, i64 32, !16, i64 40, !14, i64 48, !14, i64 64, !7, i64 80, !7, i64 84, !8, i64 88, !8, i64 89, !10, i64 90, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !10, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !10, i64 152, !10, i64 154, !8, i64 156, !7, i64 180, !7, i64 184, !7, i64 188, !8, i64 192, !8, i64 193, !8, i64 194, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !10, i64 236, !8, i64 238, !8, i64 239, !7, i64 240, !7, i64 244, !7, i64 248, !8, i64 252, !8, i64 253, !10, i64 254, !7, i64 256, !7, i64 260, !7, i64 264, !8, i64 268, !8, i64 269, !8, i64 270, !17, i64 271, !15, i64 280}
!14 = !{!"_LIST_ENTRY", !15, i64 0, !15, i64 8}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_TCP_PEER", !7, i64 0, !10, i64 4}
!17 = !{!"", !8, i64 0}
!18 = !{!13, !7, i64 116}
!19 = !{!6, !7, i64 0}
!20 = !{!13, !7, i64 120}
!21 = !{!6, !7, i64 8}
!22 = !{!13, !7, i64 92}
!23 = !{!24, !8, i64 0}
!24 = !{!"_TCP_OPTION", !8, i64 0, !8, i64 1, !10, i64 2, !7, i64 4, !7, i64 8}
!25 = !{!24, !10, i64 2}
!26 = !{!13, !10, i64 128}
!27 = !{!13, !15, i64 24}
!28 = !{!13, !10, i64 152}
!29 = !{!13, !7, i64 224}
!30 = !{!13, !7, i64 148}
!31 = !{!13, !7, i64 132}
!32 = !{!13, !7, i64 140}
!33 = !{!13, !7, i64 80}
!34 = !{!24, !8, i64 1}
!35 = !{!13, !8, i64 193}
!36 = !{!13, !8, i64 194}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass