; LLVM IR from cruppstahl/upscaledb :: 3rdparty/simdcomp/src (simdbitpacking)

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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @_mm_storeu_si128(ptr noundef, <2 x i64> noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_loadu_si128(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @simdpack_length(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca <2 x i64>, align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca <2 x i64>, align 16
  %16 = alloca [4 x i32], align 16
  %17 = alloca <2 x i64>, align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %18 = load i32, ptr %9, align 4, !tbaa !9
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %4
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %21, ptr %5, align 8
  store i32 1, ptr %14, align 4
  br label %156

22:                                               ; preds = %4
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = icmp eq i32 %23, 32
  br i1 %24, label %25, label %35

25:                                               ; preds = %22
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = mul i64 %29, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 4 %27, i64 %30, i1 false)
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds i32, ptr %31, i64 %33
  store ptr %34, ptr %5, align 8
  store i32 1, ptr %14, align 4
  br label %156

35:                                               ; preds = %22
  store i32 0, ptr %11, align 4, !tbaa !9
  %36 = call <2 x i64> @_mm_setzero_si128()
  store <2 x i64> %36, ptr %12, align 16, !tbaa !11
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %75, %35
  %38 = load i32, ptr %10, align 4, !tbaa !9
  %39 = load i32, ptr %7, align 4, !tbaa !9
  %40 = sdiv i32 %39, 4
  %41 = icmp slt i32 %38, %40
  br i1 %41, label %42, label %78

42:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = load i32, ptr %10, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds <2 x i64>, ptr %43, i64 %45
  %47 = call <2 x i64> @_mm_loadu_si128(ptr noundef %46)
  store <2 x i64> %47, ptr %15, align 16, !tbaa !11
  %48 = load <2 x i64>, ptr %12, align 16, !tbaa !11
  %49 = load <2 x i64>, ptr %15, align 16, !tbaa !11
  %50 = load i32, ptr %11, align 4, !tbaa !9
  %51 = call <2 x i64> @_mm_slli_epi32(<2 x i64> noundef %49, i32 noundef %50)
  %52 = call <2 x i64> @_mm_or_si128(<2 x i64> noundef %48, <2 x i64> noundef %51)
  store <2 x i64> %52, ptr %12, align 16, !tbaa !11
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = sub i64 32, %54
  %56 = trunc i64 %55 to i32
  store i32 %56, ptr %13, align 4, !tbaa !9
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = icmp ult i32 %57, %58
  br i1 %59, label %60, label %64

60:                                               ; preds = %42
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = load i32, ptr %11, align 4, !tbaa !9
  %63 = add i32 %62, %61
  store i32 %63, ptr %11, align 4, !tbaa !9
  br label %74

64:                                               ; preds = %42
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds <2 x i64>, ptr %65, i32 1
  store ptr %66, ptr %8, align 8, !tbaa !5
  %67 = load <2 x i64>, ptr %12, align 16, !tbaa !11
  call void @_mm_storeu_si128(ptr noundef %65, <2 x i64> noundef %67)
  %68 = load <2 x i64>, ptr %15, align 16, !tbaa !11
  %69 = load i32, ptr %13, align 4, !tbaa !9
  %70 = call <2 x i64> @_mm_srli_epi32(<2 x i64> noundef %68, i32 noundef %69)
  store <2 x i64> %70, ptr %12, align 16, !tbaa !11
  %71 = load i32, ptr %9, align 4, !tbaa !9
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = sub i32 %71, %72
  store i32 %73, ptr %11, align 4, !tbaa !9
  br label %74

74:                                               ; preds = %64, %60
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %10, align 4, !tbaa !9
  br label %37, !llvm.loop !12

78:                                               ; preds = %37
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = srem i32 %79, 4
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %147

82:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %101, %82
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = srem i32 %85, 4
  %87 = icmp slt i32 %84, %86
  br i1 %87, label %88, label %104

88:                                               ; preds = %83
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = sdiv i32 %90, 4
  %92 = mul nsw i32 %91, 4
  %93 = load i32, ptr %10, align 4, !tbaa !9
  %94 = add nsw i32 %92, %93
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %89, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = load i32, ptr %10, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 %99
  store i32 %97, ptr %100, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %88
  %102 = load i32, ptr %10, align 4, !tbaa !9
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %10, align 4, !tbaa !9
  br label %83, !llvm.loop !14

104:                                              ; preds = %83
  %105 = load i32, ptr %7, align 4, !tbaa !9
  %106 = srem i32 %105, 4
  store i32 %106, ptr %10, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %114, %104
  %108 = load i32, ptr %10, align 4, !tbaa !9
  %109 = icmp slt i32 %108, 4
  br i1 %109, label %110, label %117

110:                                              ; preds = %107
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 %112
  store i32 0, ptr %113, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %110
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %10, align 4, !tbaa !9
  br label %107, !llvm.loop !15

117:                                              ; preds = %107
  %118 = getelementptr inbounds [4 x i32], ptr %16, i64 0, i64 0
  %119 = call <2 x i64> @_mm_loadu_si128(ptr noundef %118)
  store <2 x i64> %119, ptr %17, align 16, !tbaa !11
  %120 = load <2 x i64>, ptr %12, align 16, !tbaa !11
  %121 = load <2 x i64>, ptr %17, align 16, !tbaa !11
  %122 = load i32, ptr %11, align 4, !tbaa !9
  %123 = call <2 x i64> @_mm_slli_epi32(<2 x i64> noundef %121, i32 noundef %122)
  %124 = call <2 x i64> @_mm_or_si128(<2 x i64> noundef %120, <2 x i64> noundef %123)
  store <2 x i64> %124, ptr %12, align 16, !tbaa !11
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = sub i64 32, %126
  %128 = trunc i64 %127 to i32
  store i32 %128, ptr %13, align 4, !tbaa !9
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = load i32, ptr %13, align 4, !tbaa !9
  %131 = icmp ult i32 %129, %130
  br i1 %131, label %132, label %136

132:                                              ; preds = %117
  %133 = load i32, ptr %9, align 4, !tbaa !9
  %134 = load i32, ptr %11, align 4, !tbaa !9
  %135 = add i32 %134, %133
  store i32 %135, ptr %11, align 4, !tbaa !9
  br label %146

136:                                              ; preds = %117
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds <2 x i64>, ptr %137, i32 1
  store ptr %138, ptr %8, align 8, !tbaa !5
  %139 = load <2 x i64>, ptr %12, align 16, !tbaa !11
  call void @_mm_storeu_si128(ptr noundef %137, <2 x i64> noundef %139)
  %140 = load <2 x i64>, ptr %17, align 16, !tbaa !11
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = call <2 x i64> @_mm_srli_epi32(<2 x i64> noundef %140, i32 noundef %141)
  store <2 x i64> %142, ptr %12, align 16, !tbaa !11
  %143 = load i32, ptr %9, align 4, !tbaa !9
  %144 = load i32, ptr %13, align 4, !tbaa !9
  %145 = sub i32 %143, %144
  store i32 %145, ptr %11, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %136, %132
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  br label %147

147:                                              ; preds = %146, %78
  %148 = load i32, ptr %11, align 4, !tbaa !9
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %154

150:                                              ; preds = %147
  %151 = load ptr, ptr %8, align 8, !tbaa !5
  %152 = getelementptr inbounds <2 x i64>, ptr %151, i32 1
  store ptr %152, ptr %8, align 8, !tbaa !5
  %153 = load <2 x i64>, ptr %12, align 16, !tbaa !11
  call void @_mm_storeu_si128(ptr noundef %151, <2 x i64> noundef %153)
  br label %154

154:                                              ; preds = %150, %147
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %155, ptr %5, align 8
  store i32 1, ptr %14, align 4
  br label %156

156:                                              ; preds = %154, %25, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  %157 = load ptr, ptr %5, align 8
  ret ptr %157
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_setzero_si128() #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_or_si128(<2 x i64> noundef, <2 x i64> noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_slli_epi32(<2 x i64> noundef, i32 noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_srli_epi32(<2 x i64> noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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"="128" "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


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

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @_mm_storeu_si128(ptr noundef, <2 x i64> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_loadu_si128(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @simdpack_length(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca [4 x i32], align 16
  switch i32 %3, label %10 [
    i32 0, label %55
    i32 32, label %6
  ]

6:                                                ; preds = %4
  %7 = sext i32 %1 to i64
  %8 = shl nsw i64 %7, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 4 %0, i64 %8, i1 false)
  %9 = getelementptr inbounds i32, ptr %2, i64 %7
  br label %55

10:                                               ; preds = %4
  %11 = tail call <2 x i64> @_mm_setzero_si128()
  %12 = sdiv i32 %1, 4
  %13 = srem i32 %1, 4
  %14 = icmp sgt i32 %1, 3
  br i1 %14, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %10
  %wide.trip.count = zext nneg i32 %12 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %27
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %27 ]
  %.05778 = phi ptr [ %2, %.lr.ph.preheader ], [ %.1, %27 ]
  %.05877 = phi <2 x i64> [ %11, %.lr.ph.preheader ], [ %.159, %27 ]
  %.06276 = phi i32 [ 0, %.lr.ph.preheader ], [ %.163, %27 ]
  %15 = getelementptr inbounds <2 x i64>, ptr %0, i64 %indvars.iv
  %16 = tail call <2 x i64> @_mm_loadu_si128(ptr noundef %15)
  %17 = tail call <2 x i64> @_mm_slli_epi32(<2 x i64> noundef %16, i32 noundef %.06276)
  %18 = tail call <2 x i64> @_mm_or_si128(<2 x i64> noundef %.05877, <2 x i64> noundef %17)
  %19 = sub i32 32, %.06276
  %20 = icmp ugt i32 %19, %3
  br i1 %20, label %21, label %23

21:                                               ; preds = %.lr.ph
  %22 = add i32 %.06276, %3
  br label %27

23:                                               ; preds = %.lr.ph
  %24 = getelementptr inbounds i8, ptr %.05778, i64 16
  tail call void @_mm_storeu_si128(ptr noundef %.05778, <2 x i64> noundef %18)
  %25 = tail call <2 x i64> @_mm_srli_epi32(<2 x i64> noundef %16, i32 noundef %19)
  %26 = sub i32 %3, %19
  br label %27

27:                                               ; preds = %23, %21
  %.163 = phi i32 [ %22, %21 ], [ %26, %23 ]
  %.159 = phi <2 x i64> [ %18, %21 ], [ %25, %23 ]
  %.1 = phi ptr [ %.05778, %21 ], [ %24, %23 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !5

._crit_edge:                                      ; preds = %27, %10
  %.062.lcssa = phi i32 [ 0, %10 ], [ %.163, %27 ]
  %.058.lcssa = phi <2 x i64> [ %11, %10 ], [ %.159, %27 ]
  %.057.lcssa = phi ptr [ %2, %10 ], [ %.1, %27 ]
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %52, label %28

28:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %29 = icmp sgt i32 %13, 0
  br i1 %29, label %.lr.ph84, label %.preheader

.lr.ph84:                                         ; preds = %28
  %30 = shl nsw i32 %12, 2
  %31 = sext i32 %30 to i64
  %32 = shl nsw i64 %31, 2
  %scevgep = getelementptr i8, ptr %0, i64 %32
  %33 = zext nneg i32 %13 to i64
  %34 = shl nuw nsw i64 %33, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %5, ptr align 4 %scevgep, i64 %34, i1 false), !tbaa !7
  br label %.preheader

.preheader:                                       ; preds = %.lr.ph84, %28
  %35 = sext i32 %13 to i64
  %36 = shl nsw i64 %35, 2
  %scevgep90 = getelementptr i8, ptr %5, i64 %36
  %37 = sub nsw i32 4, %13
  %38 = zext nneg i32 %37 to i64
  %39 = shl nuw nsw i64 %38, 2
  call void @llvm.memset.p0.i64(ptr align 4 %scevgep90, i8 0, i64 %39, i1 false), !tbaa !7
  %40 = call <2 x i64> @_mm_loadu_si128(ptr noundef nonnull %5)
  %41 = call <2 x i64> @_mm_slli_epi32(<2 x i64> noundef %40, i32 noundef %.062.lcssa)
  %42 = call <2 x i64> @_mm_or_si128(<2 x i64> noundef %.058.lcssa, <2 x i64> noundef %41)
  %43 = sub i32 32, %.062.lcssa
  %44 = icmp ugt i32 %43, %3
  br i1 %44, label %45, label %47

45:                                               ; preds = %.preheader
  %46 = add i32 %.062.lcssa, %3
  br label %51

47:                                               ; preds = %.preheader
  %48 = getelementptr inbounds i8, ptr %.057.lcssa, i64 16
  call void @_mm_storeu_si128(ptr noundef %.057.lcssa, <2 x i64> noundef %42)
  %49 = call <2 x i64> @_mm_srli_epi32(<2 x i64> noundef %40, i32 noundef %43)
  %50 = sub i32 %3, %43
  br label %51

51:                                               ; preds = %47, %45
  %.264 = phi i32 [ %46, %45 ], [ %50, %47 ]
  %.260 = phi <2 x i64> [ %42, %45 ], [ %49, %47 ]
  %.2 = phi ptr [ %.057.lcssa, %45 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  br label %52

52:                                               ; preds = %51, %._crit_edge
  %.365 = phi i32 [ %.264, %51 ], [ %.062.lcssa, %._crit_edge ]
  %.361 = phi <2 x i64> [ %.260, %51 ], [ %.058.lcssa, %._crit_edge ]
  %.3 = phi ptr [ %.2, %51 ], [ %.057.lcssa, %._crit_edge ]
  %.not74 = icmp eq i32 %.365, 0
  br i1 %.not74, label %55, label %53

53:                                               ; preds = %52
  %54 = getelementptr inbounds i8, ptr %.3, i64 16
  call void @_mm_storeu_si128(ptr noundef %.3, <2 x i64> noundef %.361)
  br label %55

55:                                               ; preds = %52, %53, %4, %6
  %.0 = phi ptr [ %9, %6 ], [ %2, %4 ], [ %54, %53 ], [ %.3, %52 ]
  ret ptr %.0
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_setzero_si128() local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_or_si128(<2 x i64> noundef, <2 x i64> noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_slli_epi32(<2 x i64> noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_srli_epi32(<2 x i64> noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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"="128" "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}


; Effective O3 passes: DivRemPairsPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass