; LLVM IR from Try/Tempest :: Engine/thirdparty/openal-soft/core/mixer (mixer_c)

; 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.al::span" = type { ptr, i64 }
%"class.al::span.11" = type { ptr, i64 }
%"class.al::span.0" = type { ptr, i64 }
%"class.al::ptr_wrapper" = type { ptr }
%"class.al::ptr_wrapper.12" = type { ptr }
%"class.al::ptr_wrapper.13" = type { ptr }
%"class.al::span.8" = type { ptr }

; 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) #0

; 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
define dso_local void @_Z4Mix_I4CTagEvN2al4spanIKfLm18446744073709551615EEENS2_ISt5arrayIfLm1024EELm18446744073709551615EEENS2_IfLm18446744073709551615EEES4_mm(ptr %0, i64 %1, ptr %2, i64 %3, ptr %4, i64 %5, ptr noundef byval(%"class.al::span") align 8 %6, i64 noundef %7, i64 noundef %8) #2 {
  %10 = alloca %"class.al::span", align 8
  %11 = alloca %"class.al::span.11", align 8
  %12 = alloca %"class.al::span.0", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca float, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"class.al::ptr_wrapper", align 8
  %19 = alloca %"class.al::ptr_wrapper.12", align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.al::ptr_wrapper.13", align 8
  %22 = alloca %"class.al::ptr_wrapper.13", align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.al::span", align 8
  %25 = alloca %"class.al::span.0", align 8
  %26 = alloca %"class.al::span.8", align 8
  %27 = alloca %"class.al::ptr_wrapper", align 8
  %28 = alloca %"class.al::ptr_wrapper.12", align 8
  %29 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  store ptr %0, ptr %29, align 8
  %30 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  store i64 %1, ptr %30, align 8
  %31 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  store ptr %2, ptr %31, align 8
  %32 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  store i64 %3, ptr %32, align 8
  %33 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  store ptr %4, ptr %33, align 8
  %34 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  store i64 %5, ptr %34, align 8
  store i64 %7, ptr %13, align 8, !tbaa !5
  store i64 %8, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %35 = load i64, ptr %13, align 8, !tbaa !5
  %36 = icmp ugt i64 %35, 0
  br i1 %36, label %37, label %41

37:                                               ; preds = %9
  %38 = load i64, ptr %13, align 8, !tbaa !5
  %39 = uitofp i64 %38 to float
  %40 = fdiv float 1.000000e+00, %39
  br label %42

41:                                               ; preds = %9
  br label %42

42:                                               ; preds = %41, %37
  %43 = phi float [ %40, %37 ], [ 0.000000e+00, %41 ]
  store float %43, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %44 = call noundef i64 @_ZNK2al4spanIKfLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  store i64 %44, ptr %17, align 8, !tbaa !5
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %46 = load i64, ptr %45, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  store i64 %46, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %47 = call ptr @_ZNK2al4spanIfLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #6
  %48 = getelementptr inbounds %"class.al::ptr_wrapper", ptr %18, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %49 = call ptr @_ZNK2al4spanIKfLm18446744073709551615EE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #6
  %50 = getelementptr inbounds %"class.al::ptr_wrapper.12", ptr %19, i32 0, i32 0
  store ptr %49, ptr %50, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store ptr %11, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %51 = load ptr, ptr %20, align 8, !tbaa !11
  %52 = call ptr @_ZNK2al4spanISt5arrayIfLm1024EELm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %51) #6
  %53 = getelementptr inbounds %"class.al::ptr_wrapper.13", ptr %21, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %54 = load ptr, ptr %20, align 8, !tbaa !11
  %55 = call ptr @_ZNK2al4spanISt5arrayIfLm1024EELm18446744073709551615EE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %54) #6
  %56 = getelementptr inbounds %"class.al::ptr_wrapper.13", ptr %22, i32 0, i32 0
  store ptr %55, ptr %56, align 8
  br label %57

57:                                               ; preds = %87, %42
  %58 = call noundef zeroext i1 @_ZN2alneERKNS_11ptr_wrapperIPSt5arrayIfLm1024EEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  br i1 %58, label %60, label %59

59:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %89

60:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %61 = call noundef nonnull align 4 dereferenceable(4096) ptr @_ZNK2al11ptr_wrapperIPSt5arrayIfLm1024EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  store ptr %61, ptr %23, align 8, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %62 = load ptr, ptr %23, align 8, !tbaa !11
  call void @_ZN2al4spanIfLm1024EEC2ILm1024EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 4 dereferenceable(4096) %62) #6
  %63 = load i64, ptr %14, align 8, !tbaa !5
  %64 = call { ptr, i64 } @_ZNK2al4spanIfLm1024EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(8) %26, i64 noundef %63, i64 noundef -1) #6
  %65 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %66 = extractvalue { ptr, i64 } %64, 0
  store ptr %66, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %68 = extractvalue { ptr, i64 } %64, 1
  store i64 %68, ptr %67, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %69 = call ptr @_ZN2al11ptr_wrapperIPfEppEi(ptr noundef nonnull align 8 dereferenceable(8) %18, i32 noundef 0) #6
  %70 = getelementptr inbounds %"class.al::ptr_wrapper", ptr %27, i32 0, i32 0
  store ptr %69, ptr %70, align 8
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al11ptr_wrapperIPfEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %72 = call ptr @_ZN2al11ptr_wrapperIPKfEppEi(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 0) #6
  %73 = getelementptr inbounds %"class.al::ptr_wrapper.12", ptr %28, i32 0, i32 0
  store ptr %72, ptr %73, align 8
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al11ptr_wrapperIPKfEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  %75 = load float, ptr %74, align 4, !tbaa !9
  %76 = load float, ptr %15, align 4, !tbaa !9
  %77 = load i64, ptr %16, align 8, !tbaa !5
  %78 = load i64, ptr %13, align 8, !tbaa !5
  %79 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8
  %81 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %82 = load i64, ptr %81, align 8
  %83 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8
  %85 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %86 = load i64, ptr %85, align 8
  call void @_ZN12_GLOBAL__N_17MixLineEN2al4spanIKfLm18446744073709551615EEENS1_IfLm18446744073709551615EEERfffmm(ptr %80, i64 %82, ptr %84, i64 %86, ptr noundef nonnull align 4 dereferenceable(4) %71, float noundef %75, float noundef %76, i64 noundef %77, i64 noundef %78)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %87

87:                                               ; preds = %60
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2al11ptr_wrapperIPSt5arrayIfLm1024EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br label %57

89:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2al4spanIKfLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) #4 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2alneERKNS_11ptr_wrapperIPSt5arrayIfLm1024EEEES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4096) ptr @_ZNK2al11ptr_wrapperIPSt5arrayIfLm1024EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_17MixLineEN2al4spanIKfLm18446744073709551615EEENS1_IfLm18446744073709551615EEERfffmm(ptr, i64, ptr, i64, ptr noundef nonnull align 4 dereferenceable(4), float noundef, float noundef, i64 noundef, i64 noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanIfLm1024EEC2ILm1024EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4096)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK2al4spanIfLm1024EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN2al11ptr_wrapperIPfEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al11ptr_wrapperIPfEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN2al11ptr_wrapperIPKfEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al11ptr_wrapperIPKfEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2al11ptr_wrapperIPSt5arrayIfLm1024EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 #4 = { 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 #5 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="64" "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 #6 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{i64 0, i64 8, !11, i64 8, i64 8, !5}


; 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.al::span" = type { ptr, i64 }
%"class.al::span.11" = type { ptr, i64 }
%"class.al::span.0" = type { ptr, i64 }
%"class.al::ptr_wrapper" = type { ptr }
%"class.al::ptr_wrapper.12" = type { ptr }
%"class.al::ptr_wrapper.13" = type { ptr }
%"class.al::span.8" = type { ptr }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z4Mix_I4CTagEvN2al4spanIKfLm18446744073709551615EEENS2_ISt5arrayIfLm1024EELm18446744073709551615EEENS2_IfLm18446744073709551615EEES4_mm(ptr %0, i64 %1, ptr %2, i64 %3, ptr %4, i64 %5, ptr noundef byval(%"class.al::span") align 8 %6, i64 noundef %7, i64 noundef %8) local_unnamed_addr #1 {
  %10 = alloca %"class.al::span", align 8
  %11 = alloca %"class.al::span.11", align 8
  %12 = alloca %"class.al::span.0", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca %"class.al::ptr_wrapper", align 8
  %16 = alloca %"class.al::ptr_wrapper.12", align 8
  %17 = alloca %"class.al::ptr_wrapper.13", align 8
  %18 = alloca %"class.al::ptr_wrapper.13", align 8
  %19 = alloca %"class.al::span.8", align 8
  %20 = alloca %"class.al::ptr_wrapper", align 8
  %21 = alloca %"class.al::ptr_wrapper.12", align 8
  store ptr %0, ptr %10, align 8
  %22 = getelementptr inbounds i8, ptr %10, i64 8
  store i64 %1, ptr %22, align 8
  store ptr %2, ptr %11, align 8
  %23 = getelementptr inbounds i8, ptr %11, i64 8
  store i64 %3, ptr %23, align 8
  store ptr %4, ptr %12, align 8
  %24 = getelementptr inbounds i8, ptr %12, i64 8
  store i64 %5, ptr %24, align 8
  store i64 %7, ptr %13, align 8, !tbaa !5
  %.not = icmp eq i64 %7, 0
  %25 = uitofp i64 %7 to float
  %26 = fdiv float 1.000000e+00, %25
  %27 = select i1 %.not, float 0.000000e+00, float %26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  %28 = call noundef i64 @_ZNK2al4spanIKfLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  store i64 %28, ptr %14, align 8, !tbaa !5
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %30 = load i64, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %31 = call ptr @_ZNK2al4spanIfLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  store ptr %31, ptr %15, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  %32 = call ptr @_ZNK2al4spanIKfLm18446744073709551615EE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  store ptr %32, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  %33 = call ptr @_ZNK2al4spanISt5arrayIfLm1024EELm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  store ptr %33, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #5
  %34 = call ptr @_ZNK2al4spanISt5arrayIfLm1024EELm18446744073709551615EE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  store ptr %34, ptr %18, align 8
  %35 = call noundef zeroext i1 @_ZN2alneERKNS_11ptr_wrapperIPSt5arrayIfLm1024EEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br i1 %35, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  ret void

.lr.ph:                                           ; preds = %9, %.lr.ph
  %36 = call noundef nonnull align 4 dereferenceable(4096) ptr @_ZNK2al11ptr_wrapperIPSt5arrayIfLm1024EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %.sroa.01.0.copyload = load ptr, ptr %10, align 8, !tbaa !9
  %.sroa.22.0.copyload = load i64, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  call void @_ZN2al4spanIfLm1024EEC2ILm1024EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 4 dereferenceable(4096) %36) #5
  %37 = call { ptr, i64 } @_ZNK2al4spanIfLm1024EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef %8, i64 noundef -1) #5
  %38 = extractvalue { ptr, i64 } %37, 0
  %39 = extractvalue { ptr, i64 } %37, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  %40 = call ptr @_ZN2al11ptr_wrapperIPfEppEi(ptr noundef nonnull align 8 dereferenceable(8) %15, i32 noundef 0) #5
  store ptr %40, ptr %20, align 8
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al11ptr_wrapperIPfEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #5
  %42 = call ptr @_ZN2al11ptr_wrapperIPKfEppEi(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef 0) #5
  store ptr %42, ptr %21, align 8
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al11ptr_wrapperIPKfEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  %44 = load float, ptr %43, align 4, !tbaa !11
  %45 = load i64, ptr %13, align 8, !tbaa !5
  call void @_ZN12_GLOBAL__N_17MixLineEN2al4spanIKfLm18446744073709551615EEENS1_IfLm18446744073709551615EEERfffmm(ptr %.sroa.01.0.copyload, i64 %.sroa.22.0.copyload, ptr %38, i64 %39, ptr noundef nonnull align 4 dereferenceable(4) %41, float noundef %44, float noundef %27, i64 noundef %30, i64 noundef %45)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN2al11ptr_wrapperIPSt5arrayIfLm1024EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %47 = call noundef zeroext i1 @_ZN2alneERKNS_11ptr_wrapperIPSt5arrayIfLm1024EEEES6_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br i1 %47, label %.lr.ph, label %._crit_edge
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK2al4spanIKfLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN2alneERKNS_11ptr_wrapperIPSt5arrayIfLm1024EEEES6_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4096) ptr @_ZNK2al11ptr_wrapperIPSt5arrayIfLm1024EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_17MixLineEN2al4spanIKfLm18446744073709551615EEENS1_IfLm18446744073709551615EEERfffmm(ptr, i64, ptr, i64, ptr noundef nonnull align 4 dereferenceable(4), float noundef, float noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2al4spanIfLm1024EEC2ILm1024EEERSt5arrayIfXT_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4096)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { ptr, i64 } @_ZNK2al4spanIfLm1024EE7subspanEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN2al11ptr_wrapperIPfEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al11ptr_wrapperIPfEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZN2al11ptr_wrapperIPKfEppEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al11ptr_wrapperIPKfEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN2al11ptr_wrapperIPSt5arrayIfLm1024EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint 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 #3 = { 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 #4 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="64" "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 #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 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass