; LLVM IR from ftylitak/qzxing :: src/zxing/bigint/BigUnsigned.ll (ZN11BigUnsigned6bitXorERKS_S1_)

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

%class.BigUnsigned = type { %class.NumberlikeArray }
%class.NumberlikeArray = type { i32, i32, ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11BigUnsigned15zapLeadingZerosEv(ptr noundef nonnull align 8 dereferenceable(16)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11BigUnsignedC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11BigUnsignedaSERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15NumberlikeArrayImED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15NumberlikeArrayImE8allocateEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11BigUnsigned6bitXorERKS_S1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %class.BigUnsigned, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  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
  %13 = load ptr, ptr %4, align 8
  %14 = load ptr, ptr %5, align 8, !tbaa !5
  %15 = icmp eq ptr %13, %14
  br i1 %15, label %19, label %16

16:                                               ; preds = %3
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = icmp eq ptr %13, %17
  br i1 %18, label %19, label %28

19:                                               ; preds = %16, %3
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #3
  call void @_ZN11BigUnsignedC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN11BigUnsigned6bitXorERKS_S1_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %22 unwind label %24

22:                                               ; preds = %19
  invoke void @_ZN11BigUnsignedaSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %23 unwind label %24

23:                                               ; preds = %22
  call void @_ZN15NumberlikeArrayImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #3
  br label %104

24:                                               ; preds = %22, %19
  %25 = landingpad { ptr, i32 }
          cleanup
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %8, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, ptr %9, align 4
  call void @_ZN15NumberlikeArrayImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #3
  br label %105

28:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %class.NumberlikeArray, ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !9
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %class.NumberlikeArray, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = icmp uge i32 %31, %34
  br i1 %35, label %36, label %39

36:                                               ; preds = %28
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %37, ptr %11, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %38, ptr %12, align 8, !tbaa !5
  br label %42

39:                                               ; preds = %28
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %40, ptr %11, align 8, !tbaa !5
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %41, ptr %12, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %39, %36
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = getelementptr inbounds %class.NumberlikeArray, ptr %43, i32 0, i32 1
  %45 = load i32, ptr %44, align 4, !tbaa !9
  call void @_ZN15NumberlikeArrayImE8allocateEj(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %45)
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %46

46:                                               ; preds = %73, %42
  %47 = load i32, ptr %10, align 4, !tbaa !12
  %48 = load ptr, ptr %12, align 8, !tbaa !5
  %49 = getelementptr inbounds %class.NumberlikeArray, ptr %48, i32 0, i32 1
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = icmp ult i32 %47, %50
  br i1 %51, label %52, label %76

52:                                               ; preds = %46
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = getelementptr inbounds %class.NumberlikeArray, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = load i32, ptr %10, align 4, !tbaa !12
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds i64, ptr %55, i64 %57
  %59 = load i64, ptr %58, align 8, !tbaa !14
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = getelementptr inbounds %class.NumberlikeArray, ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !13
  %63 = load i32, ptr %10, align 4, !tbaa !12
  %64 = zext i32 %63 to i64
  %65 = getelementptr inbounds i64, ptr %62, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !14
  %67 = xor i64 %59, %66
  %68 = getelementptr inbounds %class.NumberlikeArray, ptr %13, i32 0, i32 2
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  %70 = load i32, ptr %10, align 4, !tbaa !12
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds i64, ptr %69, i64 %71
  store i64 %67, ptr %72, align 8, !tbaa !14
  br label %73

73:                                               ; preds = %52
  %74 = load i32, ptr %10, align 4, !tbaa !12
  %75 = add i32 %74, 1
  store i32 %75, ptr %10, align 4, !tbaa !12
  br label %46, !llvm.loop !16

76:                                               ; preds = %46
  br label %77

77:                                               ; preds = %96, %76
  %78 = load i32, ptr %10, align 4, !tbaa !12
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = getelementptr inbounds %class.NumberlikeArray, ptr %79, i32 0, i32 1
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = icmp ult i32 %78, %81
  br i1 %82, label %83, label %99

83:                                               ; preds = %77
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = getelementptr inbounds %class.NumberlikeArray, ptr %84, i32 0, i32 2
  %86 = load ptr, ptr %85, align 8, !tbaa !13
  %87 = load i32, ptr %10, align 4, !tbaa !12
  %88 = zext i32 %87 to i64
  %89 = getelementptr inbounds i64, ptr %86, i64 %88
  %90 = load i64, ptr %89, align 8, !tbaa !14
  %91 = getelementptr inbounds %class.NumberlikeArray, ptr %13, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !13
  %93 = load i32, ptr %10, align 4, !tbaa !12
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds i64, ptr %92, i64 %94
  store i64 %90, ptr %95, align 8, !tbaa !14
  br label %96

96:                                               ; preds = %83
  %97 = load i32, ptr %10, align 4, !tbaa !12
  %98 = add i32 %97, 1
  store i32 %98, ptr %10, align 4, !tbaa !12
  br label %77, !llvm.loop !18

99:                                               ; preds = %77
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = getelementptr inbounds %class.NumberlikeArray, ptr %100, i32 0, i32 1
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = getelementptr inbounds %class.NumberlikeArray, ptr %13, i32 0, i32 1
  store i32 %102, ptr %103, align 4, !tbaa !9
  call void @_ZN11BigUnsigned15zapLeadingZerosEv(ptr noundef nonnull align 8 dereferenceable(16) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  br label %104

104:                                              ; preds = %99, %23
  ret void

105:                                              ; preds = %24
  %106 = load ptr, ptr %8, align 8
  %107 = load i32, ptr %9, align 4
  %108 = insertvalue { ptr, i32 } poison, ptr %106, 0
  %109 = insertvalue { ptr, i32 } %108, i32 %107, 1
  resume { ptr, i32 } %109
}

attributes #0 = { mustprogress 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 = { mustprogress 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++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"_ZTS15NumberlikeArrayImE", !11, i64 0, !11, i64 4, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !6, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


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

%class.BigUnsigned = type { %class.NumberlikeArray }
%class.NumberlikeArray = type { i32, i32, ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11BigUnsigned15zapLeadingZerosEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11BigUnsignedC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11BigUnsignedaSERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15NumberlikeArrayImED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15NumberlikeArrayImE8allocateEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11BigUnsigned6bitXorERKS_S1_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.BigUnsigned, align 8
  %5 = icmp eq ptr %0, %1
  %6 = icmp eq ptr %0, %2
  %or.cond = or i1 %5, %6
  br i1 %or.cond, label %7, label %12

7:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #3
  call void @_ZN11BigUnsignedC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4)
  invoke void @_ZN11BigUnsigned6bitXorERKS_S1_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
          to label %8 unwind label %10

8:                                                ; preds = %7
  invoke void @_ZN11BigUnsignedaSERKS_(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %9 unwind label %10

9:                                                ; preds = %8
  call void @_ZN15NumberlikeArrayImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  br label %108

10:                                               ; preds = %8, %7
  %11 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN15NumberlikeArrayImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #3
  resume { ptr, i32 } %11

12:                                               ; preds = %3
  %13 = getelementptr inbounds i8, ptr %1, i64 4
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %2, i64 4
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %.not = icmp ult i32 %14, %16
  %. = select i1 %.not, ptr %2, ptr %1
  %.35 = select i1 %.not, ptr %1, ptr %2
  %17 = getelementptr inbounds i8, ptr %., i64 4
  %18 = load i32, ptr %17, align 4, !tbaa !5
  tail call void @_ZN15NumberlikeArrayImE8allocateEj(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %18)
  %19 = getelementptr inbounds i8, ptr %.35, i64 4
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %.not40 = icmp eq i32 %20, 0
  br i1 %.not40, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %12
  %21 = getelementptr inbounds i8, ptr %., i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %.35, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !11
  %wide.trip.count = zext i32 %20 to i64
  %min.iters.check = icmp ult i32 %20, 10
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %27 = getelementptr inbounds i64, ptr %22, i64 %indvars.iv.prol
  %28 = load i64, ptr %27, align 8, !tbaa !12
  %29 = getelementptr inbounds i64, ptr %24, i64 %indvars.iv.prol
  %30 = load i64, ptr %29, align 8, !tbaa !12
  %31 = xor i64 %30, %28
  %32 = getelementptr inbounds i64, ptr %26, i64 %indvars.iv.prol
  store i64 %31, ptr %32, align 8, !tbaa !12
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !14

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %33 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %34 = icmp ugt i64 %33, -4
  br i1 %34, label %.preheader, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph
  %35 = ptrtoint ptr %26 to i64
  %36 = ptrtoint ptr %24 to i64
  %37 = ptrtoint ptr %22 to i64
  %38 = sub i64 %35, %37
  %diff.check = icmp ult i64 %38, 32
  %39 = sub i64 %35, %36
  %diff.check48 = icmp ult i64 %39, 32
  %conflict.rdx = or i1 %diff.check, %diff.check48
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 4294967292
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %40 = getelementptr inbounds i64, ptr %22, i64 %index
  %41 = getelementptr inbounds i8, ptr %40, i64 16
  %wide.load = load <2 x i64>, ptr %40, align 8, !tbaa !12
  %wide.load49 = load <2 x i64>, ptr %41, align 8, !tbaa !12
  %42 = getelementptr inbounds i64, ptr %24, i64 %index
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %wide.load50 = load <2 x i64>, ptr %42, align 8, !tbaa !12
  %wide.load51 = load <2 x i64>, ptr %43, align 8, !tbaa !12
  %44 = xor <2 x i64> %wide.load50, %wide.load
  %45 = xor <2 x i64> %wide.load51, %wide.load49
  %46 = getelementptr inbounds i64, ptr %26, i64 %index
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  store <2 x i64> %44, ptr %46, align 8, !tbaa !12
  store <2 x i64> %45, ptr %47, align 8, !tbaa !12
  %index.next = add nuw i64 %index, 4
  %48 = icmp eq i64 %index.next, %n.vec
  br i1 %48, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader, label %scalar.ph.preheader

.preheader:                                       ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %12
  %49 = load i32, ptr %17, align 4, !tbaa !5
  %50 = icmp ult i32 %20, %49
  br i1 %50, label %.lr.ph38, label %._crit_edge

.lr.ph38:                                         ; preds = %.preheader
  %51 = getelementptr inbounds i8, ptr %., i64 8
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds i8, ptr %0, i64 8
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = zext i32 %20 to i64
  %wide.trip.count46 = zext i32 %49 to i64
  %56 = sub nsw i64 %wide.trip.count46, %55
  %min.iters.check56 = icmp ult i64 %56, 6
  %57 = ptrtoint ptr %54 to i64
  %58 = ptrtoint ptr %52 to i64
  %59 = sub i64 %57, %58
  %diff.check53 = icmp ult i64 %59, 32
  %or.cond69 = select i1 %min.iters.check56, i1 true, i1 %diff.check53
  br i1 %or.cond69, label %scalar.ph55.preheader, label %vector.ph57

scalar.ph55.preheader:                            ; preds = %middle.block54, %.lr.ph38
  %indvars.iv43.ph = phi i64 [ %55, %.lr.ph38 ], [ %ind.end, %middle.block54 ]
  %60 = sub nsw i64 %wide.trip.count46, %indvars.iv43.ph
  %xtraiter70 = and i64 %60, 3
  %lcmp.mod71.not = icmp eq i64 %xtraiter70, 0
  br i1 %lcmp.mod71.not, label %scalar.ph55.prol.loopexit, label %scalar.ph55.prol

scalar.ph55.prol:                                 ; preds = %scalar.ph55.preheader, %scalar.ph55.prol
  %indvars.iv43.prol = phi i64 [ %indvars.iv.next44.prol, %scalar.ph55.prol ], [ %indvars.iv43.ph, %scalar.ph55.preheader ]
  %prol.iter72 = phi i64 [ %prol.iter72.next, %scalar.ph55.prol ], [ 0, %scalar.ph55.preheader ]
  %61 = getelementptr inbounds i64, ptr %52, i64 %indvars.iv43.prol
  %62 = load i64, ptr %61, align 8, !tbaa !12
  %63 = getelementptr inbounds i64, ptr %54, i64 %indvars.iv43.prol
  store i64 %62, ptr %63, align 8, !tbaa !12
  %indvars.iv.next44.prol = add nuw nsw i64 %indvars.iv43.prol, 1
  %prol.iter72.next = add i64 %prol.iter72, 1
  %prol.iter72.cmp.not = icmp eq i64 %prol.iter72.next, %xtraiter70
  br i1 %prol.iter72.cmp.not, label %scalar.ph55.prol.loopexit, label %scalar.ph55.prol, !llvm.loop !20

scalar.ph55.prol.loopexit:                        ; preds = %scalar.ph55.prol, %scalar.ph55.preheader
  %indvars.iv43.unr = phi i64 [ %indvars.iv43.ph, %scalar.ph55.preheader ], [ %indvars.iv.next44.prol, %scalar.ph55.prol ]
  %64 = sub nsw i64 %indvars.iv43.ph, %wide.trip.count46
  %65 = icmp ugt i64 %64, -4
  br i1 %65, label %._crit_edge, label %scalar.ph55

vector.ph57:                                      ; preds = %.lr.ph38
  %n.vec59 = and i64 %56, -4
  %ind.end = add nsw i64 %n.vec59, %55
  br label %vector.body61

vector.body61:                                    ; preds = %vector.body61, %vector.ph57
  %index62 = phi i64 [ 0, %vector.ph57 ], [ %index.next65, %vector.body61 ]
  %offset.idx = add i64 %index62, %55
  %66 = getelementptr inbounds i64, ptr %52, i64 %offset.idx
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  %wide.load63 = load <2 x i64>, ptr %66, align 8, !tbaa !12
  %wide.load64 = load <2 x i64>, ptr %67, align 8, !tbaa !12
  %68 = getelementptr inbounds i64, ptr %54, i64 %offset.idx
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  store <2 x i64> %wide.load63, ptr %68, align 8, !tbaa !12
  store <2 x i64> %wide.load64, ptr %69, align 8, !tbaa !12
  %index.next65 = add nuw i64 %index62, 4
  %70 = icmp eq i64 %index.next65, %n.vec59
  br i1 %70, label %middle.block54, label %vector.body61, !llvm.loop !21

middle.block54:                                   ; preds = %vector.body61
  %cmp.n66 = icmp eq i64 %56, %n.vec59
  br i1 %cmp.n66, label %._crit_edge, label %scalar.ph55.preheader

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %71 = getelementptr inbounds i64, ptr %22, i64 %indvars.iv
  %72 = load i64, ptr %71, align 8, !tbaa !12
  %73 = getelementptr inbounds i64, ptr %24, i64 %indvars.iv
  %74 = load i64, ptr %73, align 8, !tbaa !12
  %75 = xor i64 %74, %72
  %76 = getelementptr inbounds i64, ptr %26, i64 %indvars.iv
  store i64 %75, ptr %76, align 8, !tbaa !12
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %77 = getelementptr inbounds i64, ptr %22, i64 %indvars.iv.next
  %78 = load i64, ptr %77, align 8, !tbaa !12
  %79 = getelementptr inbounds i64, ptr %24, i64 %indvars.iv.next
  %80 = load i64, ptr %79, align 8, !tbaa !12
  %81 = xor i64 %80, %78
  %82 = getelementptr inbounds i64, ptr %26, i64 %indvars.iv.next
  store i64 %81, ptr %82, align 8, !tbaa !12
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %83 = getelementptr inbounds i64, ptr %22, i64 %indvars.iv.next.1
  %84 = load i64, ptr %83, align 8, !tbaa !12
  %85 = getelementptr inbounds i64, ptr %24, i64 %indvars.iv.next.1
  %86 = load i64, ptr %85, align 8, !tbaa !12
  %87 = xor i64 %86, %84
  %88 = getelementptr inbounds i64, ptr %26, i64 %indvars.iv.next.1
  store i64 %87, ptr %88, align 8, !tbaa !12
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %89 = getelementptr inbounds i64, ptr %22, i64 %indvars.iv.next.2
  %90 = load i64, ptr %89, align 8, !tbaa !12
  %91 = getelementptr inbounds i64, ptr %24, i64 %indvars.iv.next.2
  %92 = load i64, ptr %91, align 8, !tbaa !12
  %93 = xor i64 %92, %90
  %94 = getelementptr inbounds i64, ptr %26, i64 %indvars.iv.next.2
  store i64 %93, ptr %94, align 8, !tbaa !12
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %.preheader, label %scalar.ph, !llvm.loop !22

scalar.ph55:                                      ; preds = %scalar.ph55.prol.loopexit, %scalar.ph55
  %indvars.iv43 = phi i64 [ %indvars.iv.next44.3, %scalar.ph55 ], [ %indvars.iv43.unr, %scalar.ph55.prol.loopexit ]
  %95 = getelementptr inbounds i64, ptr %52, i64 %indvars.iv43
  %96 = load i64, ptr %95, align 8, !tbaa !12
  %97 = getelementptr inbounds i64, ptr %54, i64 %indvars.iv43
  store i64 %96, ptr %97, align 8, !tbaa !12
  %indvars.iv.next44 = add nuw nsw i64 %indvars.iv43, 1
  %98 = getelementptr inbounds i64, ptr %52, i64 %indvars.iv.next44
  %99 = load i64, ptr %98, align 8, !tbaa !12
  %100 = getelementptr inbounds i64, ptr %54, i64 %indvars.iv.next44
  store i64 %99, ptr %100, align 8, !tbaa !12
  %indvars.iv.next44.1 = add nuw nsw i64 %indvars.iv43, 2
  %101 = getelementptr inbounds i64, ptr %52, i64 %indvars.iv.next44.1
  %102 = load i64, ptr %101, align 8, !tbaa !12
  %103 = getelementptr inbounds i64, ptr %54, i64 %indvars.iv.next44.1
  store i64 %102, ptr %103, align 8, !tbaa !12
  %indvars.iv.next44.2 = add nuw nsw i64 %indvars.iv43, 3
  %104 = getelementptr inbounds i64, ptr %52, i64 %indvars.iv.next44.2
  %105 = load i64, ptr %104, align 8, !tbaa !12
  %106 = getelementptr inbounds i64, ptr %54, i64 %indvars.iv.next44.2
  store i64 %105, ptr %106, align 8, !tbaa !12
  %indvars.iv.next44.3 = add nuw nsw i64 %indvars.iv43, 4
  %exitcond47.not.3 = icmp eq i64 %indvars.iv.next44.3, %wide.trip.count46
  br i1 %exitcond47.not.3, label %._crit_edge, label %scalar.ph55, !llvm.loop !23

._crit_edge:                                      ; preds = %scalar.ph55.prol.loopexit, %scalar.ph55, %middle.block54, %.preheader
  %107 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %49, ptr %107, align 4, !tbaa !5
  tail call void @_ZN11BigUnsigned15zapLeadingZerosEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br label %108

108:                                              ; preds = %._crit_edge, %9
  ret void
}

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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, !7, i64 4}
!6 = !{!"_ZTS15NumberlikeArrayImE", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!13, !13, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !17, !18, !19}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !17, !18, !19}
!22 = distinct !{!22, !17, !18}
!23 = distinct !{!23, !17, !18}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass