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

; 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._LIST_ENTRY = type { ptr, ptr }
%struct.ARP_CACHE_ENTRY = type { %struct._LIST_ENTRY, i32, i32, i32, i32, [2 x %struct.NET_ARP_ADDRESS], %struct._LIST_ENTRY }
%struct.NET_ARP_ADDRESS = type { i16, i8, ptr, %union.NET_ARP_ADDRESS_UNION }
%union.NET_ARP_ADDRESS_UNION = type { [32 x i8] }

@.str = external hidden unnamed_addr constant [149 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [43 x i8], align 1

declare zeroext i8 @DebugAssertEnabled() #0

declare void @DebugAssert(ptr noundef, i64 noundef, ptr 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 @IsListEmpty(ptr noundef) #0

declare ptr @RemoveEntryList(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

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

21:                                               ; preds = %113, %5
  %22 = load ptr, ptr %11, align 8, !tbaa !5
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = icmp ne ptr %22, %23
  br i1 %24, label %25, label %118

25:                                               ; preds = %21
  %26 = load ptr, ptr %11, align 8, !tbaa !5
  %27 = ptrtoint ptr %26 to i64
  %28 = sub i64 %27, 0
  %29 = inttoptr i64 %28 to ptr
  store ptr %29, ptr %13, align 8, !tbaa !5
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.ARP_CACHE_ENTRY, ptr %30, i32 0, i32 2
  %32 = load i32, ptr %31, align 4, !tbaa !16
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %38

34:                                               ; preds = %25
  %35 = load i8, ptr %10, align 1, !tbaa !9
  %36 = icmp ne i8 %35, 0
  br i1 %36, label %38, label %37

37:                                               ; preds = %34
  br label %113

38:                                               ; preds = %34, %25
  %39 = load i8, ptr %7, align 1, !tbaa !9
  %40 = icmp ne i8 %39, 0
  br i1 %40, label %41, label %72

41:                                               ; preds = %38
  %42 = load i16, ptr %8, align 2, !tbaa !10
  %43 = zext i16 %42 to i32
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.ARP_CACHE_ENTRY, ptr %44, i32 0, i32 5
  %46 = getelementptr inbounds [2 x %struct.NET_ARP_ADDRESS], ptr %45, i64 0, i64 1
  %47 = getelementptr inbounds %struct.NET_ARP_ADDRESS, ptr %46, i32 0, i32 0
  %48 = load i16, ptr %47, align 8, !tbaa !19
  %49 = zext i16 %48 to i32
  %50 = icmp eq i32 %43, %49
  br i1 %50, label %51, label %71

51:                                               ; preds = %41
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = icmp eq ptr %52, null
  br i1 %53, label %69, label %54

54:                                               ; preds = %51
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.ARP_CACHE_ENTRY, ptr %56, i32 0, i32 5
  %58 = getelementptr inbounds [2 x %struct.NET_ARP_ADDRESS], ptr %57, i64 0, i64 1
  %59 = getelementptr inbounds %struct.NET_ARP_ADDRESS, ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !21
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ARP_CACHE_ENTRY, ptr %61, i32 0, i32 5
  %63 = getelementptr inbounds [2 x %struct.NET_ARP_ADDRESS], ptr %62, i64 0, i64 1
  %64 = getelementptr inbounds %struct.NET_ARP_ADDRESS, ptr %63, i32 0, i32 1
  %65 = load i8, ptr %64, align 2, !tbaa !22
  %66 = zext i8 %65 to i64
  %67 = call i64 @CompareMem(ptr noundef %55, ptr noundef %60, i64 noundef %66)
  %68 = icmp eq i64 %67, 0
  br i1 %68, label %69, label %70

69:                                               ; preds = %54, %51
  br label %93

70:                                               ; preds = %54
  br label %71

71:                                               ; preds = %70, %41
  br label %92

72:                                               ; preds = %38
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = icmp eq ptr %73, null
  br i1 %74, label %90, label %75

75:                                               ; preds = %72
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ARP_CACHE_ENTRY, ptr %77, i32 0, i32 5
  %79 = getelementptr inbounds [2 x %struct.NET_ARP_ADDRESS], ptr %78, i64 0, i64 0
  %80 = getelementptr inbounds %struct.NET_ARP_ADDRESS, ptr %79, i32 0, i32 2
  %81 = load ptr, ptr %80, align 8, !tbaa !21
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ARP_CACHE_ENTRY, ptr %82, i32 0, i32 5
  %84 = getelementptr inbounds [2 x %struct.NET_ARP_ADDRESS], ptr %83, i64 0, i64 0
  %85 = getelementptr inbounds %struct.NET_ARP_ADDRESS, ptr %84, i32 0, i32 1
  %86 = load i8, ptr %85, align 2, !tbaa !22
  %87 = zext i8 %86 to i64
  %88 = call i64 @CompareMem(ptr noundef %76, ptr noundef %81, i64 noundef %87)
  %89 = icmp eq i64 %88, 0
  br i1 %89, label %90, label %91

90:                                               ; preds = %75, %72
  br label %93

91:                                               ; preds = %75
  br label %92

92:                                               ; preds = %91, %71
  br label %113

93:                                               ; preds = %90, %69
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ARP_CACHE_ENTRY, ptr %94, i32 0, i32 0
  %96 = call ptr @RemoveEntryList(ptr noundef %95)
  br label %97

97:                                               ; preds = %93
  %98 = call zeroext i8 @DebugAssertEnabled()
  %99 = icmp ne i8 %98, 0
  br i1 %99, label %100, label %107

100:                                              ; preds = %97
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.ARP_CACHE_ENTRY, ptr %101, i32 0, i32 6
  %103 = call zeroext i8 @IsListEmpty(ptr noundef %102)
  %104 = icmp ne i8 %103, 0
  br i1 %104, label %106, label %105

105:                                              ; preds = %100
  call void @DebugAssert(ptr noundef @.str, i64 noundef 1290, ptr noundef @.str.6)
  br label %106

106:                                              ; preds = %105, %100
  br label %107

107:                                              ; preds = %106, %97
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  call void @FreePool(ptr noundef %110)
  %111 = load i64, ptr %14, align 8, !tbaa !12
  %112 = add i64 %111, 1
  store i64 %112, ptr %14, align 8, !tbaa !12
  br label %113

113:                                              ; preds = %109, %92, %37
  %114 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %114, ptr %11, align 8, !tbaa !5
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct._LIST_ENTRY, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !14
  store ptr %117, ptr %12, align 8, !tbaa !5
  br label %21, !llvm.loop !23

118:                                              ; preds = %21
  %119 = load i64, ptr %14, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  ret i64 %119
}

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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!16 = !{!17, !18, i64 20}
!17 = !{!"", !15, i64 0, !18, i64 16, !18, i64 20, !18, i64 24, !18, i64 28, !7, i64 32, !15, i64 128}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !11, i64 0}
!20 = !{!"", !11, i64 0, !7, i64 2, !6, i64 8, !7, i64 16}
!21 = !{!20, !6, i64 8}
!22 = !{!20, !7, i64 2}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #0

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

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

declare zeroext i8 @IsListEmpty(ptr noundef) local_unnamed_addr #0

declare ptr @RemoveEntryList(ptr noundef) local_unnamed_addr #0

declare void @FreePool(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i64 @ArpDeleteCacheEntryInTable(ptr noundef readonly %0, i8 noundef zeroext %1, i16 noundef zeroext %2, ptr noundef %3, i8 noundef zeroext %4) local_unnamed_addr #1 {
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  %.02632 = load ptr, ptr %6, align 8, !tbaa !5
  %.not33 = icmp eq ptr %6, %0
  br i1 %.not33, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %5
  %7 = icmp ne i8 %4, 0
  %.not29 = icmp eq i8 %1, 0
  %8 = icmp eq ptr %3, null
  br i1 %.not29, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %30
  %.02636.us = phi ptr [ %.026.us, %30 ], [ %.02632, %.lr.ph ]
  %.035.us = phi i64 [ %.1.us, %30 ], [ 0, %.lr.ph ]
  %.02534.us = phi ptr [ %.02636.us, %30 ], [ %6, %.lr.ph ]
  %9 = getelementptr inbounds i8, ptr %.02534.us, i64 20
  %10 = load i32, ptr %9, align 4, !tbaa !10
  %11 = icmp ne i32 %10, 0
  %or.cond.us = or i1 %7, %11
  br i1 %or.cond.us, label %12, label %30

12:                                               ; preds = %.lr.ph.split.us
  br i1 %8, label %21, label %13

13:                                               ; preds = %12
  %14 = getelementptr inbounds i8, ptr %.02534.us, i64 40
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = getelementptr inbounds i8, ptr %.02534.us, i64 34
  %17 = load i8, ptr %16, align 2, !tbaa !16
  %18 = zext i8 %17 to i64
  %19 = tail call i64 @CompareMem(ptr noundef nonnull %3, ptr noundef %15, i64 noundef %18) #2
  %20 = icmp eq i64 %19, 0
  br i1 %20, label %21, label %30

21:                                               ; preds = %13, %12
  %22 = tail call ptr @RemoveEntryList(ptr noundef nonnull %.02534.us) #2
  %23 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not30.us = icmp eq i8 %23, 0
  br i1 %.not30.us, label %28, label %24

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %.02534.us, i64 128
  %26 = tail call zeroext i8 @IsListEmpty(ptr noundef nonnull %25) #2
  %.not31.us = icmp eq i8 %26, 0
  br i1 %.not31.us, label %27, label %28

27:                                               ; preds = %24
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1290, ptr noundef nonnull @.str.6) #2
  br label %28

28:                                               ; preds = %27, %24, %21
  tail call void @FreePool(ptr noundef nonnull %.02534.us) #2
  %29 = add i64 %.035.us, 1
  br label %30

30:                                               ; preds = %28, %13, %.lr.ph.split.us
  %.1.us = phi i64 [ %29, %28 ], [ %.035.us, %13 ], [ %.035.us, %.lr.ph.split.us ]
  %.026.us = load ptr, ptr %.02636.us, align 8, !tbaa !5
  %.not.us = icmp eq ptr %.02636.us, %0
  br i1 %.not.us, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !17

.lr.ph.split:                                     ; preds = %.lr.ph
  br i1 %8, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %47
  %.02636.us37 = phi ptr [ %.026.us44, %47 ], [ %.02632, %.lr.ph.split ]
  %.035.us38 = phi i64 [ %.1.us43, %47 ], [ 0, %.lr.ph.split ]
  %.02534.us39 = phi ptr [ %.02636.us37, %47 ], [ %6, %.lr.ph.split ]
  %31 = getelementptr inbounds i8, ptr %.02534.us39, i64 20
  %32 = load i32, ptr %31, align 4, !tbaa !10
  %33 = icmp ne i32 %32, 0
  %or.cond.us40 = or i1 %7, %33
  br i1 %or.cond.us40, label %34, label %47

34:                                               ; preds = %.lr.ph.split.split.us
  %35 = getelementptr inbounds i8, ptr %.02534.us39, i64 80
  %36 = load i16, ptr %35, align 8, !tbaa !19
  %37 = icmp eq i16 %36, %2
  br i1 %37, label %38, label %47

38:                                               ; preds = %34
  %39 = tail call ptr @RemoveEntryList(ptr noundef nonnull %.02534.us39) #2
  %40 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not30.us41 = icmp eq i8 %40, 0
  br i1 %.not30.us41, label %45, label %41

41:                                               ; preds = %38
  %42 = getelementptr inbounds i8, ptr %.02534.us39, i64 128
  %43 = tail call zeroext i8 @IsListEmpty(ptr noundef nonnull %42) #2
  %.not31.us42 = icmp eq i8 %43, 0
  br i1 %.not31.us42, label %44, label %45

44:                                               ; preds = %41
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1290, ptr noundef nonnull @.str.6) #2
  br label %45

