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

; 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._IP_IO = type { %struct._LIST_ENTRY, %struct._LIST_ENTRY, ptr, ptr, ptr, %union.IP_IO_IP_PROTOCOL, i8, i8, %union.IP_IO_IP_COMPLETION_TOKEN, %struct._LIST_ENTRY, ptr, ptr, ptr, ptr, i8 }
%union.IP_IO_IP_PROTOCOL = type { ptr }
%union.IP_IO_IP_COMPLETION_TOKEN = type { %struct.EFI_IP4_COMPLETION_TOKEN }
%struct.EFI_IP4_COMPLETION_TOKEN = type { ptr, i64, %union.anon }
%union.anon = type { ptr }
%struct._LIST_ENTRY = type { ptr, ptr }
%struct.NET_BUF = type { i32, i64, %struct._LIST_ENTRY, %union.NET_IP_HEAD, ptr, ptr, [64 x i8], ptr, i32, i32, [1 x %struct.NET_BLOCK_OP] }
%union.NET_IP_HEAD = type { ptr }
%struct.NET_BLOCK_OP = type { ptr, ptr, ptr, ptr, i32 }
%struct.IP6_ICMP_ERROR_HEAD = type { %struct.IP6_ICMP_HEAD, i32, %struct._EFI_IP6_HEADER }
%struct.IP6_ICMP_HEAD = type { i8, i8, i16 }
%struct._EFI_IP6_HEADER = type { i16, i16, i16, i8, i8, %struct.EFI_IPv6_ADDRESS, %struct.EFI_IPv6_ADDRESS }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }

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

declare i32 @NetbufTrim(ptr noundef, i32 noundef, i8 noundef zeroext) #1

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

18:                                               ; preds = %3
  %19 = call zeroext i8 @DebugAssertEnabled()
  %20 = icmp ne i8 %19, 0
  br i1 %20, label %21, label %29

21:                                               ; preds = %18
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct._IP_IO, ptr %22, i32 0, i32 14
  %24 = load i8, ptr %23, align 8, !tbaa !9
  %25 = zext i8 %24 to i32
  %26 = icmp eq i32 %25, 6
  br i1 %26, label %28, label %27

27:                                               ; preds = %21
  call void @DebugAssert(ptr noundef @.str, i64 noundef 414, ptr noundef @.str.2)
  br label %28

28:                                               ; preds = %27, %21
  br label %29

29:                                               ; preds = %28, %18
  br label %30

30:                                               ; preds = %29
  br label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.NET_BUF, ptr %32, i32 0, i32 9
  %34 = load i32, ptr %33, align 4, !tbaa !12
  %35 = zext i32 %34 to i64
  %36 = icmp ult i64 %35, 48
  br i1 %36, label %37, label %38

37:                                               ; preds = %31
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %17, align 4
  br label %142

38:                                               ; preds = %31
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.NET_BUF, ptr %39, i32 0, i32 10
  %41 = getelementptr inbounds [1 x %struct.NET_BLOCK_OP], ptr %40, i64 0, i64 0
  %42 = getelementptr inbounds %struct.NET_BLOCK_OP, ptr %41, i32 0, i32 2
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  store ptr %43, ptr %8, align 8, !tbaa !5
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.IP6_ICMP_ERROR_HEAD, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds %struct.IP6_ICMP_HEAD, ptr %45, i32 0, i32 0
  %47 = load i8, ptr %46, align 1, !tbaa !18
  store i8 %47, ptr %12, align 1, !tbaa !24
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.IP6_ICMP_ERROR_HEAD, ptr %48, i32 0, i32 0
  %50 = getelementptr inbounds %struct.IP6_ICMP_HEAD, ptr %49, i32 0, i32 1
  %51 = load i8, ptr %50, align 1, !tbaa !25
  store i8 %51, ptr %13, align 1, !tbaa !24
  %52 = load i8, ptr %12, align 1, !tbaa !24
  %53 = zext i8 %52 to i32
  switch i32 %53, label %88 [
    i32 1, label %54
    i32 2, label %62
    i32 3, label %68
    i32 4, label %78
  ]

54:                                               ; preds = %38
  %55 = load i8, ptr %13, align 1, !tbaa !24
  %56 = zext i8 %55 to i32
  switch i32 %56, label %60 [
    i32 0, label %57
    i32 2, label %57
    i32 6, label %57
    i32 1, label %58
    i32 3, label %58
    i32 5, label %58
    i32 4, label %59
  ]

57:                                               ; preds = %54, %54, %54
  store i8 0, ptr %10, align 1, !tbaa !24
  br label %61

58:                                               ; preds = %54, %54, %54
  store i8 1, ptr %10, align 1, !tbaa !24
  br label %61

59:                                               ; preds = %54
  store i8 3, ptr %10, align 1, !tbaa !24
  br label %61

60:                                               ; preds = %54
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %17, align 4
  br label %142

61:                                               ; preds = %59, %58, %57
  br label %89

62:                                               ; preds = %38
  %63 = load i8, ptr %13, align 1, !tbaa !24
  %64 = zext i8 %63 to i32
  %65 = icmp sge i32 %64, 1
  br i1 %65, label %66, label %67

66:                                               ; preds = %62
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %17, align 4
  br label %142

67:                                               ; preds = %62
  store i8 4, ptr %10, align 1, !tbaa !24
  br label %89

68:                                               ; preds = %38
  %69 = load i8, ptr %13, align 1, !tbaa !24
  %70 = zext i8 %69 to i32
  %71 = icmp sgt i32 %70, 1
  br i1 %71, label %72, label %73

72:                                               ; preds = %68
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %17, align 4
  br label %142

73:                                               ; preds = %68
  %74 = load i8, ptr %13, align 1, !tbaa !24
  %75 = zext i8 %74 to i32
  %76 = add nsw i32 5, %75
  %77 = trunc i32 %76 to i8
  store i8 %77, ptr %10, align 1, !tbaa !24
  br label %89

78:                                               ; preds = %38
  %79 = load i8, ptr %13, align 1, !tbaa !24
  %80 = zext i8 %79 to i32
  %81 = icmp sgt i32 %80, 3
  br i1 %81, label %82, label %83

82:                                               ; preds = %78
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %17, align 4
  br label %142

83:                                               ; preds = %78
  %84 = load i8, ptr %13, align 1, !tbaa !24
  %85 = zext i8 %84 to i32
  %86 = add nsw i32 7, %85
  %87 = trunc i32 %86 to i8
  store i8 %87, ptr %10, align 1, !tbaa !24
  br label %89

88:                                               ; preds = %38
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %17, align 4
  br label %142

89:                                               ; preds = %83, %73, %67, %61
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.IP6_ICMP_ERROR_HEAD, ptr %90, i32 0, i32 2
  store ptr %91, ptr %9, align 8, !tbaa !5
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._EFI_IP6_HEADER, ptr %92, i32 0, i32 3
  %94 = load i8, ptr %93, align 1, !tbaa !26
  store i8 %94, ptr %14, align 1, !tbaa !24
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 48
  store ptr %96, ptr %11, align 8, !tbaa !5
  store i8 1, ptr %16, align 1, !tbaa !24
  br label %97

97:                                               ; preds = %120, %89
  %98 = load i8, ptr %14, align 1, !tbaa !24
  %99 = zext i8 %98 to i32
  switch i32 %99, label %118 [
    i32 17, label %100
    i32 6, label %100
    i32 1, label %100
    i32 59, label %100
    i32 0, label %101
    i32 60, label %101
    i32 44, label %113
  ]

100:                                              ; preds = %97, %97, %97, %97
  store i8 0, ptr %16, align 1, !tbaa !24
  br label %119

101:                                              ; preds = %97, %97
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = load i8, ptr %102, align 1, !tbaa !24
  store i8 %103, ptr %14, align 1, !tbaa !24
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = getelementptr inbounds i8, ptr %105, i64 1
  %107 = load i8, ptr %106, align 1, !tbaa !24
  %108 = zext i8 %107 to i32
  %109 = add nsw i32 %108, 1
  %110 = mul nsw i32 %109, 8
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i8, ptr %104, i64 %111
  store ptr %112, ptr %11, align 8, !tbaa !5
  br label %119

113:                                              ; preds = %97
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = load i8, ptr %114, align 1, !tbaa !24
  store i8 %115, ptr %14, align 1, !tbaa !24
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = getelementptr inbounds i8, ptr %116, i64 8
  store ptr %117, ptr %11, align 8, !tbaa !5
  br label %119

118:                                              ; preds = %97
  store i64 -9223372036854775787, ptr %4, align 8
  store i32 1, ptr %17, align 4
  br label %142

119:                                              ; preds = %113, %101, %100
  br label %120

120:                                              ; preds = %119
  %121 = load i8, ptr %16, align 1, !tbaa !24
  %122 = icmp ne i8 %121, 0
  br i1 %122, label %97, label %123, !llvm.loop !27

123:                                              ; preds = %120
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = ptrtoint ptr %124 to i64
  %127 = ptrtoint ptr %125 to i64
  %128 = sub i64 %126, %127
  %129 = trunc i64 %128 to i32
  store i32 %129, ptr %15, align 4, !tbaa !29
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load i32, ptr %15, align 4, !tbaa !29
  %132 = call i32 @NetbufTrim(ptr noundef %130, i32 noundef %131, i8 noundef zeroext 1)
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct._IP_IO, ptr %133, i32 0, i32 12
  %135 = load ptr, ptr %134, align 8, !tbaa !30
  %136 = load i8, ptr %10, align 1, !tbaa !24
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct._IP_IO, ptr %139, i32 0, i32 10
  %141 = load ptr, ptr %140, align 8, !tbaa !31
  call void %135(i64 noundef -9223372036854775786, i8 noundef zeroext %136, ptr noundef %137, ptr noundef %138, ptr noundef %141)
  store i64 0, ptr %4, align 8
  store i32 1, ptr %17, align 4
  br label %142

142:                                              ; preds = %123, %118, %88, %82, %72, %66, %60, %37
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  %143 = load i64, ptr %4, align 8
  ret i64 %143
}

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, !7, i64 144}
!10 = !{!"_IP_IO", !11, i64 0, !11, i64 16, !6, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !7, i64 64, !7, i64 65, !7, i64 72, !11, i64 96, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !7, i64 144}
!11 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!12 = !{!13, !14, i64 132}
!13 = !{!"", !14, i64 0, !15, i64 8, !11, i64 16, !7, i64 32, !6, i64 40, !6, i64 48, !7, i64 56, !6, i64 120, !14, i64 128, !14, i64 132, !7, i64 136}
!14 = !{!"int", !7, i64 0}
!15 = !{!"long long", !7, i64 0}
!16 = !{!17, !6, i64 16}
!17 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !14, i64 32}
!18 = !{!19, !7, i64 0}
!19 = !{!"", !20, i64 0, !14, i64 4, !22, i64 8}
!20 = !{!"", !7, i64 0, !7, i64 1, !21, i64 2}
!21 = !{!"short", !7, i64 0}
!22 = !{!"_EFI_IP6_HEADER", !7, i64 0, !7, i64 0, !7, i64 1, !7, i64 1, !21, i64 2, !21, i64 4, !7, i64 6, !7, i64 7, !23, i64 8, !23, i64 24}
!23 = !{!"", !7, i64 0}
!24 = !{!7, !7, i64 0}
!25 = !{!19, !7, i64 1}
!26 = !{!22, !7, i64 6}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!14, !14, i64 0}
!30 = !{!10, !6, i64 128}
!31 = !{!10, !6, i64 112}


; 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 [146 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 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 i32 @NetbufTrim(ptr noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #0

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

5:                                                ; preds = %3
  %6 = getelementptr inbounds i8, ptr %0, i64 144
  %7 = load i8, ptr %6, align 8, !tbaa !5
  %8 = icmp eq i8 %7, 6
  br i1 %8, label %10, label %9

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

10:                                               ; preds = %5, %9, %3
  %11 = getelementptr inbounds i8, ptr %1, i64 132
  %12 = load i32, ptr %11, align 4, !tbaa !11
  %13 = icmp ult i32 %12, 48
  br i1 %13, label %.loopexit, label %14

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %1, i64 152
  %16 = load ptr, ptr %15, align 8, !tbaa !15
  %17 = load i8, ptr %16, align 1, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %16, i64 1
  %19 = load i8, ptr %18, align 1, !tbaa !23
  switch i8 %17, label %.loopexit [
    i8 1, label %20
    i8 2, label %22
    i8 3, label %23
    i8 4, label %26
  ]

20:                                               ; preds = %14
  %21 = icmp ult i8 %19, 7
  br i1 %21, label %switch.lookup, label %.loopexit

22:                                               ; preds = %14
  %.not40 = icmp eq i8 %19, 0
  br i1 %.not40, label %30, label %.loopexit

23:                                               ; preds = %14
  %24 = icmp ugt i8 %19, 1
  br i1 %24, label %.loopexit, label %25

25:                                               ; preds = %23
  %narrow39 = add nuw nsw i8 %19, 5
  br label %30

26:                                               ; preds = %14
  %27 = icmp ugt i8 %19, 3
  br i1 %27, label %.loopexit, label %28

28:                                               ; preds = %26
  %narrow = add nuw nsw i8 %19, 7
  br label %30

switch.lookup:                                    ; preds = %20
  %29 = shl nuw nsw i8 %19, 3
  %switch.shiftamt = zext nneg i8 %29 to i56
  %switch.downshift = lshr i56 1112413307136, %switch.shiftamt
  %switch.masked = trunc i56 %switch.downshift to i8
  br label %30

30:                                               ; preds = %switch.lookup, %22, %28, %25
  %.034 = phi i8 [ %narrow, %28 ], [ %narrow39, %25 ], [ 4, %22 ], [ %switch.masked, %switch.lookup ]
  %31 = getelementptr inbounds i8, ptr %16, i64 14
  %32 = getelementptr inbounds i8, ptr %16, i64 48
  br label %33

33:                                               ; preds = %40, %30
  %.035 = phi ptr [ %32, %30 ], [ %41, %40 ]
  %.032.in = phi ptr [ %31, %30 ], [ %.035, %40 ]
  %.032 = load i8, ptr %.032.in, align 1, !tbaa !24
  switch i8 %.032, label %.loopexit [
    i8 17, label %42
    i8 6, label %42
    i8 1, label %42
    i8 59, label %42
    i8 0, label %34
    i8 60, label %34
    i8 44, label %40
  ]

34:                                               ; preds = %33, %33
  %35 = getelementptr inbounds i8, ptr %.035, i64 1
  %36 = load i8, ptr %35, align 1, !tbaa !24
  %37 = zext i8 %36 to i64
  %38 = shl nuw nsw i64 %37, 3
  %39 = add nuw nsw i64 %38, 8
  br label %40

40:                                               ; preds = %33, %34
  %.sink = phi i64 [ %39, %34 ], [ 8, %33 ]
  %41 = getelementptr inbounds i8, ptr %.035, i64 %.sink
  br label %33, !llvm.loop !25

42:                                               ; preds = %33, %33, %33, %33
  %43 = ptrtoint ptr %.035 to i64
  %44 = ptrtoint ptr %16 to i64
  %45 = sub i64 %43, %44
  %46 = trunc i64 %45 to i32
  %47 = tail call i32 @NetbufTrim(ptr noundef %1, i32 noundef %46, i8 noundef zeroext 1) #2
  %48 = getelementptr inbounds i8, ptr %0, i64 128
  %49 = load ptr, ptr %48, align 8, !tbaa !27
  %50 = getelementptr inbounds i8, ptr %0, i64 112
  %51 = load ptr, ptr %50, align 8, !tbaa !28
  tail call void %49(i64 noundef -9223372036854775786, i8 noundef zeroext %.034, ptr noundef %2, ptr noundef %1, ptr noundef %51) #2
  br label %.loopexit

.loopexit:                                        ; preds = %33, %20, %14, %26, %23, %22, %10, %42
  %.031 = phi i64 [ 0, %42 ], [ -9223372036854775787, %10 ], [ -9223372036854775787, %20 ], [ -9223372036854775787, %22 ], [ -9223372036854775787, %23 ], [ -9223372036854775787, %26 ], [ -9223372036854775787, %14 ], [ -9223372036854775787, %33 ]
  ret i64 %.031
}

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, !9, i64 144}
!6 = !{!"_IP_IO", !7, i64 0, !7, i64 16, !8, i64 32, !8, i64 40, !8, i64 48, !9, i64 56, !9, i64 64, !9, i64 65, !9, i64 72, !7, i64 96, !8, i64 112, !8, i64 120, !8, i64 128, !8, i64 136, !9, i64 144}
!7 = !{!"_LIST_ENTRY", !8, i64 0, !8, i64 8}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !13, i64 132}
!12 = !{!"", !13, i64 0, !14, i64 8, !7, i64 16, !9, i64 32, !8, i64 40, !8, i64 48, !9, i64 56, !8, i64 120, !13, i64 128, !13, i64 132, !9, i64 136}
!13 = !{!"int", !9, i64 0}
!14 = !{!"long long", !9, i64 0}
!15 = !{!16, !8, i64 16}
!16 = !{!"", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !13, i64 32}
!17 = !{!18, !9, i64 0}
!18 = !{!"", !19, i64 0, !13, i64 4, !21, i64 8}
!19 = !{!"", !9, i64 0, !9, i64 1, !20, i64 2}
!20 = !{!"short", !9, i64 0}
!21 = !{!"_EFI_IP6_HEADER", !9, i64 0, !9, i64 0, !9, i64 1, !9, i64 1, !20, i64 2, !20, i64 4, !9, i64 6, !9, i64 7, !22, i64 8, !22, i64 24}
!22 = !{!"", !9, i64 0}
!23 = !{!18, !9, i64 1}
!24 = !{!9, !9, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!6, !8, i64 128}
!28 = !{!6, !8, i64 112}


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