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

; 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.ARP_INSTANCE_DATA = type { i32, ptr, ptr, %struct._EFI_ARP_PROTOCOL, %struct._LIST_ENTRY, %struct.EFI_ARP_CONFIG_DATA, i8, i8 }
%struct._EFI_ARP_PROTOCOL = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct.EFI_ARP_CONFIG_DATA = type { i16, i8, ptr, i32, i32, i32 }

@.str.10 = external hidden unnamed_addr constant [64 x i8], align 1

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

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

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

declare zeroext i8 @DebugPrintEnabled() #0

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #0

declare void @DebugPrint(i64 noundef, ptr noundef, ...) #0

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

declare void @FreePool(ptr noundef) #0

declare ptr @AllocatePool(i64 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i64 @ArpConfigureInstance(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 i32, align 4
  %8 = 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 4, ptr %7) #3
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.ARP_INSTANCE_DATA, ptr %9, i32 0, i32 5
  store ptr %10, ptr %6, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = icmp ne ptr %11, null
  br i1 %12, label %13, label %154

13:                                               ; preds = %2
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ARP_INSTANCE_DATA, ptr %14, i32 0, i32 6
  %16 = load i8, ptr %15, align 8, !tbaa !9
  %17 = icmp ne i8 %16, 0
  br i1 %17, label %18, label %53

18:                                               ; preds = %13
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %19, i32 0, i32 0
  %21 = load i16, ptr %20, align 8, !tbaa !16
  %22 = zext i16 %21 to i32
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %23, i32 0, i32 0
  %25 = load i16, ptr %24, align 8, !tbaa !16
  %26 = zext i16 %25 to i32
  %27 = icmp ne i32 %22, %26
  br i1 %27, label %51, label %28

28:                                               ; preds = %18
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %29, i32 0, i32 1
  %31 = load i8, ptr %30, align 2, !tbaa !17
  %32 = zext i8 %31 to i32
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %33, i32 0, i32 1
  %35 = load i8, ptr %34, align 2, !tbaa !17
  %36 = zext i8 %35 to i32
  %37 = icmp ne i32 %32, %36
  br i1 %37, label %51, label %38

38:                                               ; preds = %28
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %39, i32 0, i32 2
  %41 = load ptr, ptr %40, align 8, !tbaa !18
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %45, i32 0, i32 1
  %47 = load i8, ptr %46, align 2, !tbaa !17
  %48 = zext i8 %47 to i64
  %49 = call i64 @CompareMem(ptr noundef %41, ptr noundef %44, i64 noundef %48)
  %50 = icmp ne i64 %49, 0
  br i1 %50, label %51, label %52

51:                                               ; preds = %38, %28, %18
  store i64 -9223372036854775793, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %174

52:                                               ; preds = %38
  br label %114

53:                                               ; preds = %13
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %54, i32 0, i32 0
  %56 = load i16, ptr %55, align 8, !tbaa !16
  %57 = zext i16 %56 to i32
  %58 = icmp eq i32 %57, 2048
  br i1 %58, label %59, label %70

59:                                               ; preds = %53
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !18
  %63 = call ptr @CopyMem(ptr noundef %7, ptr noundef %62, i64 noundef 4)
  %64 = load i32, ptr %7, align 4, !tbaa !19
  %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 %69, label %68

68:                                               ; preds = %59
  store i64 -9223372036854775806, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %174

69:                                               ; preds = %59
  br label %70

70:                                               ; preds = %69, %53
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = call ptr @CopyMem(ptr noundef %71, ptr noundef %72, i64 noundef 32)
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %74, i32 0, i32 1
  %76 = load i8, ptr %75, align 2, !tbaa !17
  %77 = zext i8 %76 to i64
  %78 = call ptr @AllocatePool(i64 noundef %77)
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %79, i32 0, i32 2
  store ptr %78, ptr %80, align 8, !tbaa !18
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %81, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !18
  %84 = icmp eq ptr %83, null
  br i1 %84, label %85, label %100

85:                                               ; preds = %70
  br label %86

86:                                               ; preds = %85
  %87 = call zeroext i8 @DebugPrintEnabled()
  %88 = icmp ne i8 %87, 0
  br i1 %88, label %89, label %97

89:                                               ; preds = %86
  br label %90

90:                                               ; preds = %89
  %91 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648)
  %92 = icmp ne i8 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef @.str.10)
  br label %94

94:                                               ; preds = %93, %90
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96, %86
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  store i64 -9223372036854775799, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %174

100:                                              ; preds = %70
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %101, i32 0, i32 2
  %103 = load ptr, ptr %102, align 8, !tbaa !18
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %104, i32 0, i32 2
  %106 = load ptr, ptr %105, align 8, !tbaa !18
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %107, i32 0, i32 1
  %109 = load i8, ptr %108, align 2, !tbaa !17
  %110 = zext i8 %109 to i64
  %111 = call ptr @CopyMem(ptr noundef %103, ptr noundef %106, i64 noundef %110)
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ARP_INSTANCE_DATA, ptr %112, i32 0, i32 6
  store i8 1, ptr %113, align 8, !tbaa !9
  br label %114

114:                                              ; preds = %100, %52
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %115, i32 0, i32 3
  %117 = load i32, ptr %116, align 8, !tbaa !20
  %118 = icmp eq i32 %117, 0
  br i1 %118, label %119, label %120

119:                                              ; preds = %114
  br label %124

120:                                              ; preds = %114
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %121, i32 0, i32 3
  %123 = load i32, ptr %122, align 8, !tbaa !20
  br label %124

124:                                              ; preds = %120, %119
  %125 = phi i32 [ -294967296, %119 ], [ %123, %120 ]
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %126, i32 0, i32 3
  store i32 %125, ptr %127, align 8, !tbaa !20
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %128, i32 0, i32 4
  %130 = load i32, ptr %129, align 4, !tbaa !21
  %131 = icmp eq i32 %130, 0
  br i1 %131, label %132, label %133

132:                                              ; preds = %124
  br label %137

133:                                              ; preds = %124
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %134, i32 0, i32 4
  %136 = load i32, ptr %135, align 4, !tbaa !21
  br label %137

137:                                              ; preds = %133, %132
  %138 = phi i32 [ 2, %132 ], [ %136, %133 ]
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %139, i32 0, i32 4
  store i32 %138, ptr %140, align 4, !tbaa !21
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %141, i32 0, i32 5
  %143 = load i32, ptr %142, align 8, !tbaa !22
  %144 = icmp eq i32 %143, 0
  br i1 %144, label %145, label %146

145:                                              ; preds = %137
  br label %150

146:                                              ; preds = %137
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %147, i32 0, i32 5
  %149 = load i32, ptr %148, align 8, !tbaa !22
  br label %150

150:                                              ; preds = %146, %145
  %151 = phi i32 [ 50000, %145 ], [ %149, %146 ]
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %152, i32 0, i32 5
  store i32 %151, ptr %153, align 8, !tbaa !22
  br label %173

154:                                              ; preds = %2
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ARP_INSTANCE_DATA, ptr %155, i32 0, i32 6
  %157 = load i8, ptr %156, align 8, !tbaa !9
  %158 = icmp ne i8 %157, 0
  br i1 %158, label %159, label %170

159:                                              ; preds = %154
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ARP_INSTANCE_DATA, ptr %160, i32 0, i32 3
  %162 = getelementptr inbounds %struct._EFI_ARP_PROTOCOL, ptr %161, i32 0, i32 6
  %163 = load ptr, ptr %162, align 8, !tbaa !23
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.ARP_INSTANCE_DATA, ptr %164, i32 0, i32 3
  %166 = call i64 %163(ptr noundef %165, ptr noundef null, ptr noundef null)
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.EFI_ARP_CONFIG_DATA, ptr %167, i32 0, i32 2
  %169 = load ptr, ptr %168, align 8, !tbaa !18
  call void @FreePool(ptr noundef %169)
  br label %170

170:                                              ; preds = %159, %154
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.ARP_INSTANCE_DATA, ptr %171, i32 0, i32 6
  store i8 0, ptr %172, align 8, !tbaa !9
  br label %173

173:                                              ; preds = %170, %150
  store i64 0, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %174

174:                                              ; preds = %173, %99, %68, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %175 = load i64, ptr %3, align 8
  ret i64 %175
}

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

declare i32 @SwapBytes32(i32 noundef) #0

attributes #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 = { 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, !7, i64 128}
!10 = !{!"", !11, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !13, i64 80, !14, i64 96, !7, i64 128, !7, i64 129}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_EFI_ARP_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!13 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!14 = !{!"", !15, i64 0, !7, i64 2, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !15, i64 0}
!17 = !{!14, !7, i64 2}
!18 = !{!14, !6, i64 8}
!19 = !{!11, !11, i64 0}
!20 = !{!14, !11, i64 16}
!21 = !{!14, !11, i64 20}
!22 = !{!14, !11, i64 24}
!23 = !{!10, !6, i64 72}


; 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.10 = external hidden unnamed_addr constant [64 x i8], align 1

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

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

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

declare zeroext i8 @DebugPrintEnabled() local_unnamed_addr #0

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) local_unnamed_addr #0

declare void @DebugPrint(i64 noundef, ptr noundef, ...) local_unnamed_addr #0

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

declare void @FreePool(ptr noundef) local_unnamed_addr #0

declare ptr @AllocatePool(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775806, 1) i64 @ArpConfigureInstance(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %4 = getelementptr inbounds i8, ptr %0, i64 96
  %.not = icmp eq ptr %1, null
  %5 = getelementptr inbounds i8, ptr %0, i64 128
  %6 = load i8, ptr %5, align 8, !tbaa !5
  %.not40 = icmp eq i8 %6, 0
  br i1 %.not, label %63, label %7

7:                                                ; preds = %2
  br i1 %.not40, label %23, label %8

8:                                                ; preds = %7
  %9 = load i16, ptr %4, align 8, !tbaa !15
  %10 = load i16, ptr %1, align 8, !tbaa !15
  %.not45 = icmp eq i16 %9, %10
  br i1 %.not45, label %11, label %72

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 98
  %13 = load i8, ptr %12, align 2, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %1, i64 2
  %15 = load i8, ptr %14, align 2, !tbaa !16
  %.not46 = icmp eq i8 %13, %15
  br i1 %.not46, label %16, label %72

16:                                               ; preds = %11
  %17 = getelementptr inbounds i8, ptr %0, i64 104
  %18 = load ptr, ptr %17, align 8, !tbaa !17
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load ptr, ptr %19, align 8, !tbaa !17
  %21 = zext i8 %13 to i64
  %22 = tail call i64 @CompareMem(ptr noundef %18, ptr noundef %20, i64 noundef %21) #3
  %.not47 = icmp eq i64 %22, 0
  br i1 %.not47, label %52, label %72

23:                                               ; preds = %7
  %24 = load i16, ptr %1, align 8, !tbaa !15
  %25 = icmp eq i16 %24, 2048
  br i1 %25, label %26, label %33

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %1, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !17
  %29 = call ptr @CopyMem(ptr noundef nonnull %3, ptr noundef %28, i64 noundef 4) #3
  %30 = load i32, ptr %3, align 4, !tbaa !18
  %31 = call i32 @SwapBytes32(i32 noundef %30) #3
  %32 = call zeroext i8 @NetIp4IsUnicast(i32 noundef %31, i32 noundef 0) #3
  %.not42 = icmp eq i8 %32, 0
  br i1 %.not42, label %72, label %33

33:                                               ; preds = %26, %23
  %34 = call ptr @CopyMem(ptr noundef nonnull %4, ptr noundef nonnull %1, i64 noundef 32) #3
  %35 = getelementptr inbounds i8, ptr %0, i64 98
  %36 = load i8, ptr %35, align 2, !tbaa !16
  %37 = zext i8 %36 to i64
  %38 = call ptr @AllocatePool(i64 noundef %37) #3
  %39 = getelementptr inbounds i8, ptr %0, i64 104
  store ptr %38, ptr %39, align 8, !tbaa !17
  %40 = icmp eq ptr %38, null
  br i1 %40, label %41, label %46

41:                                               ; preds = %33
  %42 = call zeroext i8 @DebugPrintEnabled() #3
  %.not43 = icmp eq i8 %42, 0
  br i1 %.not43, label %72, label %43

43:                                               ; preds = %41
  %44 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 2147483648) #3
  %.not44 = icmp eq i8 %44, 0
  br i1 %.not44, label %72, label %45

45:                                               ; preds = %43
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 2147483648, ptr noundef nonnull @.str.10) #3
  br label %72

46:                                               ; preds = %33
  %47 = getelementptr inbounds i8, ptr %1, i64 8
  %48 = load ptr, ptr %47, align 8, !tbaa !17
  %49 = load i8, ptr %35, align 2, !tbaa !16
  %50 = zext i8 %49 to i64
  %51 = call ptr @CopyMem(ptr noundef nonnull %38, ptr noundef %48, i64 noundef %50) #3
  store i8 1, ptr %5, align 8, !tbaa !5
  br label %52

52:                                               ; preds = %16, %46
  %53 = getelementptr inbounds i8, ptr %1, i64 16
  %54 = getelementptr inbounds i8, ptr %0, i64 112
  %55 = load <2 x i32>, ptr %53, align 8, !tbaa !18
  %56 = icmp eq <2 x i32> %55, zeroinitializer
  %57 = select <2 x i1> %56, <2 x i32> <i32 -294967296, i32 2>, <2 x i32> %55
  store <2 x i32> %57, ptr %54, align 8, !tbaa !18
  %58 = getelementptr inbounds i8, ptr %1, i64 24
  %59 = load i32, ptr %58, align 8, !tbaa !19
  %60 = icmp eq i32 %59, 0
  %61 = select i1 %60, i32 50000, i32 %59
  %62 = getelementptr inbounds i8, ptr %0, i64 120
  store i32 %61, ptr %62, align 8, !tbaa !19
  br label %72

63:                                               ; preds = %2
  br i1 %.not40, label %71, label %64

64:                                               ; preds = %63
  %65 = getelementptr inbounds i8, ptr %0, i64 24
  %66 = getelementptr inbounds i8, ptr %0, i64 72
  %67 = load ptr, ptr %66, align 8, !tbaa !20
  %68 = tail call i64 %67(ptr noundef nonnull %65, ptr noundef null, ptr noundef null) #3
  %69 = getelementptr inbounds i8, ptr %0, i64 104
  %70 = load ptr, ptr %69, align 8, !tbaa !17
  tail call void @FreePool(ptr noundef %70) #3
  br label %71

71:                                               ; preds = %64, %63
  store i8 0, ptr %5, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %52, %71, %41, %45, %43, %26, %8, %11, %16
  %.0 = phi i64 [ -9223372036854775793, %16 ], [ -9223372036854775793, %11 ], [ -9223372036854775793, %8 ], [ -9223372036854775806, %26 ], [ -9223372036854775799, %43 ], [ -9223372036854775799, %45 ], [ -9223372036854775799, %41 ], [ 0, %71 ], [ 0, %52 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  ret i64 %.0
}

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

declare i32 @SwapBytes32(i32 noundef) local_unnamed_addr #0

attributes #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !8, i64 128}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !12, i64 80, !13, i64 96, !8, i64 128, !8, i64 129}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_EFI_ARP_PROTOCOL", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!12 = !{!"_LIST_ENTRY", !10, i64 0, !10, i64 8}
!13 = !{!"", !14, i64 0, !8, i64 2, !10, i64 8, !7, i64 16, !7, i64 20, !7, i64 24}
!14 = !{!"short", !8, i64 0}
!15 = !{!13, !14, i64 0}
!16 = !{!13, !8, i64 2}
!17 = !{!13, !10, i64 8}
!18 = !{!7, !7, i64 0}
!19 = !{!13, !7, i64 24}
!20 = !{!6, !10, i64 72}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass