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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.EFI_TCP4_CONFIG_DATA = type { i8, i8, %struct.EFI_TCP4_ACCESS_POINT, ptr }
%struct.EFI_TCP4_ACCESS_POINT = type { i8, %struct.EFI_IPv4_ADDRESS, %struct.EFI_IPv4_ADDRESS, i16, %struct.EFI_IPv4_ADDRESS, i16, i8 }
%struct.EFI_IPv4_ADDRESS = type { [4 x i8] }
%struct.EFI_TCP4_OPTION = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8 }
%struct._SOCKET = type { i32, ptr, ptr, ptr, ptr, %struct._LIST_ENTRY, i8, i32, i8, i16, %struct.EFI_LOCK, %struct._SOCK_BUFFER, %struct._SOCK_BUFFER, i64, i8, i32, i32, ptr, %struct._LIST_ENTRY, %struct._LIST_ENTRY, %struct._LIST_ENTRY, %struct._LIST_ENTRY, %struct._LIST_ENTRY, ptr, ptr, ptr, [20 x i8], %union._NET_PROTOCOL, ptr, ptr, ptr }
%struct.EFI_LOCK = type { i64, i64, i32 }
%struct._SOCK_BUFFER = type { i32, i32, ptr }
%struct._LIST_ENTRY = type { ptr, ptr }
%union._NET_PROTOCOL = type { %struct._EFI_TCP4_PROTOCOL }
%struct._EFI_TCP4_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [151 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

declare zeroext i8 @DebugAssertEnabled() #1

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

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

14:                                               ; preds = %2
  store i64 -9223372036854775806, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %132

15:                                               ; preds = %2
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = icmp ne ptr null, %16
  br i1 %17, label %18, label %95

18:                                               ; preds = %15
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.EFI_TCP4_CONFIG_DATA, ptr %19, i32 0, i32 2
  %21 = getelementptr inbounds %struct.EFI_TCP4_ACCESS_POINT, ptr %20, i32 0, i32 4
  %22 = call ptr @CopyMem(ptr noundef %9, ptr noundef %21, i64 noundef 4)
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %31

25:                                               ; preds = %18
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = call i32 @SwapBytes32(i32 noundef %26)
  %28 = call zeroext i8 @NetIp4IsUnicast(i32 noundef %27, i32 noundef 0)
  %29 = icmp ne i8 %28, 0
  br i1 %29, label %31, label %30

30:                                               ; preds = %25
  store i64 -9223372036854775806, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %132

31:                                               ; preds = %25, %18
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.EFI_TCP4_CONFIG_DATA, ptr %32, i32 0, i32 2
  %34 = getelementptr inbounds %struct.EFI_TCP4_ACCESS_POINT, ptr %33, i32 0, i32 6
  %35 = load i8, ptr %34, align 2, !tbaa !11
  %36 = zext i8 %35 to i32
  %37 = icmp ne i32 %36, 0
  br i1 %37, label %38, label %49

38:                                               ; preds = %31
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.EFI_TCP4_CONFIG_DATA, ptr %39, i32 0, i32 2
  %41 = getelementptr inbounds %struct.EFI_TCP4_ACCESS_POINT, ptr %40, i32 0, i32 5
  %42 = load i16, ptr %41, align 2, !tbaa !16
  %43 = zext i16 %42 to i32
  %44 = icmp eq i32 0, %43
  br i1 %44, label %48, label %45

45:                                               ; preds = %38
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %45, %38
  store i64 -9223372036854775806, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %132

49:                                               ; preds = %45, %31
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.EFI_TCP4_CONFIG_DATA, ptr %50, i32 0, i32 2
  %52 = getelementptr inbounds %struct.EFI_TCP4_ACCESS_POINT, ptr %51, i32 0, i32 0
  %53 = load i8, ptr %52, align 2, !tbaa !17
  %54 = icmp ne i8 %53, 0
  br i1 %54, label %75, label %55

55:                                               ; preds = %49
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.EFI_TCP4_CONFIG_DATA, ptr %56, i32 0, i32 2
  %58 = getelementptr inbounds %struct.EFI_TCP4_ACCESS_POINT, ptr %57, i32 0, i32 1
  %59 = call ptr @CopyMem(ptr noundef %9, ptr noundef %58, i64 noundef 4)
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.EFI_TCP4_CONFIG_DATA, ptr %60, i32 0, i32 2
  %62 = getelementptr inbounds %struct.EFI_TCP4_ACCESS_POINT, ptr %61, i32 0, i32 2
  %63 = call ptr @CopyMem(ptr noundef %10, ptr noundef %62, i64 noundef 4)
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = call i32 @SwapBytes32(i32 noundef %64)
  %66 = call zeroext i8 @NetIp4IsUnicast(i32 noundef %65, i32 noundef 0)
  %67 = icmp ne i8 %66, 0
  br i1 %67, label %68, label %73

68:                                               ; preds = %55
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = call i32 @SwapBytes32(i32 noundef %69)
  %71 = call i64 @NetGetMaskLength(i32 noundef %70)
  %72 = icmp ne i64 %71, 33
  br i1 %72, label %74, label %73

73:                                               ; preds = %68, %55
  store i64 -9223372036854775806, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %132

74:                                               ; preds = %68
  br label %75

75:                                               ; preds = %74, %49
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.EFI_TCP4_CONFIG_DATA, ptr %76, i32 0, i32 3
  %78 = load ptr, ptr %77, align 8, !tbaa !18
  store ptr %78, ptr %6, align 8, !tbaa !5
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = icmp ne ptr null, %79
  br i1 %80, label %81, label %94

81:                                               ; preds = %75
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.EFI_TCP4_OPTION, ptr %82, i32 0, i32 13
  %84 = load i8, ptr %83, align 1, !tbaa !19
  %85 = zext i8 %84 to i32
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %93, label %87

87:                                               ; preds = %81
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.EFI_TCP4_OPTION, ptr %88, i32 0, i32 14
  %90 = load i8, ptr %89, align 4, !tbaa !21
  %91 = zext i8 %90 to i32
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %87, %81
  store i64 -9223372036854775805, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %132

94:                                               ; preds = %87, %75
  br label %95

95:                                               ; preds = %94, %15
  %96 = call zeroext i8 @DebugAssertEnabled()
  %97 = zext i8 %96 to i32
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %109

99:                                               ; preds = %95
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = ptrtoint ptr %100 to i64
  %102 = sub i64 %101, ptrtoint (ptr getelementptr inbounds (%struct._SOCKET, ptr null, i32 0, i32 27) to i64)
  %103 = inttoptr i64 %102 to ptr
  %104 = getelementptr inbounds %struct._SOCKET, ptr %103, i32 0, i32 0
  %105 = load i32, ptr %104, align 8, !tbaa !22
  %106 = icmp ne i32 %105, 1262702419
  br i1 %106, label %107, label %109

107:                                              ; preds = %99
  call void @DebugAssert(ptr noundef @.str, i64 noundef 198, ptr noundef @.str.1)
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  br label %114

109:                                              ; preds = %99, %95
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = ptrtoint ptr %110 to i64
  %112 = sub i64 %111, ptrtoint (ptr getelementptr inbounds (%struct._SOCKET, ptr null, i32 0, i32 27) to i64)
  %113 = inttoptr i64 %112 to ptr
  br label %114

114:                                              ; preds = %109, %107
  %115 = phi ptr [ %108, %107 ], [ %113, %109 ]
  store ptr %115, ptr %7, align 8, !tbaa !5
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = icmp eq ptr null, %116
  br i1 %117, label %118, label %121

118:                                              ; preds = %114
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = call i64 @SockFlush(ptr noundef %119)
  store i64 %120, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %132

121:                                              ; preds = %114
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = call i64 @SockConfigure(ptr noundef %122, ptr noundef %123)
  store i64 %124, ptr %8, align 8, !tbaa !28
  %125 = load i64, ptr %8, align 8, !tbaa !28
  %126 = icmp eq i64 -9223372036854775791, %125
  br i1 %126, label %127, label %130

127:                                              ; preds = %121
  %128 = load ptr, ptr %7, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct._SOCKET, ptr %128, i32 0, i32 6
  store i8 3, ptr %129, align 8, !tbaa !29
  br label %130

130:                                              ; preds = %127, %121
  %131 = load i64, ptr %8, align 8, !tbaa !28
  store i64 %131, ptr %3, align 8
  store i32 1, ptr %11, align 4
  br label %132

132:                                              ; preds = %130, %118, %93, %73, %48, %30, %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %133 = load i64, ptr %3, align 8
  ret i64 %133
}

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

declare zeroext i8 @NetIp4IsUnicast(i32 noundef, i32 noundef) #1

declare i32 @SwapBytes32(i32 noundef) #1

declare i64 @NetGetMaskLength(i32 noundef) #1

declare i64 @SockFlush(ptr noundef) #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !7, i64 20}
!12 = !{!"", !7, i64 0, !7, i64 1, !13, i64 2, !6, i64 24}
!13 = !{!"", !7, i64 0, !14, i64 1, !14, i64 5, !15, i64 10, !14, i64 12, !15, i64 16, !7, i64 18}
!14 = !{!"", !7, i64 0}
!15 = !{!"short", !7, i64 0}
!16 = !{!12, !15, i64 18}
!17 = !{!12, !7, i64 2}
!18 = !{!12, !6, i64 24}
!19 = !{!20, !7, i64 43}
!20 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44}
!21 = !{!20, !7, i64 44}
!22 = !{!23, !10, i64 0}
!23 = !{!"_SOCKET", !10, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !24, i64 40, !7, i64 56, !10, i64 60, !7, i64 64, !15, i64 66, !25, i64 72, !27, i64 96, !27, i64 112, !26, i64 128, !7, i64 136, !10, i64 140, !10, i64 144, !6, i64 152, !24, i64 160, !24, i64 176, !24, i64 192, !24, i64 208, !24, i64 224, !6, i64 240, !6, i64 248, !6, i64 256, !7, i64 264, !7, i64 288, !6, i64 368, !6, i64 376, !6, i64 384}
!24 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!25 = !{!"", !26, i64 0, !26, i64 8, !10, i64 16}
!26 = !{!"long long", !7, i64 0}
!27 = !{!"_SOCK_BUFFER", !10, i64 0, !10, i64 4, !6, i64 8}
!28 = !{!26, !26, i64 0}
!29 = !{!23, !7, i64 56}


; 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 = external hidden unnamed_addr constant [151 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

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

6:                                                ; preds = %2
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %47, label %7

7:                                                ; preds = %6
  %8 = getelementptr inbounds i8, ptr %1, i64 2
  %9 = getelementptr inbounds i8, ptr %1, i64 14
  %10 = call ptr @CopyMem(ptr noundef nonnull %3, ptr noundef nonnull %9, i64 noundef 4) #3
  %11 = load i32, ptr %3, align 4, !tbaa !5
  %.not27 = icmp eq i32 %11, 0
  br i1 %.not27, label %15, label %12

12:                                               ; preds = %7
  %13 = call i32 @SwapBytes32(i32 noundef %11) #3
  %14 = call zeroext i8 @NetIp4IsUnicast(i32 noundef %13, i32 noundef 0) #3
  %.not28 = icmp eq i8 %14, 0
  br i1 %.not28, label %60, label %15

15:                                               ; preds = %12, %7
  %16 = getelementptr inbounds i8, ptr %1, i64 20
  %17 = load i8, ptr %16, align 2, !tbaa !9
  %.not29 = icmp eq i8 %17, 0
  br i1 %.not29, label %24, label %18

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %1, i64 18
  %20 = load i16, ptr %19, align 2, !tbaa !15
  %21 = icmp eq i16 %20, 0
  %22 = load i32, ptr %3, align 4
  %23 = icmp eq i32 %22, 0
  %or.cond = select i1 %21, i1 true, i1 %23
  br i1 %or.cond, label %60, label %24

24:                                               ; preds = %18, %15
  %25 = load i8, ptr %8, align 2, !tbaa !16
  %.not30 = icmp eq i8 %25, 0
  br i1 %.not30, label %26, label %38

26:                                               ; preds = %24
  %27 = getelementptr inbounds i8, ptr %1, i64 3
  %28 = call ptr @CopyMem(ptr noundef nonnull %3, ptr noundef nonnull %27, i64 noundef 4) #3
  %29 = getelementptr inbounds i8, ptr %1, i64 7
  %30 = call ptr @CopyMem(ptr noundef nonnull %4, ptr noundef nonnull %29, i64 noundef 4) #3
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = call i32 @SwapBytes32(i32 noundef %31) #3
  %33 = call zeroext i8 @NetIp4IsUnicast(i32 noundef %32, i32 noundef 0) #3
  %.not31 = icmp eq i8 %33, 0
  br i1 %.not31, label %60, label %34

34:                                               ; preds = %26
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %36 = call i32 @SwapBytes32(i32 noundef %35) #3
  %37 = call i64 @NetGetMaskLength(i32 noundef %36) #3
  %.not32 = icmp eq i64 %37, 33
  br i1 %.not32, label %60, label %38

38:                                               ; preds = %34, %24
  %39 = getelementptr inbounds i8, ptr %1, i64 24
  %40 = load ptr, ptr %39, align 8, !tbaa !17
  %.not33 = icmp eq ptr %40, null
  br i1 %.not33, label %47, label %41

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %40, i64 43
  %43 = load i8, ptr %42, align 1, !tbaa !18
  %.not34 = icmp eq i8 %43, 0
  br i1 %.not34, label %44, label %60

44:                                               ; preds = %41
  %45 = getelementptr inbounds i8, ptr %40, i64 44
  %46 = load i8, ptr %45, align 4, !tbaa !20
  %.not35 = icmp eq i8 %46, 0
  br i1 %.not35, label %47, label %60

47:                                               ; preds = %38, %44, %6
  %48 = call zeroext i8 @DebugAssertEnabled() #3
  %.not36 = icmp eq i8 %48, 0
  %.pre = ptrtoint ptr %0 to i64
  %.pre38 = add i64 %.pre, -288
  %.pre40 = inttoptr i64 %.pre38 to ptr
  br i1 %.not36, label %._crit_edge, label %49

49:                                               ; preds = %47
  %50 = load i32, ptr %.pre40, align 8, !tbaa !21
  %.not37 = icmp eq i32 %50, 1262702419
  br i1 %.not37, label %._crit_edge, label %51

51:                                               ; preds = %49
  call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 198, ptr noundef nonnull @.str.1) #3
  br label %._crit_edge

._crit_edge:                                      ; preds = %47, %49, %51
  %52 = phi ptr [ %0, %51 ], [ %.pre40, %49 ], [ %.pre40, %47 ]
  br i1 %.not, label %53, label %55

53:                                               ; preds = %._crit_edge
  %54 = call i64 @SockFlush(ptr noundef %52) #3
  br label %60

55:                                               ; preds = %._crit_edge
  %56 = call i64 @SockConfigure(ptr noundef %52, ptr noundef nonnull %1) #3
  %57 = icmp eq i64 %56, -9223372036854775791
  br i1 %57, label %58, label %60

58:                                               ; preds = %55
  %59 = getelementptr inbounds i8, ptr %52, i64 56
  store i8 3, ptr %59, align 8, !tbaa !27
  br label %60

60:                                               ; preds = %55, %58, %41, %44, %26, %34, %18, %12, %2, %53
  %.0 = phi i64 [ %54, %53 ], [ -9223372036854775806, %2 ], [ -9223372036854775806, %12 ], [ -9223372036854775806, %18 ], [ -9223372036854775806, %34 ], [ -9223372036854775806, %26 ], [ -9223372036854775805, %44 ], [ -9223372036854775805, %41 ], [ -9223372036854775791, %58 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  ret i64 %.0
}

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

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

declare i32 @SwapBytes32(i32 noundef) local_unnamed_addr #1

declare i64 @NetGetMaskLength(i32 noundef) local_unnamed_addr #1

declare i64 @SockFlush(ptr noundef) local_unnamed_addr #1

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

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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !7, i64 20}
!10 = !{!"", !7, i64 0, !7, i64 1, !11, i64 2, !14, i64 24}
!11 = !{!"", !7, i64 0, !12, i64 1, !12, i64 5, !13, i64 10, !12, i64 12, !13, i64 16, !7, i64 18}
!12 = !{!"", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!10, !13, i64 18}
!16 = !{!10, !7, i64 2}
!17 = !{!10, !14, i64 24}
!18 = !{!19, !7, i64 43}
!19 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !7, i64 40, !7, i64 41, !7, i64 42, !7, i64 43, !7, i64 44}
!20 = !{!19, !7, i64 44}
!21 = !{!22, !6, i64 0}
!22 = !{!"_SOCKET", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !23, i64 40, !7, i64 56, !6, i64 60, !7, i64 64, !13, i64 66, !24, i64 72, !26, i64 96, !26, i64 112, !25, i64 128, !7, i64 136, !6, i64 140, !6, i64 144, !14, i64 152, !23, i64 160, !23, i64 176, !23, i64 192, !23, i64 208, !23, i64 224, !14, i64 240, !14, i64 248, !14, i64 256, !7, i64 264, !7, i64 288, !14, i64 368, !14, i64 376, !14, i64 384}
!23 = !{!"_LIST_ENTRY", !14, i64 0, !14, i64 8}
!24 = !{!"", !25, i64 0, !25, i64 8, !6, i64 16}
!25 = !{!"long long", !7, i64 0}
!26 = !{!"_SOCK_BUFFER", !6, i64 0, !6, i64 4, !14, i64 8}
!27 = !{!22, !7, i64 56}


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