45:                                               ; preds = %44, %41, %38
  tail call void @FreePool(ptr noundef nonnull %.02534.us39) #2
  %46 = add i64 %.035.us38, 1
  br label %47

47:                                               ; preds = %45, %34, %.lr.ph.split.split.us
  %.1.us43 = phi i64 [ %46, %45 ], [ %.035.us38, %34 ], [ %.035.us38, %.lr.ph.split.split.us ]
  %.026.us44 = load ptr, ptr %.02636.us37, align 8, !tbaa !5
  %.not.us45 = icmp eq ptr %.02636.us37, %0
  br i1 %.not.us45, label %._crit_edge, label %.lr.ph.split.split.us, !llvm.loop !17

.lr.ph.split.split:                               ; preds = %.lr.ph.split
  br i1 %7, label %.lr.ph.split.split.split.us, label %.lr.ph.split.split.split

.lr.ph.split.split.split.us:                      ; preds = %.lr.ph.split.split, %68
  %.02636.us48 = phi ptr [ %.026.us55, %68 ], [ %.02632, %.lr.ph.split.split ]
  %.035.us49 = phi i64 [ %.1.us54, %68 ], [ 0, %.lr.ph.split.split ]
  %.02534.us50 = phi ptr [ %.02636.us48, %68 ], [ %6, %.lr.ph.split.split ]
  %48 = getelementptr inbounds i8, ptr %.02534.us50, i64 80
  %49 = load i16, ptr %48, align 8, !tbaa !19
  %50 = icmp eq i16 %49, %2
  br i1 %50, label %51, label %68

51:                                               ; preds = %.lr.ph.split.split.split.us
  %52 = getelementptr inbounds i8, ptr %.02534.us50, i64 88
  %53 = load ptr, ptr %52, align 8, !tbaa !13
  %54 = getelementptr inbounds i8, ptr %.02534.us50, i64 82
  %55 = load i8, ptr %54, align 2, !tbaa !16
  %56 = zext i8 %55 to i64
  %57 = tail call i64 @CompareMem(ptr noundef nonnull %3, ptr noundef %53, i64 noundef %56) #2
  %58 = icmp eq i64 %57, 0
  br i1 %58, label %59, label %68

59:                                               ; preds = %51
  %60 = tail call ptr @RemoveEntryList(ptr noundef nonnull %.02534.us50) #2
  %61 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not30.us52 = icmp eq i8 %61, 0
  br i1 %.not30.us52, label %66, label %62

62:                                               ; preds = %59
  %63 = getelementptr inbounds i8, ptr %.02534.us50, i64 128
  %64 = tail call zeroext i8 @IsListEmpty(ptr noundef nonnull %63) #2
  %.not31.us53 = icmp eq i8 %64, 0
  br i1 %.not31.us53, label %65, label %66

65:                                               ; preds = %62
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1290, ptr noundef nonnull @.str.6) #2
  br label %66

66:                                               ; preds = %65, %62, %59
  tail call void @FreePool(ptr noundef nonnull %.02534.us50) #2
  %67 = add i64 %.035.us49, 1
  br label %68

68:                                               ; preds = %66, %51, %.lr.ph.split.split.split.us
  %.1.us54 = phi i64 [ %67, %66 ], [ %.035.us49, %51 ], [ %.035.us49, %.lr.ph.split.split.split.us ]
  %.026.us55 = load ptr, ptr %.02636.us48, align 8, !tbaa !5
  %.not.us56 = icmp eq ptr %.02636.us48, %0
  br i1 %.not.us56, label %._crit_edge, label %.lr.ph.split.split.split.us, !llvm.loop !17

.lr.ph.split.split.split:                         ; preds = %.lr.ph.split.split, %92
  %.02636 = phi ptr [ %.026, %92 ], [ %.02632, %.lr.ph.split.split ]
  %.035 = phi i64 [ %.1, %92 ], [ 0, %.lr.ph.split.split ]
  %.02534 = phi ptr [ %.02636, %92 ], [ %6, %.lr.ph.split.split ]
  %69 = getelementptr inbounds i8, ptr %.02534, i64 20
  %70 = load i32, ptr %69, align 4, !tbaa !10
  %.not59 = icmp eq i32 %70, 0
  br i1 %.not59, label %92, label %71

71:                                               ; preds = %.lr.ph.split.split.split
  %72 = getelementptr inbounds i8, ptr %.02534, i64 80
  %73 = load i16, ptr %72, align 8, !tbaa !19
  %74 = icmp eq i16 %73, %2
  br i1 %74, label %75, label %92

75:                                               ; preds = %71
  %76 = getelementptr inbounds i8, ptr %.02534, i64 88
  %77 = load ptr, ptr %76, align 8, !tbaa !13
  %78 = getelementptr inbounds i8, ptr %.02534, i64 82
  %79 = load i8, ptr %78, align 2, !tbaa !16
  %80 = zext i8 %79 to i64
  %81 = tail call i64 @CompareMem(ptr noundef nonnull %3, ptr noundef %77, i64 noundef %80) #2
  %82 = icmp eq i64 %81, 0
  br i1 %82, label %83, label %92

83:                                               ; preds = %75
  %84 = tail call ptr @RemoveEntryList(ptr noundef nonnull %.02534) #2
  %85 = tail call zeroext i8 @DebugAssertEnabled() #2
  %.not30 = icmp eq i8 %85, 0
  br i1 %.not30, label %90, label %86

86:                                               ; preds = %83
  %87 = getelementptr inbounds i8, ptr %.02534, i64 128
  %88 = tail call zeroext i8 @IsListEmpty(ptr noundef nonnull %87) #2
  %.not31 = icmp eq i8 %88, 0
  br i1 %.not31, label %89, label %90

89:                                               ; preds = %86
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 1290, ptr noundef nonnull @.str.6) #2
  br label %90

90:                                               ; preds = %86, %89, %83
  tail call void @FreePool(ptr noundef nonnull %.02534) #2
  %91 = add i64 %.035, 1
  br label %92

92:                                               ; preds = %75, %71, %.lr.ph.split.split.split, %90
  %.1 = phi i64 [ %91, %90 ], [ %.035, %75 ], [ %.035, %71 ], [ %.035, %.lr.ph.split.split.split ]
  %.026 = load ptr, ptr %.02636, align 8, !tbaa !5
  %.not = icmp eq ptr %.02636, %0
  br i1 %.not, label %._crit_edge, label %.lr.ph.split.split.split, !llvm.loop !17

._crit_edge:                                      ; preds = %92, %68, %47, %30, %5
  %.0.lcssa = phi i64 [ 0, %5 ], [ %.1.us, %30 ], [ %.1.us43, %47 ], [ %.1.us54, %68 ], [ %.1, %92 ]
  ret i64 %.0.lcssa
}

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 = { 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 = { 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, !7, i64 0}
!6 = !{!"_LIST_ENTRY", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !12, i64 20}
!11 = !{!"", !6, i64 0, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !8, i64 32, !6, i64 128}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !7, i64 8}
!14 = !{!"", !15, i64 0, !8, i64 2, !7, i64 8, !8, i64 16}
!15 = !{!"short", !8, i64 0}
!16 = !{!14, !8, i64 2}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!14, !15, i64 0}


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