; LLVM IR from Try/Tempest :: Engine/thirdparty/openal-soft/alc/alu.ll (ZN10DeviceBase13renderSamplesEPvjm)

; 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.FPUCtl = type <{ i32, i8, [3 x i8] }>
%"class.al::span.73" = type { ptr, i64 }
%struct.DeviceBase = type { %"struct.std::atomic", i8, i32, i32, i32, i8, i8, i32, float, i8, i8, i8, %"class.std::__cxx11::basic_string", %"class.std::bitset.9", i8, i32, i8, float, %class.NfcFilter, %"struct.std::atomic.13", %"struct.std::atomic.15", %"class.std::chrono::duration", %"struct.std::array.16", %"struct.std::array.16", [8 x i8], %"struct.std::array.18", %"struct.std::array.19", %"struct.std::array.20", %"struct.std::array.21", %"struct.std::array.22", %"class.std::vector", %struct.MixParams, %"struct.std::array.25", %struct.RealMixParams, %"class.std::unique_ptr", %"class.al::intrusive_ptr", i32, %"class.std::unique_ptr.30", %"class.std::unique_ptr.38", %"class.std::unique_ptr.46", { i64, i64 }, %"class.std::unique_ptr.54", %"class.std::unique_ptr.62", float, i32, %"struct.std::atomic.13", %"class.al::atomic_unique_ptr", [8 x i8] }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::bitset.9" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { i64 }
%class.NfcFilter = type { %struct.NfcFilter1, %struct.NfcFilter2, %struct.NfcFilter3, %struct.NfcFilter4 }
%struct.NfcFilter1 = type { float, float, float, float, %"struct.std::array.10" }
%"struct.std::array.10" = type { [1 x float] }
%struct.NfcFilter2 = type { float, float, float, float, float, float, %"struct.std::array.11" }
%"struct.std::array.11" = type { [2 x float] }
%struct.NfcFilter3 = type { float, float, float, float, float, float, float, float, %"struct.std::array.12" }
%"struct.std::array.12" = type { [3 x float] }
%struct.NfcFilter4 = type { float, float, float, float, float, float, float, float, float, float, %"struct.std::array.0" }
%"struct.std::array.0" = type { [4 x float] }
%"struct.std::atomic.15" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"struct.std::array.16" = type { [16 x %"struct.std::array.17"] }
%"struct.std::array.17" = type { [16 x float] }
%"struct.std::array.18" = type { [20480 x float] }
%"struct.std::array.19" = type { [1328 x float] }
%"struct.std::array.20" = type { [1024 x float] }
%"struct.std::array.21" = type { [1088 x float] }
%"struct.std::array.22" = type { [1152 x %"struct.std::array.11"] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::array<float, 1024>, al::allocator<std::array<float, 1024>, 16>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<float, 1024>, al::allocator<std::array<float, 1024>, 16>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<float, 1024>, al::allocator<std::array<float, 1024>, 16>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<float, 1024>, al::allocator<std::array<float, 1024>, 16>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.MixParams = type { %"struct.std::array.23", %"class.al::span.24" }
%"struct.std::array.23" = type { [16 x %struct.BFChannelConfig] }
%struct.BFChannelConfig = type { float, i32 }
%"class.al::span.24" = type { ptr, i64 }
%"struct.std::array.25" = type { [4 x i32] }
%struct.RealMixParams = type { %"class.al::span.26", %"struct.std::array.27", %"class.al::span.24" }
%"class.al::span.26" = type { ptr, i64 }
%"struct.std::array.27" = type { [36 x i8] }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.29" }
%"struct.std::_Head_base.29" = type { ptr }
%"class.al::intrusive_ptr" = type { ptr }
%"class.std::unique_ptr.30" = type { %"struct.std::__uniq_ptr_data.31" }
%"struct.std::__uniq_ptr_data.31" = type { %"class.std::__uniq_ptr_impl.32" }
%"class.std::__uniq_ptr_impl.32" = type { %"class.std::tuple.33" }
%"class.std::tuple.33" = type { %"struct.std::_Tuple_impl.34" }
%"struct.std::_Tuple_impl.34" = type { %"struct.std::_Head_base.37" }
%"struct.std::_Head_base.37" = type { ptr }
%"class.std::unique_ptr.38" = type { %"struct.std::__uniq_ptr_data.39" }
%"struct.std::__uniq_ptr_data.39" = type { %"class.std::__uniq_ptr_impl.40" }
%"class.std::__uniq_ptr_impl.40" = type { %"class.std::tuple.41" }
%"class.std::tuple.41" = type { %"struct.std::_Tuple_impl.42" }
%"struct.std::_Tuple_impl.42" = type { %"struct.std::_Head_base.45" }
%"struct.std::_Head_base.45" = type { ptr }
%"class.std::unique_ptr.46" = type { %"struct.std::__uniq_ptr_data.47" }
%"struct.std::__uniq_ptr_data.47" = type { %"class.std::__uniq_ptr_impl.48" }
%"class.std::__uniq_ptr_impl.48" = type { %"class.std::tuple.49" }
%"class.std::tuple.49" = type { %"struct.std::_Tuple_impl.50" }
%"struct.std::_Tuple_impl.50" = type { %"struct.std::_Head_base.53" }
%"struct.std::_Head_base.53" = type { ptr }
%"class.std::unique_ptr.54" = type { %"struct.std::__uniq_ptr_data.55" }
%"struct.std::__uniq_ptr_data.55" = type { %"class.std::__uniq_ptr_impl.56" }
%"class.std::__uniq_ptr_impl.56" = type { %"class.std::tuple.57" }
%"class.std::tuple.57" = type { %"struct.std::_Tuple_impl.58" }
%"struct.std::_Tuple_impl.58" = type { %"struct.std::_Head_base.61" }
%"struct.std::_Head_base.61" = type { ptr }
%"class.std::unique_ptr.62" = type { %"struct.std::__uniq_ptr_data.63" }
%"struct.std::__uniq_ptr_data.63" = type { %"class.std::__uniq_ptr_impl.64" }
%"class.std::__uniq_ptr_impl.64" = type { %"class.std::tuple.65" }
%"class.std::tuple.65" = type { %"struct.std::_Tuple_impl.66" }
%"struct.std::_Tuple_impl.66" = type { %"struct.std::_Head_base.69" }
%"struct.std::_Head_base.69" = type { ptr }
%"struct.std::atomic.13" = type { %"struct.std::__atomic_base.14" }
%"struct.std::__atomic_base.14" = type { i32 }
%"class.al::atomic_unique_ptr" = type { %"struct.std::atomic.70" }
%"struct.std::atomic.70" = type { %"struct.std::__atomic_base.71" }
%"struct.std::__atomic_base.71" = type { ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN10DeviceBase13renderSamplesEj(ptr noundef nonnull align 16 dereferenceable(107576), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6FPUCtlC2Ev(ptr noundef nonnull align 4 dereferenceable(5)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6FPUCtlD2Ev(ptr noundef nonnull align 4 dereferenceable(5)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10DeviceBase13renderSamplesEPvjm(ptr noundef nonnull align 16 dereferenceable(107576) %0, ptr noundef %1, i32 noundef %2, i64 noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca %class.FPUCtl, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.al::span.73", align 8
  %17 = alloca %"class.al::span.73", align 8
  %18 = alloca %"class.al::span.73", align 8
  %19 = alloca %"class.al::span.73", align 8
  %20 = alloca %"class.al::span.73", align 8
  %21 = alloca %"class.al::span.73", align 8
  %22 = alloca %"class.al::span.73", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i64 %3, ptr %8, align 8, !tbaa !11
  %23 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @_ZN6FPUCtlC2Ev(ptr noundef nonnull align 4 dereferenceable(5) %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %158, %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = load i32, ptr %10, align 4, !tbaa !9
  %27 = sub i32 %25, %26
  store i32 %27, ptr %11, align 4, !tbaa !9
  %28 = load i32, ptr %11, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %31, label %30

30:                                               ; preds = %24
  store i32 3, ptr %12, align 4
  br label %156

31:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %32 = load i32, ptr %11, align 4, !tbaa !9
  %33 = invoke noundef i32 @_ZN10DeviceBase13renderSamplesEj(ptr noundef nonnull align 16 dereferenceable(107576) %23, i32 noundef %32)
          to label %34 unwind label %42

34:                                               ; preds = %31
  store i32 %33, ptr %13, align 4, !tbaa !9
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  %37 = call i1 @llvm.expect.i1(i1 %36, i1 true)
  br i1 %37, label %38, label %152

38:                                               ; preds = %34
  %39 = getelementptr inbounds %struct.DeviceBase, ptr %23, i32 0, i32 6
  %40 = load i8, ptr %39, align 1, !tbaa !13
  %41 = zext i8 %40 to i32
  switch i32 %41, label %151 [
    i32 0, label %46
    i32 1, label %61
    i32 2, label %76
    i32 3, label %91
    i32 4, label %106
    i32 5, label %121
    i32 6, label %136
  ]

42:                                               ; preds = %139, %136, %124, %121, %109, %106, %94, %91, %79, %76, %64, %61, %49, %46, %31
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %14, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @_ZN6FPUCtlD2Ev(ptr noundef nonnull align 4 dereferenceable(5) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %160

46:                                               ; preds = %38
  %47 = getelementptr inbounds %struct.DeviceBase, ptr %23, i32 0, i32 33
  %48 = getelementptr inbounds %struct.RealMixParams, ptr %47, i32 0, i32 2
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %48)
          to label %49 unwind label %42

49:                                               ; preds = %46
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = load i64, ptr %8, align 8, !tbaa !11
  %56 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8
  %58 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %59 = load i64, ptr %58, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteIaEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %57, i64 %59, ptr noundef %50, i64 noundef %52, i64 noundef %54, i64 noundef %55)
          to label %60 unwind label %42

60:                                               ; preds = %49
  br label %151

61:                                               ; preds = %38
  %62 = getelementptr inbounds %struct.DeviceBase, ptr %23, i32 0, i32 33
  %63 = getelementptr inbounds %struct.RealMixParams, ptr %62, i32 0, i32 2
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %63)
          to label %64 unwind label %42

64:                                               ; preds = %61
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = load i64, ptr %8, align 8, !tbaa !11
  %71 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8
  %73 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %74 = load i64, ptr %73, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteIhEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %72, i64 %74, ptr noundef %65, i64 noundef %67, i64 noundef %69, i64 noundef %70)
          to label %75 unwind label %42

75:                                               ; preds = %64
  br label %151

76:                                               ; preds = %38
  %77 = getelementptr inbounds %struct.DeviceBase, ptr %23, i32 0, i32 33
  %78 = getelementptr inbounds %struct.RealMixParams, ptr %77, i32 0, i32 2
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(16) %78)
          to label %79 unwind label %42

79:                                               ; preds = %76
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = load i32, ptr %10, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = zext i32 %83 to i64
  %85 = load i64, ptr %8, align 8, !tbaa !11
  %86 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %87 = load ptr, ptr %86, align 8
  %88 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %89 = load i64, ptr %88, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteIsEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %87, i64 %89, ptr noundef %80, i64 noundef %82, i64 noundef %84, i64 noundef %85)
          to label %90 unwind label %42

90:                                               ; preds = %79
  br label %151

91:                                               ; preds = %38
  %92 = getelementptr inbounds %struct.DeviceBase, ptr %23, i32 0, i32 33
  %93 = getelementptr inbounds %struct.RealMixParams, ptr %92, i32 0, i32 2
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %93)
          to label %94 unwind label %42

94:                                               ; preds = %91
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = load i32, ptr %10, align 4, !tbaa !9
  %97 = zext i32 %96 to i64
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = load i64, ptr %8, align 8, !tbaa !11
  %101 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %102 = load ptr, ptr %101, align 8
  %103 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %104 = load i64, ptr %103, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteItEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %102, i64 %104, ptr noundef %95, i64 noundef %97, i64 noundef %99, i64 noundef %100)
          to label %105 unwind label %42

105:                                              ; preds = %94
  br label %151

106:                                              ; preds = %38
  %107 = getelementptr inbounds %struct.DeviceBase, ptr %23, i32 0, i32 33
  %108 = getelementptr inbounds %struct.RealMixParams, ptr %107, i32 0, i32 2
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %108)
          to label %109 unwind label %42

109:                                              ; preds = %106
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = load i32, ptr %10, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = load i64, ptr %8, align 8, !tbaa !11
  %116 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8
  %118 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %119 = load i64, ptr %118, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteIiEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %117, i64 %119, ptr noundef %110, i64 noundef %112, i64 noundef %114, i64 noundef %115)
          to label %120 unwind label %42

120:                                              ; preds = %109
  br label %151

121:                                              ; preds = %38
  %122 = getelementptr inbounds %struct.DeviceBase, ptr %23, i32 0, i32 33
  %123 = getelementptr inbounds %struct.RealMixParams, ptr %122, i32 0, i32 2
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(16) %123)
          to label %124 unwind label %42

124:                                              ; preds = %121
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = load i32, ptr %13, align 4, !tbaa !9
  %129 = zext i32 %128 to i64
  %130 = load i64, ptr %8, align 8, !tbaa !11
  %131 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %132 = load ptr, ptr %131, align 8
  %133 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %134 = load i64, ptr %133, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteIjEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %132, i64 %134, ptr noundef %125, i64 noundef %127, i64 noundef %129, i64 noundef %130)
          to label %135 unwind label %42

135:                                              ; preds = %124
  br label %151

136:                                              ; preds = %38
  %137 = getelementptr inbounds %struct.DeviceBase, ptr %23, i32 0, i32 33
  %138 = getelementptr inbounds %struct.RealMixParams, ptr %137, i32 0, i32 2
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %138)
          to label %139 unwind label %42

139:                                              ; preds = %136
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = load i32, ptr %10, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = load i32, ptr %13, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = load i64, ptr %8, align 8, !tbaa !11
  %146 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8
  %148 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %149 = load i64, ptr %148, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteIfEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %147, i64 %149, ptr noundef %140, i64 noundef %142, i64 noundef %144, i64 noundef %145)
          to label %150 unwind label %42

150:                                              ; preds = %139
  br label %151

151:                                              ; preds = %150, %135, %120, %105, %90, %75, %60, %38
  br label %152

152:                                              ; preds = %151, %34
  %153 = load i32, ptr %13, align 4, !tbaa !9
  %154 = load i32, ptr %10, align 4, !tbaa !9
  %155 = add i32 %154, %153
  store i32 %155, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  store i32 0, ptr %12, align 4
  br label %156

156:                                              ; preds = %152, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  %157 = load i32, ptr %12, align 4
  switch i32 %157, label %165 [
    i32 0, label %158
    i32 3, label %159
  ]

158:                                              ; preds = %156
  br label %24, !llvm.loop !100

159:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @_ZN6FPUCtlD2Ev(ptr noundef nonnull align 4 dereferenceable(5) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void

160:                                              ; preds = %42
  %161 = load ptr, ptr %14, align 8
  %162 = load i32, ptr %15, align 4
  %163 = insertvalue { ptr, i32 } poison, ptr %161, 0
  %164 = insertvalue { ptr, i32 } %163, i32 %162, 1
  resume { ptr, i32 } %164

165:                                              ; preds = %156
  unreachable
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i1 @llvm.expect.i1(i1, i1) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteIaEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteIhEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteIsEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteItEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteIiEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteIjEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteIfEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1

attributes #0 = { 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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(none) }
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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !20, i64 17}
!14 = !{!"_ZTS10DeviceBase", !15, i64 0, !18, i64 1, !10, i64 4, !10, i64 8, !10, i64 12, !19, i64 16, !20, i64 17, !10, i64 20, !21, i64 24, !17, i64 28, !22, i64 29, !23, i64 30, !24, i64 32, !26, i64 64, !28, i64 72, !10, i64 76, !29, i64 80, !21, i64 84, !30, i64 88, !39, i64 240, !41, i64 248, !42, i64 256, !43, i64 264, !43, i64 1288, !44, i64 2320, !45, i64 84240, !46, i64 89552, !47, i64 93648, !48, i64 98000, !49, i64 107216, !53, i64 107240, !56, i64 107384, !57, i64 107400, !60, i64 107472, !66, i64 107480, !10, i64 107488, !67, i64 107496, !73, i64 107504, !79, i64 107512, !7, i64 107520, !85, i64 107536, !91, i64 107544, !21, i64 107552, !10, i64 107556, !39, i64 107560, !97, i64 107568}
!15 = !{!"_ZTSSt6atomicIbE", !16, i64 0}
!16 = !{!"_ZTSSt13__atomic_baseIbE", !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTS10DeviceType", !7, i64 0}
!19 = !{!"_ZTS14DevFmtChannels", !7, i64 0}
!20 = !{!"_ZTS10DevFmtType", !7, i64 0}
!21 = !{!"float", !7, i64 0}
!22 = !{!"_ZTS13DevAmbiLayout", !7, i64 0}
!23 = !{!"_ZTS14DevAmbiScaling", !7, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !12, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!26 = !{!"_ZTSSt6bitsetILm6EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Base_bitsetILm1EE", !12, i64 0}
!28 = !{!"_ZTS11DeviceState", !7, i64 0}
!29 = !{!"_ZTS10RenderMode", !7, i64 0}
!30 = !{!"_ZTS9NfcFilter", !31, i64 0, !33, i64 20, !35, i64 52, !37, i64 96}
!31 = !{!"_ZTS10NfcFilter1", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12, !32, i64 16}
!32 = !{!"_ZTSSt5arrayIfLm1EE", !7, i64 0}
!33 = !{!"_ZTS10NfcFilter2", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12, !21, i64 16, !21, i64 20, !34, i64 24}
!34 = !{!"_ZTSSt5arrayIfLm2EE", !7, i64 0}
!35 = !{!"_ZTS10NfcFilter3", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12, !21, i64 16, !21, i64 20, !21, i64 24, !21, i64 28, !36, i64 32}
!36 = !{!"_ZTSSt5arrayIfLm3EE", !7, i64 0}
!37 = !{!"_ZTS10NfcFilter4", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12, !21, i64 16, !21, i64 20, !21, i64 24, !21, i64 28, !21, i64 32, !21, i64 36, !38, i64 40}
!38 = !{!"_ZTSSt5arrayIfLm4EE", !7, i64 0}
!39 = !{!"_ZTSSt6atomicIjE", !40, i64 0}
!40 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!41 = !{!"_ZTSSt6atomicINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEE", !42, i64 0}
!42 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !12, i64 0}
!43 = !{!"_ZTSSt5arrayIS_IfLm16EELm16EE", !7, i64 0}
!44 = !{!"_ZTSSt5arrayIfLm20480EE", !7, i64 0}
!45 = !{!"_ZTSSt5arrayIfLm1328EE", !7, i64 0}
!46 = !{!"_ZTSSt5arrayIfLm1024EE", !7, i64 0}
!47 = !{!"_ZTSSt5arrayIfLm1088EE", !7, i64 0}
!48 = !{!"_ZTSSt5arrayIS_IfLm2EELm1152EE", !7, i64 0}
!49 = !{!"_ZTSSt6vectorISt5arrayIfLm1024EEN2al9allocatorIS1_Lm16EEEE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseISt5arrayIfLm1024EEN2al9allocatorIS1_Lm16EEEE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseISt5arrayIfLm1024EEN2al9allocatorIS1_Lm16EEEE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseISt5arrayIfLm1024EEN2al9allocatorIS1_Lm16EEEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!53 = !{!"_ZTS9MixParams", !54, i64 0, !55, i64 128}
!54 = !{!"_ZTSSt5arrayI15BFChannelConfigLm16EE", !7, i64 0}
!55 = !{!"_ZTSN2al4spanISt5arrayIfLm1024EELm18446744073709551615EEE", !6, i64 0, !12, i64 8}
!56 = !{!"_ZTSSt5arrayIjLm4EE", !7, i64 0}
!57 = !{!"_ZTS13RealMixParams", !58, i64 0, !59, i64 16, !55, i64 56}
!58 = !{!"_ZTSN2al4spanIK13InputRemixMapLm18446744073709551615EEE", !6, i64 0, !12, i64 8}
!59 = !{!"_ZTSSt5arrayIhLm36EE", !7, i64 0}
!60 = !{!"_ZTSSt10unique_ptrI15DirectHrtfStateSt14default_deleteIS0_EE", !61, i64 0}
!61 = !{!"_ZTSSt15__uniq_ptr_dataI15DirectHrtfStateSt14default_deleteIS0_ELb1ELb1EE", !62, i64 0}
!62 = !{!"_ZTSSt15__uniq_ptr_implI15DirectHrtfStateSt14default_deleteIS0_EE", !63, i64 0}
!63 = !{!"_ZTSSt5tupleIJP15DirectHrtfStateSt14default_deleteIS0_EEE", !64, i64 0}
!64 = !{!"_ZTSSt11_Tuple_implILm0EJP15DirectHrtfStateSt14default_deleteIS0_EEE", !65, i64 0}
!65 = !{!"_ZTSSt10_Head_baseILm0EP15DirectHrtfStateLb0EE", !6, i64 0}
!66 = !{!"_ZTSN2al13intrusive_ptrI9HrtfStoreEE", !6, i64 0}
!67 = !{!"_ZTSSt10unique_ptrI14UhjEncoderBaseSt14default_deleteIS0_EE", !68, i64 0}
!68 = !{!"_ZTSSt15__uniq_ptr_dataI14UhjEncoderBaseSt14default_deleteIS0_ELb1ELb1EE", !69, i64 0}
!69 = !{!"_ZTSSt15__uniq_ptr_implI14UhjEncoderBaseSt14default_deleteIS0_EE", !70, i64 0}
!70 = !{!"_ZTSSt5tupleIJP14UhjEncoderBaseSt14default_deleteIS0_EEE", !71, i64 0}
!71 = !{!"_ZTSSt11_Tuple_implILm0EJP14UhjEncoderBaseSt14default_deleteIS0_EEE", !72, i64 0}
!72 = !{!"_ZTSSt10_Head_baseILm0EP14UhjEncoderBaseLb0EE", !6, i64 0}
!73 = !{!"_ZTSSt10unique_ptrI10BFormatDecSt14default_deleteIS0_EE", !74, i64 0}
!74 = !{!"_ZTSSt15__uniq_ptr_dataI10BFormatDecSt14default_deleteIS0_ELb1ELb1EE", !75, i64 0}
!75 = !{!"_ZTSSt15__uniq_ptr_implI10BFormatDecSt14default_deleteIS0_EE", !76, i64 0}
!76 = !{!"_ZTSSt5tupleIJP10BFormatDecSt14default_deleteIS0_EEE", !77, i64 0}
!77 = !{!"_ZTSSt11_Tuple_implILm0EJP10BFormatDecSt14default_deleteIS0_EEE", !78, i64 0}
!78 = !{!"_ZTSSt10_Head_baseILm0EP10BFormatDecLb0EE", !6, i64 0}
!79 = !{!"_ZTSSt10unique_ptrIN4Bs2b4bs2bESt14default_deleteIS1_EE", !80, i64 0}
!80 = !{!"_ZTSSt15__uniq_ptr_dataIN4Bs2b4bs2bESt14default_deleteIS1_ELb1ELb1EE", !81, i64 0}
!81 = !{!"_ZTSSt15__uniq_ptr_implIN4Bs2b4bs2bESt14default_deleteIS1_EE", !82, i64 0}
!82 = !{!"_ZTSSt5tupleIJPN4Bs2b4bs2bESt14default_deleteIS1_EEE", !83, i64 0}
!83 = !{!"_ZTSSt11_Tuple_implILm0EJPN4Bs2b4bs2bESt14default_deleteIS1_EEE", !84, i64 0}
!84 = !{!"_ZTSSt10_Head_baseILm0EPN4Bs2b4bs2bELb0EE", !6, i64 0}
!85 = !{!"_ZTSSt10unique_ptrI10CompressorSt14default_deleteIS0_EE", !86, i64 0}
!86 = !{!"_ZTSSt15__uniq_ptr_dataI10CompressorSt14default_deleteIS0_ELb1ELb1EE", !87, i64 0}
!87 = !{!"_ZTSSt15__uniq_ptr_implI10CompressorSt14default_deleteIS0_EE", !88, i64 0}
!88 = !{!"_ZTSSt5tupleIJP10CompressorSt14default_deleteIS0_EEE", !89, i64 0}
!89 = !{!"_ZTSSt11_Tuple_implILm0EJP10CompressorSt14default_deleteIS0_EEE", !90, i64 0}
!90 = !{!"_ZTSSt10_Head_baseILm0EP10CompressorLb0EE", !6, i64 0}
!91 = !{!"_ZTSSt10unique_ptrI12DistanceCompSt14default_deleteIS0_EE", !92, i64 0}
!92 = !{!"_ZTSSt15__uniq_ptr_dataI12DistanceCompSt14default_deleteIS0_ELb1ELb1EE", !93, i64 0}
!93 = !{!"_ZTSSt15__uniq_ptr_implI12DistanceCompSt14default_deleteIS0_EE", !94, i64 0}
!94 = !{!"_ZTSSt5tupleIJP12DistanceCompSt14default_deleteIS0_EEE", !95, i64 0}
!95 = !{!"_ZTSSt11_Tuple_implILm0EJP12DistanceCompSt14default_deleteIS0_EEE", !96, i64 0}
!96 = !{!"_ZTSSt10_Head_baseILm0EP12DistanceCompLb0EE", !6, i64 0}
!97 = !{!"_ZTSN2al17atomic_unique_ptrINS_9FlexArrayIP11ContextBaseLm8EEESt14default_deleteIS4_EEE", !98, i64 0}
!98 = !{!"_ZTSSt6atomicIPN2al9FlexArrayIP11ContextBaseLm8EEEE", !99, i64 0}
!99 = !{!"_ZTSSt13__atomic_baseIPN2al9FlexArrayIP11ContextBaseLm8EEEE", !6, i64 0}
!100 = distinct !{!100, !101}
!101 = !{!"llvm.loop.mustprogress"}


; 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.FPUCtl = type <{ i32, i8, [3 x i8] }>
%"class.al::span.73" = type { ptr, i64 }

declare i32 @__gxx_personality_v0(...)

; 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
declare dso_local void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN10DeviceBase13renderSamplesEj(ptr noundef nonnull align 16 dereferenceable(107576), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6FPUCtlC2Ev(ptr noundef nonnull align 4 dereferenceable(5)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6FPUCtlD2Ev(ptr noundef nonnull align 4 dereferenceable(5)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10DeviceBase13renderSamplesEPvjm(ptr noundef nonnull align 16 dereferenceable(107576) %0, ptr noundef %1, i32 noundef %2, i64 noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %class.FPUCtl, align 4
  %6 = alloca %"class.al::span.73", align 8
  %7 = alloca %"class.al::span.73", align 8
  %8 = alloca %"class.al::span.73", align 8
  %9 = alloca %"class.al::span.73", align 8
  %10 = alloca %"class.al::span.73", align 8
  %11 = alloca %"class.al::span.73", align 8
  %12 = alloca %"class.al::span.73", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @_ZN6FPUCtlC2Ev(ptr noundef nonnull align 4 dereferenceable(5) %5) #3
  %.not45 = icmp eq i32 %2, 0
  br i1 %.not45, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %.not41 = icmp eq ptr %1, null
  %13 = getelementptr inbounds i8, ptr %0, i64 17
  %14 = getelementptr inbounds i8, ptr %0, i64 107456
  %15 = getelementptr inbounds i8, ptr %12, i64 8
  %16 = getelementptr inbounds i8, ptr %11, i64 8
  %17 = getelementptr inbounds i8, ptr %10, i64 8
  %18 = getelementptr inbounds i8, ptr %9, i64 8
  %19 = getelementptr inbounds i8, ptr %8, i64 8
  %20 = getelementptr inbounds i8, ptr %7, i64 8
  %21 = getelementptr inbounds i8, ptr %6, i64 8
  br i1 %.not41, label %.lr.ph.split.us, label %.lr.ph.split, !prof !5

.lr.ph.split.us:                                  ; preds = %.lr.ph, %24
  %.046.us = phi i32 [ %25, %24 ], [ 0, %.lr.ph ]
  %22 = sub i32 %2, %.046.us
  %23 = invoke noundef i32 @_ZN10DeviceBase13renderSamplesEj(ptr noundef nonnull align 16 dereferenceable(107576) %0, i32 noundef %22)
          to label %24 unwind label %.split.us

24:                                               ; preds = %.lr.ph.split.us
  %25 = add i32 %23, %.046.us
  %.not.us = icmp eq i32 %25, %2
  br i1 %.not.us, label %._crit_edge, label %.lr.ph.split.us

.split.us:                                        ; preds = %.lr.ph.split.us
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %32

.lr.ph.split:                                     ; preds = %.lr.ph, %75
  %.046 = phi i32 [ %76, %75 ], [ 0, %.lr.ph ]
  %27 = sub i32 %2, %.046
  %28 = invoke noundef i32 @_ZN10DeviceBase13renderSamplesEj(ptr noundef nonnull align 16 dereferenceable(107576) %0, i32 noundef %27)
          to label %29 unwind label %.split

29:                                               ; preds = %.lr.ph.split
  %30 = load i8, ptr %13, align 1, !tbaa !6
  switch i8 %30, label %75 [
    i8 0, label %33
    i8 1, label %39
    i8 2, label %45
    i8 3, label %51
    i8 4, label %57
    i8 5, label %63
    i8 6, label %69
  ]

.split:                                           ; preds = %70, %69, %64, %63, %58, %57, %52, %51, %46, %45, %40, %39, %34, %33, %.lr.ph.split
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %32

32:                                               ; preds = %.split.us, %.split
  %.us-phi = phi { ptr, i32 } [ %31, %.split ], [ %26, %.split.us ]
  call void @_ZN6FPUCtlD2Ev(ptr noundef nonnull align 4 dereferenceable(5) %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  resume { ptr, i32 } %.us-phi

33:                                               ; preds = %29
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %34 unwind label %.split

34:                                               ; preds = %33
  %35 = zext i32 %.046 to i64
  %36 = zext i32 %28 to i64
  %37 = load ptr, ptr %6, align 8
  %38 = load i64, ptr %21, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteIaEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %37, i64 %38, ptr noundef nonnull %1, i64 noundef %35, i64 noundef %36, i64 noundef %3)
          to label %75 unwind label %.split

39:                                               ; preds = %29
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %40 unwind label %.split

40:                                               ; preds = %39
  %41 = zext i32 %.046 to i64
  %42 = zext i32 %28 to i64
  %43 = load ptr, ptr %7, align 8
  %44 = load i64, ptr %20, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteIhEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %43, i64 %44, ptr noundef nonnull %1, i64 noundef %41, i64 noundef %42, i64 noundef %3)
          to label %75 unwind label %.split

45:                                               ; preds = %29
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %46 unwind label %.split

46:                                               ; preds = %45
  %47 = zext i32 %.046 to i64
  %48 = zext i32 %28 to i64
  %49 = load ptr, ptr %8, align 8
  %50 = load i64, ptr %19, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteIsEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %49, i64 %50, ptr noundef nonnull %1, i64 noundef %47, i64 noundef %48, i64 noundef %3)
          to label %75 unwind label %.split

51:                                               ; preds = %29
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %52 unwind label %.split

52:                                               ; preds = %51
  %53 = zext i32 %.046 to i64
  %54 = zext i32 %28 to i64
  %55 = load ptr, ptr %9, align 8
  %56 = load i64, ptr %18, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteItEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %55, i64 %56, ptr noundef nonnull %1, i64 noundef %53, i64 noundef %54, i64 noundef %3)
          to label %75 unwind label %.split

57:                                               ; preds = %29
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %58 unwind label %.split

58:                                               ; preds = %57
  %59 = zext i32 %.046 to i64
  %60 = zext i32 %28 to i64
  %61 = load ptr, ptr %10, align 8
  %62 = load i64, ptr %17, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteIiEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %61, i64 %62, ptr noundef nonnull %1, i64 noundef %59, i64 noundef %60, i64 noundef %3)
          to label %75 unwind label %.split

63:                                               ; preds = %29
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %64 unwind label %.split

64:                                               ; preds = %63
  %65 = zext i32 %.046 to i64
  %66 = zext i32 %28 to i64
  %67 = load ptr, ptr %11, align 8
  %68 = load i64, ptr %16, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteIjEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %67, i64 %68, ptr noundef nonnull %1, i64 noundef %65, i64 noundef %66, i64 noundef %3)
          to label %75 unwind label %.split

69:                                               ; preds = %29
  invoke void @_ZN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEC2IRNS0_IS2_Lm18446744073709551615EEETnNSt9enable_ifIXsr7detail_E18is_valid_containerIT_S3_EEbE4typeELb1EEEOS9_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %70 unwind label %.split

70:                                               ; preds = %69
  %71 = zext i32 %.046 to i64
  %72 = zext i32 %28 to i64
  %73 = load ptr, ptr %12, align 8
  %74 = load i64, ptr %15, align 8
  invoke void @_ZN12_GLOBAL__N_15WriteIfEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr %73, i64 %74, ptr noundef nonnull %1, i64 noundef %71, i64 noundef %72, i64 noundef %3)
          to label %75 unwind label %.split

75:                                               ; preds = %70, %64, %58, %52, %46, %40, %34, %29
  %76 = add i32 %28, %.046
  %.not = icmp eq i32 %76, %2
  br i1 %.not, label %._crit_edge, label %.lr.ph.split

._crit_edge:                                      ; preds = %75, %24, %4
  call void @_ZN6FPUCtlD2Ev(ptr noundef nonnull align 4 dereferenceable(5) %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret void
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteIaEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteIhEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteIsEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteItEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteIiEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteIjEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN12_GLOBAL__N_15WriteIfEEvN2al4spanIKSt5arrayIfLm1024EELm18446744073709551615EEEPvmmm(ptr, i64, ptr noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

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 = { 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 = { 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!6 = !{!7, !16, i64 17}
!7 = !{!"_ZTS10DeviceBase", !8, i64 0, !13, i64 1, !14, i64 4, !14, i64 8, !14, i64 12, !15, i64 16, !16, i64 17, !14, i64 20, !17, i64 24, !10, i64 28, !18, i64 29, !19, i64 30, !20, i64 32, !24, i64 64, !26, i64 72, !14, i64 76, !27, i64 80, !17, i64 84, !28, i64 88, !37, i64 240, !39, i64 248, !40, i64 256, !41, i64 264, !41, i64 1288, !42, i64 2320, !43, i64 84240, !44, i64 89552, !45, i64 93648, !46, i64 98000, !47, i64 107216, !51, i64 107240, !54, i64 107384, !55, i64 107400, !58, i64 107472, !64, i64 107480, !14, i64 107488, !65, i64 107496, !71, i64 107504, !77, i64 107512, !11, i64 107520, !83, i64 107536, !89, i64 107544, !17, i64 107552, !14, i64 107556, !37, i64 107560, !95, i64 107568}
!8 = !{!"_ZTSSt6atomicIbE", !9, i64 0}
!9 = !{!"_ZTSSt13__atomic_baseIbE", !10, i64 0}
!10 = !{!"bool", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"_ZTS10DeviceType", !11, i64 0}
!14 = !{!"int", !11, i64 0}
!15 = !{!"_ZTS14DevFmtChannels", !11, i64 0}
!16 = !{!"_ZTS10DevFmtType", !11, i64 0}
!17 = !{!"float", !11, i64 0}
!18 = !{!"_ZTS13DevAmbiLayout", !11, i64 0}
!19 = !{!"_ZTS14DevAmbiScaling", !11, i64 0}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !21, i64 0, !23, i64 8, !11, i64 16}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !22, i64 0}
!22 = !{!"any pointer", !11, i64 0}
!23 = !{!"long", !11, i64 0}
!24 = !{!"_ZTSSt6bitsetILm6EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Base_bitsetILm1EE", !23, i64 0}
!26 = !{!"_ZTS11DeviceState", !11, i64 0}
!27 = !{!"_ZTS10RenderMode", !11, i64 0}
!28 = !{!"_ZTS9NfcFilter", !29, i64 0, !31, i64 20, !33, i64 52, !35, i64 96}
!29 = !{!"_ZTS10NfcFilter1", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !30, i64 16}
!30 = !{!"_ZTSSt5arrayIfLm1EE", !11, i64 0}
!31 = !{!"_ZTS10NfcFilter2", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !32, i64 24}
!32 = !{!"_ZTSSt5arrayIfLm2EE", !11, i64 0}
!33 = !{!"_ZTS10NfcFilter3", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !34, i64 32}
!34 = !{!"_ZTSSt5arrayIfLm3EE", !11, i64 0}
!35 = !{!"_ZTS10NfcFilter4", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !17, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !36, i64 40}
!36 = !{!"_ZTSSt5arrayIfLm4EE", !11, i64 0}
!37 = !{!"_ZTSSt6atomicIjE", !38, i64 0}
!38 = !{!"_ZTSSt13__atomic_baseIjE", !14, i64 0}
!39 = !{!"_ZTSSt6atomicINSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEEE", !40, i64 0}
!40 = !{!"_ZTSNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEE", !23, i64 0}
!41 = !{!"_ZTSSt5arrayIS_IfLm16EELm16EE", !11, i64 0}
!42 = !{!"_ZTSSt5arrayIfLm20480EE", !11, i64 0}
!43 = !{!"_ZTSSt5arrayIfLm1328EE", !11, i64 0}
!44 = !{!"_ZTSSt5arrayIfLm1024EE", !11, i64 0}
!45 = !{!"_ZTSSt5arrayIfLm1088EE", !11, i64 0}
!46 = !{!"_ZTSSt5arrayIS_IfLm2EELm1152EE", !11, i64 0}
!47 = !{!"_ZTSSt6vectorISt5arrayIfLm1024EEN2al9allocatorIS1_Lm16EEEE", !48, i64 0}
!48 = !{!"_ZTSSt12_Vector_baseISt5arrayIfLm1024EEN2al9allocatorIS1_Lm16EEEE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseISt5arrayIfLm1024EEN2al9allocatorIS1_Lm16EEEE12_Vector_implE", !50, i64 0}
!50 = !{!"_ZTSNSt12_Vector_baseISt5arrayIfLm1024EEN2al9allocatorIS1_Lm16EEEE17_Vector_impl_dataE", !22, i64 0, !22, i64 8, !22, i64 16}
!51 = !{!"_ZTS9MixParams", !52, i64 0, !53, i64 128}
!52 = !{!"_ZTSSt5arrayI15BFChannelConfigLm16EE", !11, i64 0}
!53 = !{!"_ZTSN2al4spanISt5arrayIfLm1024EELm18446744073709551615EEE", !22, i64 0, !23, i64 8}
!54 = !{!"_ZTSSt5arrayIjLm4EE", !11, i64 0}
!55 = !{!"_ZTS13RealMixParams", !56, i64 0, !57, i64 16, !53, i64 56}
!56 = !{!"_ZTSN2al4spanIK13InputRemixMapLm18446744073709551615EEE", !22, i64 0, !23, i64 8}
!57 = !{!"_ZTSSt5arrayIhLm36EE", !11, i64 0}
!58 = !{!"_ZTSSt10unique_ptrI15DirectHrtfStateSt14default_deleteIS0_EE", !59, i64 0}
!59 = !{!"_ZTSSt15__uniq_ptr_dataI15DirectHrtfStateSt14default_deleteIS0_ELb1ELb1EE", !60, i64 0}
!60 = !{!"_ZTSSt15__uniq_ptr_implI15DirectHrtfStateSt14default_deleteIS0_EE", !61, i64 0}
!61 = !{!"_ZTSSt5tupleIJP15DirectHrtfStateSt14default_deleteIS0_EEE", !62, i64 0}
!62 = !{!"_ZTSSt11_Tuple_implILm0EJP15DirectHrtfStateSt14default_deleteIS0_EEE", !63, i64 0}
!63 = !{!"_ZTSSt10_Head_baseILm0EP15DirectHrtfStateLb0EE", !22, i64 0}
!64 = !{!"_ZTSN2al13intrusive_ptrI9HrtfStoreEE", !22, i64 0}
!65 = !{!"_ZTSSt10unique_ptrI14UhjEncoderBaseSt14default_deleteIS0_EE", !66, i64 0}
!66 = !{!"_ZTSSt15__uniq_ptr_dataI14UhjEncoderBaseSt14default_deleteIS0_ELb1ELb1EE", !67, i64 0}
!67 = !{!"_ZTSSt15__uniq_ptr_implI14UhjEncoderBaseSt14default_deleteIS0_EE", !68, i64 0}
!68 = !{!"_ZTSSt5tupleIJP14UhjEncoderBaseSt14default_deleteIS0_EEE", !69, i64 0}
!69 = !{!"_ZTSSt11_Tuple_implILm0EJP14UhjEncoderBaseSt14default_deleteIS0_EEE", !70, i64 0}
!70 = !{!"_ZTSSt10_Head_baseILm0EP14UhjEncoderBaseLb0EE", !22, i64 0}
!71 = !{!"_ZTSSt10unique_ptrI10BFormatDecSt14default_deleteIS0_EE", !72, i64 0}
!72 = !{!"_ZTSSt15__uniq_ptr_dataI10BFormatDecSt14default_deleteIS0_ELb1ELb1EE", !73, i64 0}
!73 = !{!"_ZTSSt15__uniq_ptr_implI10BFormatDecSt14default_deleteIS0_EE", !74, i64 0}
!74 = !{!"_ZTSSt5tupleIJP10BFormatDecSt14default_deleteIS0_EEE", !75, i64 0}
!75 = !{!"_ZTSSt11_Tuple_implILm0EJP10BFormatDecSt14default_deleteIS0_EEE", !76, i64 0}
!76 = !{!"_ZTSSt10_Head_baseILm0EP10BFormatDecLb0EE", !22, i64 0}
!77 = !{!"_ZTSSt10unique_ptrIN4Bs2b4bs2bESt14default_deleteIS1_EE", !78, i64 0}
!78 = !{!"_ZTSSt15__uniq_ptr_dataIN4Bs2b4bs2bESt14default_deleteIS1_ELb1ELb1EE", !79, i64 0}
!79 = !{!"_ZTSSt15__uniq_ptr_implIN4Bs2b4bs2bESt14default_deleteIS1_EE", !80, i64 0}
!80 = !{!"_ZTSSt5tupleIJPN4Bs2b4bs2bESt14default_deleteIS1_EEE", !81, i64 0}
!81 = !{!"_ZTSSt11_Tuple_implILm0EJPN4Bs2b4bs2bESt14default_deleteIS1_EEE", !82, i64 0}
!82 = !{!"_ZTSSt10_Head_baseILm0EPN4Bs2b4bs2bELb0EE", !22, i64 0}
!83 = !{!"_ZTSSt10unique_ptrI10CompressorSt14default_deleteIS0_EE", !84, i64 0}
!84 = !{!"_ZTSSt15__uniq_ptr_dataI10CompressorSt14default_deleteIS0_ELb1ELb1EE", !85, i64 0}
!85 = !{!"_ZTSSt15__uniq_ptr_implI10CompressorSt14default_deleteIS0_EE", !86, i64 0}
!86 = !{!"_ZTSSt5tupleIJP10CompressorSt14default_deleteIS0_EEE", !87, i64 0}
!87 = !{!"_ZTSSt11_Tuple_implILm0EJP10CompressorSt14default_deleteIS0_EEE", !88, i64 0}
!88 = !{!"_ZTSSt10_Head_baseILm0EP10CompressorLb0EE", !22, i64 0}
!89 = !{!"_ZTSSt10unique_ptrI12DistanceCompSt14default_deleteIS0_EE", !90, i64 0}
!90 = !{!"_ZTSSt15__uniq_ptr_dataI12DistanceCompSt14default_deleteIS0_ELb1ELb1EE", !91, i64 0}
!91 = !{!"_ZTSSt15__uniq_ptr_implI12DistanceCompSt14default_deleteIS0_EE", !92, i64 0}
!92 = !{!"_ZTSSt5tupleIJP12DistanceCompSt14default_deleteIS0_EEE", !93, i64 0}
!93 = !{!"_ZTSSt11_Tuple_implILm0EJP12DistanceCompSt14default_deleteIS0_EEE", !94, i64 0}
!94 = !{!"_ZTSSt10_Head_baseILm0EP12DistanceCompLb0EE", !22, i64 0}
!95 = !{!"_ZTSN2al17atomic_unique_ptrINS_9FlexArrayIP11ContextBaseLm8EEESt14default_deleteIS4_EEE", !96, i64 0}
!96 = !{!"_ZTSSt6atomicIPN2al9FlexArrayIP11ContextBaseLm8EEEE", !97, i64 0}
!97 = !{!"_ZTSSt13__atomic_baseIPN2al9FlexArrayIP11ContextBaseLm8EEEE", !22, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass