; LLVM IR from Try/Tempest :: Engine/thirdparty/openal-soft/core/context.ll (ZN11ContextBase15allocVoicePropsEv)

; 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.std::unique_ptr.56" = type { %"struct.std::__uniq_ptr_data.57" }
%"struct.std::__uniq_ptr_data.57" = type { %"class.std::__uniq_ptr_impl.58" }
%"class.std::__uniq_ptr_impl.58" = type { %"class.std::tuple.59" }
%"class.std::tuple.59" = type { %"struct.std::_Tuple_impl.60" }
%"struct.std::_Tuple_impl.60" = type { %"struct.std::_Head_base.63" }
%"struct.std::_Head_base.63" = type { ptr }
%"class.al::span.64" = type { ptr }
%struct.ContextBase = type { ptr, %"struct.std::atomic", %"struct.std::atomic.0", %"struct.std::atomic.0", float, %"struct.std::atomic.2", %"struct.std::atomic.4", %"struct.std::atomic.6", ptr, %"struct.std::atomic.8", %struct.ContextParams, %"class.al::atomic_unique_ptr", %"struct.std::atomic.13", %"class.al::atomic_unique_ptr.15", %"class.std::thread", %"class.al::semaphore", %"class.std::unique_ptr", %"struct.std::atomic.20", %"class.std::vector", %"class.std::vector.21", %"class.std::vector.26", %"class.std::vector.31", %"class.std::vector.36", %"class.std::vector.41" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"struct.std::atomic.0" = type { %"struct.std::__atomic_base.1" }
%"struct.std::__atomic_base.1" = type { i8 }
%"struct.std::atomic.2" = type { %"struct.std::__atomic_base.3" }
%"struct.std::__atomic_base.3" = type { ptr }
%"struct.std::atomic.4" = type { %"struct.std::__atomic_base.5" }
%"struct.std::__atomic_base.5" = type { ptr }
%"struct.std::atomic.6" = type { %"struct.std::__atomic_base.7" }
%"struct.std::__atomic_base.7" = type { ptr }
%"struct.std::atomic.8" = type { %"struct.std::__atomic_base.9" }
%"struct.std::__atomic_base.9" = type { ptr }
%struct.ContextParams = type <{ %"struct.std::atomic.2", [8 x i8], %"class.alu::Vector", %"class.alu::Matrix", %"class.alu::Vector", float, float, float, float, float, i8, i8, [10 x i8] }>
%"class.alu::Matrix" = type { %"struct.std::array.10" }
%"struct.std::array.10" = type { [16 x float] }
%"class.alu::Vector" = type { %"struct.std::array" }
%"struct.std::array" = type { [4 x float] }
%"class.al::atomic_unique_ptr" = type { %"struct.std::atomic.11" }
%"struct.std::atomic.11" = type { %"struct.std::__atomic_base.12" }
%"struct.std::__atomic_base.12" = type { ptr }
%"struct.std::atomic.13" = type { %"struct.std::__atomic_base.14" }
%"struct.std::__atomic_base.14" = type { i64 }
%"class.al::atomic_unique_ptr.15" = type { %"struct.std::atomic.16" }
%"struct.std::atomic.16" = type { %"struct.std::__atomic_base.17" }
%"struct.std::__atomic_base.17" = type { ptr }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%"class.al::semaphore" = type { %union.sem_t }
%union.sem_t = type { i64, [24 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.19" }
%"struct.std::_Head_base.19" = type { ptr }
%"struct.std::atomic.20" = type { %"class.std::bitset" }
%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<VoiceChange, 128>>, std::allocator<std::unique_ptr<std::array<VoiceChange, 128>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<VoiceChange, 128>>, std::allocator<std::unique_ptr<std::array<VoiceChange, 128>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<VoiceChange, 128>>, std::allocator<std::unique_ptr<std::array<VoiceChange, 128>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<VoiceChange, 128>>, std::allocator<std::unique_ptr<std::array<VoiceChange, 128>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.21" = type { %"struct.std::_Vector_base.22" }
%"struct.std::_Vector_base.22" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<Voice, 32>>, std::allocator<std::unique_ptr<std::array<Voice, 32>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<Voice, 32>>, std::allocator<std::unique_ptr<std::array<Voice, 32>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<Voice, 32>>, std::allocator<std::unique_ptr<std::array<Voice, 32>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<Voice, 32>>, std::allocator<std::unique_ptr<std::array<Voice, 32>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.26" = type { %"struct.std::_Vector_base.27" }
%"struct.std::_Vector_base.27" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<VoicePropsItem, 32>>, std::allocator<std::unique_ptr<std::array<VoicePropsItem, 32>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<VoicePropsItem, 32>>, std::allocator<std::unique_ptr<std::array<VoicePropsItem, 32>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<VoicePropsItem, 32>>, std::allocator<std::unique_ptr<std::array<VoicePropsItem, 32>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<VoicePropsItem, 32>>, std::allocator<std::unique_ptr<std::array<VoicePropsItem, 32>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.31" = type { %"struct.std::_Vector_base.32" }
%"struct.std::_Vector_base.32" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlot, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlot, 4>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlot, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlot, 4>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlot, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlot, 4>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlot, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlot, 4>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.36" = type { %"struct.std::_Vector_base.37" }
%"struct.std::_Vector_base.37" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlotProps, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlotProps, 4>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlotProps, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlotProps, 4>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlotProps, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlotProps, 4>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<EffectSlotProps, 4>>, std::allocator<std::unique_ptr<std::array<EffectSlotProps, 4>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.41" = type { %"struct.std::_Vector_base.42" }
%"struct.std::_Vector_base.42" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<ContextProps, 2>>, std::allocator<std::unique_ptr<std::array<ContextProps, 2>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<ContextProps, 2>>, std::allocator<std::unique_ptr<std::array<ContextProps, 2>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::unique_ptr<std::array<ContextProps, 2>>, std::allocator<std::unique_ptr<std::array<ContextProps, 2>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::unique_ptr<std::array<ContextProps, 2>>, std::allocator<std::unique_ptr<std::array<ContextProps, 2>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.VoicePropsItem = type { %struct.VoiceProps, %"struct.std::atomic.4" }
%struct.VoiceProps = type { float, float, float, float, float, float, float, float, float, float, %"struct.std::array.66", %"struct.std::array.66", %"struct.std::array.66", %"struct.std::array.66", %"struct.std::array.66", i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, %"struct.std::array.67", float, float, float, %"struct.VoiceProps::DirectData", %"struct.std::array.68" }
%"struct.std::array.66" = type { [3 x float] }
%"struct.std::array.67" = type { [2 x float] }
%"struct.VoiceProps::DirectData" = type { float, float, float, float, float }
%"struct.std::array.68" = type { [6 x %"struct.VoiceProps::SendData"] }
%"struct.VoiceProps::SendData" = type { ptr, float, float, float, float, float }

@.str.5 = external hidden unnamed_addr constant [46 x i8], align 1

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: nounwind
declare void @_Z8al_print8LogLevelPKcz(i32 noundef, ptr noundef, ...) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11ContextBase15allocVoicePropsEv(ptr noundef nonnull align 16 dereferenceable(432) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::unique_ptr.56", align 8
  %4 = alloca %"class.al::span.64", align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  %10 = getelementptr inbounds %struct.ContextBase, ptr %9, i32 0, i32 20
  %11 = call noundef i64 @_ZNKSt6vectorISt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS3_EESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %12 = add i64 %11, 1
  %13 = mul i64 %12, 32
  call void (i32, ptr, ...) @_Z8al_print8LogLevelPKcz(i32 noundef 3, ptr noundef @.str.5, i64 noundef %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @_ZSt11make_uniqueISt5arrayI14VoicePropsItemLm32EEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::unique_ptr.56") align 8 %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %14 = call noundef nonnull align 8 dereferenceable(11776) ptr @_ZNKSt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS2_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @_ZN2al4spanI14VoicePropsItemLm32EEC2ILm32EEERSt5arrayIS1_XT_EE(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(11776) %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 1, ptr %5, align 8, !tbaa !9
  br label %15

15:                                               ; preds = %28, %1
  %16 = load i64, ptr %5, align 8, !tbaa !9
  %17 = icmp ult i64 %16, 32
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %35

19:                                               ; preds = %15
  %20 = load i64, ptr %5, align 8, !tbaa !9
  %21 = sub i64 %20, 1
  %22 = invoke noundef nonnull align 8 dereferenceable(368) ptr @_ZNK2al4spanI14VoicePropsItemLm32EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %21)
          to label %23 unwind label %31

23:                                               ; preds = %19
  %24 = getelementptr inbounds %struct.VoicePropsItem, ptr %22, i32 0, i32 1
  %25 = load i64, ptr %5, align 8, !tbaa !9
  %26 = invoke noundef nonnull align 8 dereferenceable(368) ptr @_ZNK2al4spanI14VoicePropsItemLm32EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %4, i64 noundef %25)
          to label %27 unwind label %31

27:                                               ; preds = %23
  call void @_ZNSt6atomicIP14VoicePropsItemE5storeES1_St12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef %26, i32 noundef 0) #6
  br label %28

28:                                               ; preds = %27
  %29 = load i64, ptr %5, align 8, !tbaa !9
  %30 = add i64 %29, 1
  store i64 %30, ptr %5, align 8, !tbaa !9
  br label %15, !llvm.loop !11

31:                                               ; preds = %23, %19
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %6, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %62

35:                                               ; preds = %18
  %36 = getelementptr inbounds %struct.ContextBase, ptr %9, i32 0, i32 20
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS3_EESaIS6_EE12emplace_backIJS6_EEERS6_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %38 unwind label %58

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %39 = getelementptr inbounds %struct.ContextBase, ptr %9, i32 0, i32 6
  %40 = call noundef ptr @_ZNKSt6atomicIP14VoicePropsItemE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %39, i32 noundef 2) #6
  store ptr %40, ptr %8, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %48, %38
  %42 = getelementptr inbounds %struct.ContextBase, ptr %9, i32 0, i32 20
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS3_EESaIS6_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %42) #6
  %44 = call noundef ptr @_ZNKSt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %43) #6
  %45 = call noundef nonnull align 8 dereferenceable(368) ptr @_ZNSt5arrayI14VoicePropsItemLm32EE4backEv(ptr noundef nonnull align 8 dereferenceable(11776) %44) #6
  %46 = getelementptr inbounds %struct.VoicePropsItem, ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZNSt6atomicIP14VoicePropsItemE5storeES1_St12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef %47, i32 noundef 0) #6
  br label %48

48:                                               ; preds = %41
  %49 = getelementptr inbounds %struct.ContextBase, ptr %9, i32 0, i32 6
  %50 = getelementptr inbounds %struct.ContextBase, ptr %9, i32 0, i32 20
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS3_EESaIS6_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  %52 = call noundef ptr @_ZNKSt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %51) #6
  %53 = call noundef ptr @_ZNSt5arrayI14VoicePropsItemLm32EE4dataEv(ptr noundef nonnull align 8 dereferenceable(11776) %52) #7
  %54 = call noundef zeroext i1 @_ZNSt6atomicIP14VoicePropsItemE21compare_exchange_weakERS1_S1_St12memory_orderS4_(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef %53, i32 noundef 4, i32 noundef 2) #6
  %55 = zext i1 %54 to i32
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %41, label %57, !llvm.loop !13

57:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @_ZNSt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void

58:                                               ; preds = %35
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %6, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %7, align 4
  br label %62

62:                                               ; preds = %58, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @_ZNSt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %63

63:                                               ; preds = %62
  %64 = load ptr, ptr %6, align 8
  %65 = load i32, ptr %7, align 4
  %66 = insertvalue { ptr, i32 } poison, ptr %64, 0
  %67 = insertvalue { ptr, i32 } %66, i32 %65, 1
  resume { ptr, i32 } %67
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueISt5arrayI14VoicePropsItemLm32EEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.56") align 8) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(368) ptr @_ZNK2al4spanI14VoicePropsItemLm32EEixEm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayI14VoicePropsItemLm32EE4dataEv(ptr noundef nonnull align 8 dereferenceable(11776)) #5 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "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 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 = { inlinehint 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 #5 = { mustprogress nounwind willreturn memory(none) 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }

!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 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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.std::unique_ptr.56" = type { %"struct.std::__uniq_ptr_data.57" }
%"struct.std::__uniq_ptr_data.57" = type { %"class.std::__uniq_ptr_impl.58" }
%"class.std::__uniq_ptr_impl.58" = type { %"class.std::tuple.59" }
%"class.std::tuple.59" = type { %"struct.std::_Tuple_impl.60" }
%"struct.std::_Tuple_impl.60" = type { %"struct.std::_Head_base.63" }
%"struct.std::_Head_base.63" = type { ptr }
%"class.al::span.64" = type { ptr }

@.str.5 = external hidden unnamed_addr constant [46 x i8], align 1

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: nounwind
declare void @_Z8al_print8LogLevelPKcz(i32 noundef, ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11ContextBase15allocVoicePropsEv(ptr noundef nonnull align 16 dereferenceable(432) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::unique_ptr.56", align 8
  %3 = alloca %"class.al::span.64", align 8
  %4 = alloca ptr, align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 336
  %6 = tail call noundef i64 @_ZNKSt6vectorISt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS3_EESaIS6_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %7 = shl i64 %6, 5
  %8 = add i64 %7, 32
  tail call void (i32, ptr, ...) @_Z8al_print8LogLevelPKcz(i32 noundef 3, ptr noundef nonnull @.str.5, i64 noundef %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @_ZSt11make_uniqueISt5arrayI14VoicePropsItemLm32EEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::unique_ptr.56") align 8 %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %9 = call noundef nonnull align 8 dereferenceable(11776) ptr @_ZNKSt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS2_EEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  call void @_ZN2al4spanI14VoicePropsItemLm32EEC2ILm32EEERSt5arrayIS1_XT_EE(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(11776) %9) #6
  br label %12

10:                                               ; preds = %12
  %11 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS3_EESaIS6_EE12emplace_backIJS6_EEERS6_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %18 unwind label %32

12:                                               ; preds = %1, %12
  %.06 = phi i64 [ 1, %1 ], [ %17, %12 ]
  %13 = add nsw i64 %.06, -1
  %14 = call noundef nonnull align 8 dereferenceable(368) ptr @_ZNK2al4spanI14VoicePropsItemLm32EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %13)
  %15 = getelementptr inbounds i8, ptr %14, i64 360
  %16 = call noundef nonnull align 8 dereferenceable(368) ptr @_ZNK2al4spanI14VoicePropsItemLm32EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %.06)
  call void @_ZNSt6atomicIP14VoicePropsItemE5storeES1_St12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull %16, i32 noundef 0) #6
  %17 = add nuw nsw i64 %.06, 1
  %exitcond.not = icmp eq i64 %17, 32
  br i1 %exitcond.not, label %10, label %12, !llvm.loop !5

18:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %19 = getelementptr inbounds i8, ptr %0, i64 32
  %20 = call noundef ptr @_ZNKSt6atomicIP14VoicePropsItemE4loadESt12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %19, i32 noundef 2) #6
  store ptr %20, ptr %4, align 8, !tbaa !7
  br label %21

21:                                               ; preds = %21, %18
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS3_EESaIS6_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %23 = call noundef ptr @_ZNKSt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #6
  %24 = call noundef nonnull align 8 dereferenceable(368) ptr @_ZNSt5arrayI14VoicePropsItemLm32EE4backEv(ptr noundef nonnull align 8 dereferenceable(11776) %23) #6
  %25 = getelementptr inbounds i8, ptr %24, i64 360
  %26 = load ptr, ptr %4, align 8, !tbaa !7
  call void @_ZNSt6atomicIP14VoicePropsItemE5storeES1_St12memory_order(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef %26, i32 noundef 0) #6
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS3_EESaIS6_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %28 = call noundef ptr @_ZNKSt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS2_EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  %29 = call noundef ptr @_ZNSt5arrayI14VoicePropsItemLm32EE4dataEv(ptr noundef nonnull align 8 dereferenceable(11776) %28) #7
  %30 = call noundef zeroext i1 @_ZNSt6atomicIP14VoicePropsItemE21compare_exchange_weakERS1_S1_St12memory_orderS4_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %29, i32 noundef 4, i32 noundef 2) #6
  br i1 %30, label %31, label %21, !llvm.loop !11

31:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @_ZNSt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret void

32:                                               ; preds = %10
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @_ZNSt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  resume { ptr, i32 } %33
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_uniqueISt5arrayI14VoicePropsItemLm32EEJEENSt8__detail9_MakeUniqIT_E15__single_objectEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::unique_ptr.56") align 8) local_unnamed_addr #4

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt6atomicIP14VoicePropsItemE4loadESt12memory_order(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 8 dereferenceable(8) ptr @_ZNSt6vectorISt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS3_EESaIS6_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrISt5arrayI14VoicePropsItemLm32EESt14default_deleteIS2_EEptEv(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(368) ptr @_ZNSt5arrayI14VoicePropsItemLm32EE4backEv(ptr noundef nonnull align 8 dereferenceable(11776)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayI14VoicePropsItemLm32EE4dataEv(ptr noundef nonnull align 8 dereferenceable(11776)) local_unnamed_addr #5 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind "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 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 = { inlinehint 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 #5 = { mustprogress nofree nosync nounwind willreturn memory(none) 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 #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(none) }

!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 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass