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

; 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 <2 x i64> @_mm_set1_epi32(i32 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 @simdpackFOR_length(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca <2 x i64>, align 16
  %15 = alloca i32, align 4
  %16 = alloca <2 x i64>, align 16
  %17 = alloca i32, align 4
  %18 = alloca <2 x i64>, align 16
  %19 = alloca [4 x i32], align 16
  %20 = alloca <2 x i64>, align 16
  store i32 %0, ptr %7, align 4, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  %21 = load i32, ptr %11, align 4, !tbaa !5
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %5
  %24 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %24, ptr %6, align 8
  store i32 1, ptr %17, align 4
  br label %165

25:                                               ; preds = %5
  %26 = load i32, ptr %11, align 4, !tbaa !5
  %27 = icmp eq i32 %26, 32
  br i1 %27, label %28, label %38

28:                                               ; preds = %25
  %29 = load ptr, ptr %10, align 8, !tbaa !9
  %30 = load ptr, ptr %8, align 8, !tbaa !9
  %31 = load i32, ptr %9, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = mul i64 %32, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 4 %30, i64 %33, i1 false)
  %34 = load ptr, ptr %10, align 8, !tbaa !9
  %35 = load i32, ptr %9, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds i32, ptr %34, i64 %36
  store ptr %37, ptr %6, align 8
  store i32 1, ptr %17, align 4
  br label %165

38:                                               ; preds = %25
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = call <2 x i64> @_mm_set1_epi32(i32 noundef %39)
  store <2 x i64> %40, ptr %16, align 16, !tbaa !11
  store i32 0, ptr %13, align 4, !tbaa !5
  %41 = call <2 x i64> @_mm_setzero_si128()
  store <2 x i64> %41, ptr %14, align 16, !tbaa !11
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %82, %38
  %43 = load i32, ptr %12, align 4, !tbaa !5
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %45 = sdiv i32 %44, 4
  %46 = icmp slt i32 %43, %45
  br i1 %46, label %47, label %85

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

67:                                               ; preds = %47
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = load i32, ptr %13, align 4, !tbaa !5
  %70 = add i32 %69, %68
  store i32 %70, ptr %13, align 4, !tbaa !5
  br label %81

71:                                               ; preds = %47
  %72 = load ptr, ptr %10, align 8, !tbaa !9
  %73 = getelementptr inbounds <2 x i64>, ptr %72, i32 1
  store ptr %73, ptr %10, align 8, !tbaa !9
  %74 = load <2 x i64>, ptr %14, align 16, !tbaa !11
  call void @_mm_storeu_si128(ptr noundef %72, <2 x i64> noundef %74)
  %75 = load <2 x i64>, ptr %18, align 16, !tbaa !11
  %76 = load i32, ptr %15, align 4, !tbaa !5
  %77 = call <2 x i64> @_mm_srli_epi32(<2 x i64> noundef %75, i32 noundef %76)
  store <2 x i64> %77, ptr %14, align 16, !tbaa !11
  %78 = load i32, ptr %11, align 4, !tbaa !5
  %79 = load i32, ptr %15, align 4, !tbaa !5
  %80 = sub i32 %78, %79
  store i32 %80, ptr %13, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %71, %67
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %12, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %12, align 4, !tbaa !5
  br label %42, !llvm.loop !12

85:                                               ; preds = %42
  %86 = load i32, ptr %9, align 4, !tbaa !5
  %87 = srem i32 %86, 4
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %156

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %108, %89
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = srem i32 %92, 4
  %94 = icmp slt i32 %91, %93
  br i1 %94, label %95, label %111

95:                                               ; preds = %90
  %96 = load ptr, ptr %8, align 8, !tbaa !9
  %97 = load i32, ptr %9, align 4, !tbaa !5
  %98 = sdiv i32 %97, 4
  %99 = mul nsw i32 %98, 4
  %100 = load i32, ptr %12, align 4, !tbaa !5
  %101 = add nsw i32 %99, %100
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i32, ptr %96, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = load i32, ptr %12, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [4 x i32], ptr %19, i64 0, i64 %106
  store i32 %104, ptr %107, align 4, !tbaa !5
  br label %108

108:                                              ; preds = %95
  %109 = load i32, ptr %12, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %12, align 4, !tbaa !5
  br label %90, !llvm.loop !14

111:                                              ; preds = %90
  %112 = load i32, ptr %9, align 4, !tbaa !5
  %113 = srem i32 %112, 4
  store i32 %113, ptr %12, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %121, %111
  %115 = load i32, ptr %12, align 4, !tbaa !5
  %116 = icmp slt i32 %115, 4
  br i1 %116, label %117, label %124

117:                                              ; preds = %114
  %118 = load i32, ptr %12, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [4 x i32], ptr %19, i64 0, i64 %119
  store i32 0, ptr %120, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %117
  %122 = load i32, ptr %12, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %12, align 4, !tbaa !5
  br label %114, !llvm.loop !15

124:                                              ; preds = %114
  %125 = getelementptr inbounds [4 x i32], ptr %19, i64 0, i64 0
  %126 = call <2 x i64> @_mm_loadu_si128(ptr noundef %125)
  %127 = load <2 x i64>, ptr %16, align 16, !tbaa !11
  %128 = call <2 x i64> @_mm_sub_epi32(<2 x i64> noundef %126, <2 x i64> noundef %127)
  store <2 x i64> %128, ptr %20, align 16, !tbaa !11
  %129 = load <2 x i64>, ptr %14, align 16, !tbaa !11
  %130 = load <2 x i64>, ptr %20, align 16, !tbaa !11
  %131 = load i32, ptr %13, align 4, !tbaa !5
  %132 = call <2 x i64> @_mm_slli_epi32(<2 x i64> noundef %130, i32 noundef %131)
  %133 = call <2 x i64> @_mm_or_si128(<2 x i64> noundef %129, <2 x i64> noundef %132)
  store <2 x i64> %133, ptr %14, align 16, !tbaa !11
  %134 = load i32, ptr %13, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = sub i64 32, %135
  %137 = trunc i64 %136 to i32
  store i32 %137, ptr %15, align 4, !tbaa !5
  %138 = load i32, ptr %11, align 4, !tbaa !5
  %139 = load i32, ptr %15, align 4, !tbaa !5
  %140 = icmp ult i32 %138, %139
  br i1 %140, label %141, label %145

141:                                              ; preds = %124
  %142 = load i32, ptr %11, align 4, !tbaa !5
  %143 = load i32, ptr %13, align 4, !tbaa !5
  %144 = add i32 %143, %142
  store i32 %144, ptr %13, align 4, !tbaa !5
  br label %155

145:                                              ; preds = %124
  %146 = load ptr, ptr %10, align 8, !tbaa !9
  %147 = getelementptr inbounds <2 x i64>, ptr %146, i32 1
  store ptr %147, ptr %10, align 8, !tbaa !9
  %148 = load <2 x i64>, ptr %14, align 16, !tbaa !11
  call void @_mm_storeu_si128(ptr noundef %146, <2 x i64> noundef %148)
  %149 = load <2 x i64>, ptr %20, align 16, !tbaa !11
  %150 = load i32, ptr %15, align 4, !tbaa !5
  %151 = call <2 x i64> @_mm_srli_epi32(<2 x i64> noundef %149, i32 noundef %150)
  store <2 x i64> %151, ptr %14, align 16, !tbaa !11
  %152 = load i32, ptr %11, align 4, !tbaa !5
  %153 = load i32, ptr %15, align 4, !tbaa !5
  %154 = sub i32 %152, %153
  store i32 %154, ptr %13, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %145, %141
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  br label %156

156:                                              ; preds = %155, %85
  %157 = load i32, ptr %13, align 4, !tbaa !5
  %158 = icmp ne i32 %157, 0
  br i1 %158, label %159, label %163

159:                                              ; preds = %156
  %160 = load ptr, ptr %10, align 8, !tbaa !9
  %161 = getelementptr inbounds <2 x i64>, ptr %160, i32 1
  store ptr %161, ptr %10, align 8, !tbaa !9
  %162 = load <2 x i64>, ptr %14, align 16, !tbaa !11
  call void @_mm_storeu_si128(ptr noundef %160, <2 x i64> noundef %162)
  br label %163

163:                                              ; preds = %159, %156
  %164 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %164, ptr %6, align 8
  store i32 1, ptr %17, align 4
  br label %165

165:                                              ; preds = %163, %28, %23
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  %166 = load ptr, ptr %6, align 8
  ret ptr %166
}

; 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_sub_epi32(<2 x i64> noundef, <2 x i64> noundef) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <2 x i64> @_mm_loadu_si128(ptr noundef) #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 void @_mm_storeu_si128(ptr noundef, <2 x i64> 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !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 <2 x i64> @_mm_set1_epi32(i32 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 @simdpackFOR_length(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca [4 x i32], align 16
  switch i32 %4, label %11 [
    i32 0, label %59
    i32 32, label %7
  ]

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

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

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %30
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %30 ]
  %.06081 = phi ptr [ %3, %.lr.ph.preheader ], [ %.1, %30 ]
  %.06479 = phi <2 x i64> [ %13, %.lr.ph.preheader ], [ %.165, %30 ]
  %.06878 = phi i32 [ 0, %.lr.ph.preheader ], [ %.169, %30 ]
  %17 = getelementptr inbounds <2 x i64>, ptr %1, i64 %indvars.iv
  %18 = tail call <2 x i64> @_mm_loadu_si128(ptr noundef %17)
  %19 = tail call <2 x i64> @_mm_sub_epi32(<2 x i64> noundef %18, <2 x i64> noundef %12)
  %20 = tail call <2 x i64> @_mm_slli_epi32(<2 x i64> noundef %19, i32 noundef %.06878)
  %21 = tail call <2 x i64> @_mm_or_si128(<2 x i64> noundef %.06479, <2 x i64> noundef %20)
  %22 = sub i32 32, %.06878
  %23 = icmp ugt i32 %22, %4
  br i1 %23, label %24, label %26

24:                                               ; preds = %.lr.ph
  %25 = add i32 %.06878, %4
  br label %30

26:                                               ; preds = %.lr.ph
  %27 = getelementptr inbounds i8, ptr %.06081, i64 16
  tail call void @_mm_storeu_si128(ptr noundef %.06081, <2 x i64> noundef %21)
  %28 = tail call <2 x i64> @_mm_srli_epi32(<2 x i64> noundef %19, i32 noundef %22)
  %29 = sub i32 %4, %22
  br label %30

30:                                               ; preds = %26, %24
  %.169 = phi i32 [ %25, %24 ], [ %29, %26 ]
  %.165 = phi <2 x i64> [ %21, %24 ], [ %28, %26 ]
  %.1 = phi ptr [ %.06081, %24 ], [ %27, %26 ]
  %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 = %30, %11
  %.068.lcssa = phi i32 [ 0, %11 ], [ %.169, %30 ]
  %.064.lcssa = phi <2 x i64> [ %13, %11 ], [ %.165, %30 ]
  %.060.lcssa = phi ptr [ %3, %11 ], [ %.1, %30 ]
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %56, label %31

31:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  %32 = icmp sgt i32 %15, 0
  br i1 %32, label %.lr.ph87, label %.preheader

.lr.ph87:                                         ; preds = %31
  %33 = shl nsw i32 %14, 2
  %34 = sext i32 %33 to i64
  %35 = shl nsw i64 %34, 2
  %scevgep = getelementptr i8, ptr %1, i64 %35
  %36 = zext nneg i32 %15 to i64
  %37 = shl nuw nsw i64 %36, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %6, ptr align 4 %scevgep, i64 %37, i1 false), !tbaa !7
  br label %.preheader

.preheader:                                       ; preds = %.lr.ph87, %31
  %38 = sext i32 %15 to i64
  %39 = shl nsw i64 %38, 2
  %scevgep93 = getelementptr i8, ptr %6, i64 %39
  %40 = sub nsw i32 4, %15
  %41 = zext nneg i32 %40 to i64
  %42 = shl nuw nsw i64 %41, 2
  call void @llvm.memset.p0.i64(ptr align 4 %scevgep93, i8 0, i64 %42, i1 false), !tbaa !7
  %43 = call <2 x i64> @_mm_loadu_si128(ptr noundef nonnull %6)
  %44 = call <2 x i64> @_mm_sub_epi32(<2 x i64> noundef %43, <2 x i64> noundef %12)
  %45 = call <2 x i64> @_mm_slli_epi32(<2 x i64> noundef %44, i32 noundef %.068.lcssa)
  %46 = call <2 x i64> @_mm_or_si128(<2 x i64> noundef %.064.lcssa, <2 x i64> noundef %45)
  %47 = sub i32 32, %.068.lcssa
  %48 = icmp ugt i32 %47, %4
  br i1 %48, label %49, label %51

49:                                               ; preds = %.preheader
  %50 = add i32 %.068.lcssa, %4
  br label %55

51:                                               ; preds = %.preheader
  %52 = getelementptr inbounds i8, ptr %.060.lcssa, i64 16
  call void @_mm_storeu_si128(ptr noundef %.060.lcssa, <2 x i64> noundef %46)
  %53 = call <2 x i64> @_mm_srli_epi32(<2 x i64> noundef %44, i32 noundef %47)
  %54 = sub i32 %4, %47
  br label %55

55:                                               ; preds = %51, %49
  %.270 = phi i32 [ %50, %49 ], [ %54, %51 ]
  %.266 = phi <2 x i64> [ %46, %49 ], [ %53, %51 ]
  %.2 = phi ptr [ %.060.lcssa, %49 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  br label %56

56:                                               ; preds = %55, %._crit_edge
  %.371 = phi i32 [ %.270, %55 ], [ %.068.lcssa, %._crit_edge ]
  %.367 = phi <2 x i64> [ %.266, %55 ], [ %.064.lcssa, %._crit_edge ]
  %.3 = phi ptr [ %.2, %55 ], [ %.060.lcssa, %._crit_edge ]
  %.not77 = icmp eq i32 %.371, 0
  br i1 %.not77, label %59, label %57

57:                                               ; preds = %56
  %58 = getelementptr inbounds i8, ptr %.3, i64 16
  call void @_mm_storeu_si128(ptr noundef %.3, <2 x i64> noundef %.367)
  br label %59

59:                                               ; preds = %56, %57, %5, %7
  %.0 = phi ptr [ %10, %7 ], [ %3, %5 ], [ %58, %57 ], [ %.3, %56 ]
  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_sub_epi32(<2 x i64> 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: 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 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_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