; LLVM IR from kacperks/Fractal_Engine :: Engine/Thirdparty/cmake/Engine/Thirdparty/cmake/openal-soft/core (hrtf)

; 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.10" = type { ptr, ptr }
%"class.al::span.11" = type { ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<ImpulseResponse, al::allocator<ImpulseResponse, 8>>::_Vector_impl" }
%"struct.std::_Vector_base<ImpulseResponse, al::allocator<ImpulseResponse, 8>>::_Vector_impl" = type { %"struct.std::_Vector_base<ImpulseResponse, al::allocator<ImpulseResponse, 8>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ImpulseResponse, al::allocator<ImpulseResponse, 8>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.17 = type { ptr, ptr, ptr }
%"class.std::back_insert_iterator" = type { ptr }
%class.anon.18 = type { i8 }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<std::array<std::array<double, 2>, 128>, al::allocator<std::array<std::array<double, 2>, 128>, 8>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<std::array<double, 2>, 128>, al::allocator<std::array<std::array<double, 2>, 128>, 8>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<std::array<double, 2>, 128>, al::allocator<std::array<std::array<double, 2>, 128>, 8>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<std::array<double, 2>, 128>, al::allocator<std::array<std::array<double, 2>, 128>, 8>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.al::allocator.21" = type { i8 }
%"class.al::span.23" = type { ptr }
%class.anon.26 = type { i8 }
%struct.HrtfStore = type { %"struct.std::atomic", i32, i32, i32, ptr, ptr, ptr, ptr }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%struct.DirectHrtfState = type { %"struct.std::array.8", i32, [12 x i8], %"struct.al::FlexArray" }
%"struct.std::array.8" = type { [1280 x float] }
%"struct.al::FlexArray" = type { %"struct.al::FlexArrayStorage" }
%"struct.al::FlexArrayStorage" = type { i64, [8 x i8], %union.anon }
%union.anon = type { [1 x %struct.HrtfChannelState] }
%struct.HrtfChannelState = type { %"struct.std::array.9", %class.BandSplitterR, float, [12 x i8], %"struct.std::array.4" }
%"struct.std::array.9" = type { [256 x float] }
%class.BandSplitterR = type { float, float, float, float }
%"struct.std::array.4" = type { [128 x %"struct.std::array.5"] }
%"struct.std::array.5" = type { [2 x float] }
%struct.ImpulseResponse = type { %"class.al::span.23", i32, i32 }

@gLogLevel = external global i32, align 4
@gLogFile = external global ptr, align 8
@.str = external hidden unnamed_addr constant [64 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4minujj(i32 noundef, i32 noundef) #1

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

; Function Attrs: 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) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEE(ptr noundef nonnull align 16 dereferenceable(7232) %0, ptr noundef %1, i32 noundef %2, ptr %3, ptr %4, ptr noundef %5, float noundef %6, i64 %7) #3 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"class.al::span.10", align 8
  %10 = alloca %"class.al::span.11", align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca float, align 4
  %16 = alloca double, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::vector.13", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca %class.anon.17, align 8
  %25 = alloca %"class.std::back_insert_iterator", align 8
  %26 = alloca %class.anon.17, align 8
  %27 = alloca %"class.std::back_insert_iterator", align 8
  %28 = alloca %class.anon.18, align 1
  %29 = alloca i8, align 1
  %30 = alloca %"class.std::vector.19", align 8
  %31 = alloca %"struct.al::allocator.21", align 1
  %32 = alloca i64, align 8
  %33 = alloca i32, align 4
  %34 = alloca %"class.al::span.23", align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i64, align 8
  %39 = alloca double, align 8
  %40 = alloca i64, align 8
  %41 = alloca i64, align 8
  %42 = alloca i64, align 8
  %43 = alloca i64, align 8
  %44 = alloca i64, align 8
  %45 = alloca %class.anon.26, align 1
  %46 = alloca %class.anon.26, align 1
  %47 = alloca i32, align 4
  %48 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 0
  store ptr %3, ptr %48, align 8
  %49 = getelementptr inbounds { ptr, ptr }, ptr %9, i32 0, i32 1
  store ptr %4, ptr %49, align 8
  %50 = getelementptr inbounds %"class.al::span.11", ptr %10, i32 0, i32 0
  %51 = inttoptr i64 %7 to ptr
  store ptr %51, ptr %50, align 8
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store i32 %2, ptr %13, align 4, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  store float %6, ptr %15, align 4, !tbaa !11
  %52 = load ptr, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #12
  %53 = load float, ptr %15, align 4, !tbaa !11
  %54 = fpext float %53 to double
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.HrtfStore, ptr %55, i32 0, i32 1
  %57 = load i32, ptr %56, align 4, !tbaa !13
  %58 = uitofp i32 %57 to double
  %59 = fdiv double %54, %58
  store double %59, ptr %16, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #12
  store i64 0, ptr %17, align 8, !tbaa !19
  br label %60

60:                                               ; preds = %85, %8
  %61 = load i64, ptr %17, align 8, !tbaa !19
  %62 = getelementptr inbounds %struct.DirectHrtfState, ptr %52, i32 0, i32 3
  %63 = call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %62) #12
  %64 = icmp ult i64 %61, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #12
  br label %88

66:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #12
  %67 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZN9AmbiIndex16OrderFromChannelEv() #12
  %68 = load i64, ptr %17, align 8, !tbaa !19
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %67, i64 noundef %68) #12
  %70 = load i8, ptr %69, align 1, !tbaa !21
  %71 = zext i8 %70 to i64
  store i64 %71, ptr %18, align 8, !tbaa !19
  %72 = getelementptr inbounds %struct.DirectHrtfState, ptr %52, i32 0, i32 3
  %73 = load i64, ptr %17, align 8, !tbaa !19
  %74 = call noundef nonnull align 16 dereferenceable(2080) ptr @_ZN2al9FlexArrayI16HrtfChannelStateLm16EEixEm(ptr noundef nonnull align 16 dereferenceable(2096) %72, i64 noundef %73) #12
  %75 = getelementptr inbounds %struct.HrtfChannelState, ptr %74, i32 0, i32 1
  %76 = load double, ptr %16, align 8, !tbaa !17
  %77 = fptrunc double %76 to float
  call void @_ZN13BandSplitterRIfE4initEf(ptr noundef nonnull align 4 dereferenceable(16) %75, float noundef %77)
  %78 = load i64, ptr %18, align 8, !tbaa !19
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al4spanIKfLm4EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef %78)
  %80 = load float, ptr %79, align 4, !tbaa !11
  %81 = getelementptr inbounds %struct.DirectHrtfState, ptr %52, i32 0, i32 3
  %82 = load i64, ptr %17, align 8, !tbaa !19
  %83 = call noundef nonnull align 16 dereferenceable(2080) ptr @_ZN2al9FlexArrayI16HrtfChannelStateLm16EEixEm(ptr noundef nonnull align 16 dereferenceable(2096) %81, i64 noundef %82) #12
  %84 = getelementptr inbounds %struct.HrtfChannelState, ptr %83, i32 0, i32 2
  store float %80, ptr %84, align 16, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #12
  br label %85

85:                                               ; preds = %66
  %86 = load i64, ptr %17, align 8, !tbaa !19
  %87 = add i64 %86, 1
  store i64 %87, ptr %17, align 8, !tbaa !19
  br label %60, !llvm.loop !27

88:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #12
  store i32 256, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #12
  store i32 0, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #12
  call void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #12
  %89 = call noundef i64 @_ZNK2al4spanIK12AngularPointLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #12
  invoke void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %89)
          to label %90 unwind label %123

90:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #12
  %91 = getelementptr inbounds %class.anon.17, ptr %24, i32 0, i32 0
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %92, ptr %91, align 8, !tbaa !29
  %93 = getelementptr inbounds %class.anon.17, ptr %24, i32 0, i32 1
  store ptr %20, ptr %93, align 8, !tbaa !5
  %94 = getelementptr inbounds %class.anon.17, ptr %24, i32 0, i32 2
  store ptr %19, ptr %94, align 8, !tbaa !5
  %95 = call noundef ptr @_ZNK2al4spanIK12AngularPointLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #12
  %96 = call noundef ptr @_ZNK2al4spanIK12AngularPointLm18446744073709551615EE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #12
  %97 = invoke ptr @_ZSt13back_inserterISt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS6_ISA_Lm4EEEE15ImpulseResponseNS5_9allocatorISE_Lm8EEEEESt20back_insert_iteratorIT_ERSJ_(ptr noundef nonnull align 8 dereferenceable(24) %21)
          to label %98 unwind label %127

98:                                               ; preds = %90
  %99 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %25, i32 0, i32 0
  store ptr %97, ptr %99, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %24, i64 24, i1 false), !tbaa.struct !31
  %100 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %25, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8
  %102 = invoke ptr @"_ZSt9transformIPK12AngularPointSt20back_insert_iteratorISt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIS1_Lm18446744073709551615EEEPA16_KffNSA_ISC_Lm4EEEE15ImpulseResponseNS9_9allocatorISG_Lm8EEEEEZNS5_5buildES8_jSB_SE_fSF_E3$_0ET0_T_SN_SM_T1_"(ptr noundef %95, ptr noundef %96, ptr %101, ptr noundef byval(%class.anon.17) align 8 %26)
          to label %103 unwind label %127

103:                                              ; preds = %98
  %104 = getelementptr inbounds %"class.std::back_insert_iterator", ptr %27, i32 0, i32 0
  store ptr %102, ptr %104, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #12
  br label %105

105:                                              ; preds = %103
  %106 = load i32, ptr @gLogLevel, align 4, !tbaa !32
  %107 = icmp sge i32 %106, 3
  %108 = xor i1 %107, true
  %109 = xor i1 %108, true
  %110 = zext i1 %109 to i64
  %111 = call i64 @llvm.expect.i64(i64 %110, i64 0)
  %112 = icmp ne i64 %111, 0
  br i1 %112, label %113, label %131

113:                                              ; preds = %105
  %114 = load ptr, ptr @gLogFile, align 8, !tbaa !5
  %115 = load i32, ptr %19, align 4, !tbaa !9
  %116 = uitofp i32 %115 to double
  %117 = fdiv double %116, 4.000000e+00
  %118 = load i32, ptr %20, align 4, !tbaa !9
  %119 = uitofp i32 %118 to double
  %120 = fdiv double %119, 4.000000e+00
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str, double noundef %117, double noundef %120, i32 noundef %121) #12
  br label %131

123:                                              ; preds = %88
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %22, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %23, align 4
  br label %330

127:                                              ; preds = %98, %90
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %22, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %23, align 4
  br label %329

131:                                              ; preds = %113, %105
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #12
  %134 = getelementptr inbounds %struct.DirectHrtfState, ptr %52, i32 0, i32 3
  %135 = call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %134) #12
  %136 = call noundef i64 @_Z21AmbiChannelsFromOrderm(i64 noundef 1) #12
  %137 = icmp ugt i64 %135, %136
  %138 = zext i1 %137 to i8
  store i8 %138, ptr %29, align 1, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 24, ptr %30) #12
  %139 = getelementptr inbounds %struct.DirectHrtfState, ptr %52, i32 0, i32 3
  %140 = call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %139) #12
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #12
  invoke void @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %140, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %141 unwind label %147

141:                                              ; preds = %133
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #12
  store i32 0, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #12
  store i64 0, ptr %32, align 8, !tbaa !19
  br label %142

142:                                              ; preds = %270, %141
  %143 = load i64, ptr %32, align 8, !tbaa !19
  %144 = call noundef i64 @_ZNK2al4spanIK12AngularPointLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #12
  %145 = icmp ult i64 %143, %144
  br i1 %145, label %151, label %146

146:                                              ; preds = %142
  store i32 7, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #12
  br label %273

147:                                              ; preds = %133
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %22, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #12
  br label %328

151:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #12
  %152 = load i64, ptr %32, align 8, !tbaa !19
  %153 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %152) #12
  %154 = getelementptr inbounds %struct.ImpulseResponse, ptr %153, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %154, i64 8, i1 false), !tbaa.struct !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #12
  %155 = load i8, ptr %29, align 1, !tbaa !34, !range !37, !noundef !38
  %156 = trunc i8 %155 to i1
  br i1 %156, label %157, label %167

157:                                              ; preds = %151
  %158 = load i64, ptr %32, align 8, !tbaa !19
  %159 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %158) #12
  %160 = getelementptr inbounds %struct.ImpulseResponse, ptr %159, i32 0, i32 1
  %161 = load i32, ptr %160, align 8, !tbaa !39
  %162 = load i64, ptr %32, align 8, !tbaa !19
  %163 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %162) #12
  %164 = getelementptr inbounds %struct.ImpulseResponse, ptr %163, i32 0, i32 2
  %165 = load i32, ptr %164, align 4, !tbaa !42
  %166 = call noundef i32 @_Z4minujj(i32 noundef %161, i32 noundef %165) #12
  br label %169

167:                                              ; preds = %151
  %168 = load i32, ptr %19, align 4, !tbaa !9
  br label %169

169:                                              ; preds = %167, %157
  %170 = phi i32 [ %166, %157 ], [ %168, %167 ]
  store i32 %170, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #12
  %171 = load i64, ptr %32, align 8, !tbaa !19
  %172 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %171) #12
  %173 = getelementptr inbounds %struct.ImpulseResponse, ptr %172, i32 0, i32 1
  %174 = load i32, ptr %173, align 8, !tbaa !39
  %175 = load i32, ptr %35, align 4, !tbaa !9
  %176 = sub i32 %174, %175
  %177 = call noundef i32 @"_ZZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEEENK3$_1clEj"(ptr noundef nonnull align 1 dereferenceable(1) %28, i32 noundef %176) #12
  store i32 %177, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #12
  %178 = load i64, ptr %32, align 8, !tbaa !19
  %179 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %178) #12
  %180 = getelementptr inbounds %struct.ImpulseResponse, ptr %179, i32 0, i32 2
  %181 = load i32, ptr %180, align 4, !tbaa !42
  %182 = load i32, ptr %35, align 4, !tbaa !9
  %183 = sub i32 %181, %182
  %184 = call noundef i32 @"_ZZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEEENK3$_1clEj"(ptr noundef nonnull align 1 dereferenceable(1) %28, i32 noundef %183) #12
  store i32 %184, ptr %37, align 4, !tbaa !9
  %185 = load i32, ptr %20, align 4, !tbaa !9
  %186 = load i64, ptr %32, align 8, !tbaa !19
  %187 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %186) #12
  %188 = getelementptr inbounds %struct.ImpulseResponse, ptr %187, i32 0, i32 1
  %189 = load i32, ptr %188, align 8, !tbaa !39
  %190 = load i64, ptr %32, align 8, !tbaa !19
  %191 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %190) #12
  %192 = getelementptr inbounds %struct.ImpulseResponse, ptr %191, i32 0, i32 2
  %193 = load i32, ptr %192, align 4, !tbaa !42
  %194 = call noundef i32 @_Z4maxujj(i32 noundef %189, i32 noundef %193) #12
  %195 = load i32, ptr %35, align 4, !tbaa !9
  %196 = sub i32 %194, %195
  %197 = call noundef i32 @_Z4maxujj(i32 noundef %185, i32 noundef %196) #12
  store i32 %197, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #12
  store i64 0, ptr %38, align 8, !tbaa !19
  br label %198

198:                                              ; preds = %266, %169
  %199 = load i64, ptr %38, align 8, !tbaa !19
  %200 = getelementptr inbounds %struct.DirectHrtfState, ptr %52, i32 0, i32 3
  %201 = call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %200) #12
  %202 = icmp ult i64 %199, %201
  br i1 %202, label %204, label %203

203:                                              ; preds = %198
  store i32 10, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #12
  br label %269

204:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #12
  %205 = load ptr, ptr %14, align 8, !tbaa !5
  %206 = load i64, ptr %32, align 8, !tbaa !19
  %207 = getelementptr inbounds [16 x float], ptr %205, i64 %206
  %208 = load i64, ptr %38, align 8, !tbaa !19
  %209 = getelementptr inbounds [16 x float], ptr %207, i64 0, i64 %208
  %210 = load float, ptr %209, align 4, !tbaa !11
  %211 = fpext float %210 to double
  store double %211, ptr %39, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #12
  %212 = load i32, ptr %36, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  %214 = load i32, ptr %37, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = call noundef i64 @_Z4maxzmm(i64 noundef %213, i64 noundef %215) #12
  %217 = sub i64 128, %216
  store i64 %217, ptr %40, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #12
  %218 = load i32, ptr %36, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  store i64 %219, ptr %41, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #12
  %220 = load i32, ptr %37, align 4, !tbaa !9
  %221 = zext i32 %220 to i64
  store i64 %221, ptr %42, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #12
  store i64 0, ptr %43, align 8, !tbaa !19
  br label %222

222:                                              ; preds = %258, %204
  %223 = load i64, ptr %43, align 8, !tbaa !19
  %224 = load i64, ptr %40, align 8, !tbaa !19
  %225 = icmp ult i64 %223, %224
  br i1 %225, label %227, label %226

226:                                              ; preds = %222
  store i32 13, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #12
  br label %265

227:                                              ; preds = %222
  %228 = load i64, ptr %43, align 8, !tbaa !19
  %229 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNK2al4spanIKSt5arrayIfLm2EELm128EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %34, i64 noundef %228)
          to label %230 unwind label %261

230:                                              ; preds = %227
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %229, i64 noundef 0) #12
  %232 = load float, ptr %231, align 4, !tbaa !11
  %233 = fpext float %232 to double
  %234 = load double, ptr %39, align 8, !tbaa !17
  %235 = load i64, ptr %38, align 8, !tbaa !19
  %236 = call noundef nonnull align 8 dereferenceable(2048) ptr @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %235) #12
  %237 = load i64, ptr %41, align 8, !tbaa !19
  %238 = add i64 %237, 1
  store i64 %238, ptr %41, align 8, !tbaa !19
  %239 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIS_IdLm2EELm128EEixEm(ptr noundef nonnull align 8 dereferenceable(2048) %236, i64 noundef %237) #12
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %239, i64 noundef 0) #12
  %241 = load double, ptr %240, align 8, !tbaa !17
  %242 = call double @llvm.fmuladd.f64(double %233, double %234, double %241)
  store double %242, ptr %240, align 8, !tbaa !17
  %243 = load i64, ptr %43, align 8, !tbaa !19
  %244 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNK2al4spanIKSt5arrayIfLm2EELm128EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %34, i64 noundef %243)
          to label %245 unwind label %261

245:                                              ; preds = %230
  %246 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %244, i64 noundef 1) #12
  %247 = load float, ptr %246, align 4, !tbaa !11
  %248 = fpext float %247 to double
  %249 = load double, ptr %39, align 8, !tbaa !17
  %250 = load i64, ptr %38, align 8, !tbaa !19
  %251 = call noundef nonnull align 8 dereferenceable(2048) ptr @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %250) #12
  %252 = load i64, ptr %42, align 8, !tbaa !19
  %253 = add i64 %252, 1
  store i64 %253, ptr %42, align 8, !tbaa !19
  %254 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIS_IdLm2EELm128EEixEm(ptr noundef nonnull align 8 dereferenceable(2048) %251, i64 noundef %252) #12
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %254, i64 noundef 1) #12
  %256 = load double, ptr %255, align 8, !tbaa !17
  %257 = call double @llvm.fmuladd.f64(double %248, double %249, double %256)
  store double %257, ptr %255, align 8, !tbaa !17
  br label %258

258:                                              ; preds = %245
  %259 = load i64, ptr %43, align 8, !tbaa !19
  %260 = add i64 %259, 1
  store i64 %260, ptr %43, align 8, !tbaa !19
  br label %222, !llvm.loop !43

261:                                              ; preds = %230, %227
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %22, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #12
  br label %327

265:                                              ; preds = %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #12
  br label %266

266:                                              ; preds = %265
  %267 = load i64, ptr %38, align 8, !tbaa !19
  %268 = add i64 %267, 1
  store i64 %268, ptr %38, align 8, !tbaa !19
  br label %198, !llvm.loop !44

269:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #12
  br label %270

270:                                              ; preds = %269
  %271 = load i64, ptr %32, align 8, !tbaa !19
  %272 = add i64 %271, 1
  store i64 %272, ptr %32, align 8, !tbaa !19
  br label %142, !llvm.loop !45

273:                                              ; preds = %146
  call void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #12
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #12
  store i64 0, ptr %44, align 8, !tbaa !19
  br label %274

274:                                              ; preds = %294, %273
  %275 = load i64, ptr %44, align 8, !tbaa !19
  %276 = getelementptr inbounds %struct.DirectHrtfState, ptr %52, i32 0, i32 3
  %277 = call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %276) #12
  %278 = icmp ult i64 %275, %277
  br i1 %278, label %280, label %279

279:                                              ; preds = %274
  store i32 16, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #12
  br label %301

280:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 1, ptr %45) #12
  %281 = load i64, ptr %44, align 8, !tbaa !19
  %282 = call noundef nonnull align 8 dereferenceable(2048) ptr @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %281) #12
  %283 = call noundef ptr @_ZNKSt5arrayIS_IdLm2EELm128EE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(2048) %282) #12
  %284 = load i64, ptr %44, align 8, !tbaa !19
  %285 = call noundef nonnull align 8 dereferenceable(2048) ptr @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %284) #12
  %286 = call noundef ptr @_ZNKSt5arrayIS_IdLm2EELm128EE4cendEv(ptr noundef nonnull align 8 dereferenceable(2048) %285) #12
  %287 = getelementptr inbounds %struct.DirectHrtfState, ptr %52, i32 0, i32 3
  %288 = load i64, ptr %44, align 8, !tbaa !19
  %289 = call noundef nonnull align 16 dereferenceable(2080) ptr @_ZN2al9FlexArrayI16HrtfChannelStateLm16EEixEm(ptr noundef nonnull align 16 dereferenceable(2096) %287, i64 noundef %288) #12
  %290 = getelementptr inbounds %struct.HrtfChannelState, ptr %289, i32 0, i32 4
  %291 = call noundef ptr @_ZNSt5arrayIS_IfLm2EELm128EE5beginEv(ptr noundef nonnull align 4 dereferenceable(1024) %290) #13
  %292 = invoke noundef ptr @"_ZSt9transformIPKSt5arrayIdLm2EEPS0_IfLm2EEZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNSB_ISF_Lm4EEEE3$_2ET0_T_SL_SK_T1_"(ptr noundef %283, ptr noundef %286, ptr noundef %291)
          to label %293 unwind label %297

293:                                              ; preds = %280
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #12
  br label %294

294:                                              ; preds = %293
  %295 = load i64, ptr %44, align 8, !tbaa !19
  %296 = add i64 %295, 1
  store i64 %296, ptr %44, align 8, !tbaa !19
  br label %274, !llvm.loop !46

297:                                              ; preds = %280
  %298 = landingpad { ptr, i32 }
          cleanup
  %299 = extractvalue { ptr, i32 } %298, 0
  store ptr %299, ptr %22, align 8
  %300 = extractvalue { ptr, i32 } %298, 1
  store i32 %300, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %45) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #12
  br label %327

301:                                              ; preds = %279
  call void @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #12
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #12
  %302 = load i32, ptr %20, align 4, !tbaa !9
  %303 = call noundef i32 @"_ZZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEEENK3$_1clEj"(ptr noundef nonnull align 1 dereferenceable(1) %28, i32 noundef %302) #12
  %304 = load i32, ptr %13, align 4, !tbaa !9
  %305 = add i32 %303, %304
  %306 = call noundef i32 @_Z4minujj(i32 noundef %305, i32 noundef 128) #12
  store i32 %306, ptr %47, align 4, !tbaa !9
  br label %307

307:                                              ; preds = %301
  %308 = load i32, ptr @gLogLevel, align 4, !tbaa !32
  %309 = icmp sge i32 %308, 3
  %310 = xor i1 %309, true
  %311 = xor i1 %310, true
  %312 = zext i1 %311 to i64
  %313 = call i64 @llvm.expect.i64(i64 %312, i64 0)
  %314 = icmp ne i64 %313, 0
  br i1 %314, label %315, label %322

315:                                              ; preds = %307
  %316 = load ptr, ptr @gLogFile, align 8, !tbaa !5
  %317 = load i32, ptr %20, align 4, !tbaa !9
  %318 = uitofp i32 %317 to double
  %319 = fdiv double %318, 4.000000e+00
  %320 = load i32, ptr %47, align 4, !tbaa !9
  %321 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %316, ptr noundef @.str.2, double noundef %319, i32 noundef %320) #12
  br label %322

322:                                              ; preds = %315, %307
  br label %323

323:                                              ; preds = %322
  br label %324

324:                                              ; preds = %323
  %325 = load i32, ptr %47, align 4, !tbaa !9
  %326 = getelementptr inbounds %struct.DirectHrtfState, ptr %52, i32 0, i32 1
  store i32 %325, ptr %326, align 16, !tbaa !47
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #12
  call void @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #12
  call void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #12
  ret void

327:                                              ; preds = %297, %261
  call void @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #12
  br label %328

328:                                              ; preds = %327, %147
  call void @llvm.lifetime.end.p0(i64 24, ptr %30) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #12
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #12
  br label %329

329:                                              ; preds = %328, %127
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #12
  br label %330

330:                                              ; preds = %329, %123
  call void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #12
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #12
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #12
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #12
  br label %331

331:                                              ; preds = %330
  %332 = load ptr, ptr %22, align 8
  %333 = load i32, ptr %23, align 4
  %334 = insertvalue { ptr, i32 } poison, ptr %332, 0
  %335 = insertvalue { ptr, i32 } %334, i32 %333, 1
  resume { ptr, i32 } %335
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(2080) ptr @_ZN2al9FlexArrayI16HrtfChannelStateLm16EEixEm(ptr noundef nonnull align 16 dereferenceable(2096), i64 noundef) #4 align 2

declare void @_ZN13BandSplitterRIfE4initEf(ptr noundef nonnull align 4 dereferenceable(16), float noundef) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIPK12AngularPointSt20back_insert_iteratorISt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIS1_Lm18446744073709551615EEEPA16_KffNSA_ISC_Lm4EEEE15ImpulseResponseNS9_9allocatorISG_Lm8EEEEEZNS5_5buildES8_jSB_SE_fSF_E3$_0ET0_T_SN_SM_T1_"(ptr noundef, ptr noundef, ptr, ptr noundef byval(%class.anon.17) align 8) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @_ZSt13back_inserterISt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS6_ISA_Lm4EEEE15ImpulseResponseNS5_9allocatorISE_Lm8EEEEESt20back_insert_iteratorIT_ERSJ_(ptr noundef nonnull align 8 dereferenceable(24)) #6

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #8

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z21AmbiChannelsFromOrderm(i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEEENK3$_1clEj"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4maxujj(i32 noundef, i32 noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z4maxzmm(i64 noundef, i64 noundef) #1

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(2048) ptr @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #4 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #9

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZSt9transformIPKSt5arrayIdLm2EEPS0_IfLm2EEZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNSB_ISF_Lm4EEEE3$_2ET0_T_SL_SK_T1_"(ptr noundef, ptr noundef, ptr noundef) #10

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

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

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIS_IfLm2EELm128EE5beginEv(ptr noundef nonnull align 4 dereferenceable(1024)) #11 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = { "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 = { 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 #7 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #8 = { 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { mustprogress nounwind 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 #11 = { 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 #12 = { nounwind }
attributes #13 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !10, i64 4}
!14 = !{!"_ZTS9HrtfStore", !15, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!15 = !{!"_ZTSSt6atomicIjE", !16, i64 0}
!16 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !12, i64 1040}
!23 = !{!"_ZTS16HrtfChannelState", !24, i64 0, !25, i64 1024, !12, i64 1040, !26, i64 1056}
!24 = !{!"_ZTSSt5arrayIfLm256EE", !7, i64 0}
!25 = !{!"_ZTS13BandSplitterRIfE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12}
!26 = !{!"_ZTSSt5arrayIS_IfLm2EELm128EE", !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!30, !6, i64 0}
!30 = !{!"_ZTSZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEEE3$_0", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{i64 0, i64 8, !5, i64 8, i64 8, !5, i64 16, i64 8, !5}
!32 = !{!33, !33, i64 0}
!33 = !{!"_ZTS8LogLevel", !7, i64 0}
!34 = !{!35, !35, i64 0}
!35 = !{!"bool", !7, i64 0}
!36 = !{i64 0, i64 8, !5}
!37 = !{i8 0, i8 2}
!38 = !{}
!39 = !{!40, !10, i64 8}
!40 = !{!"_ZTSZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEEE15ImpulseResponse", !41, i64 0, !10, i64 8, !10, i64 12}
!41 = !{!"_ZTSN2al4spanIKSt5arrayIfLm2EELm128EEE", !6, i64 0}
!42 = !{!40, !10, i64 12}
!43 = distinct !{!43, !28}
!44 = distinct !{!44, !28}
!45 = distinct !{!45, !28}
!46 = distinct !{!46, !28}
!47 = !{!48, !10, i64 5120}
!48 = !{!"_ZTS15DirectHrtfState", !49, i64 0, !10, i64 5120, !50, i64 5136}
!49 = !{!"_ZTSSt5arrayIfLm1280EE", !7, i64 0}
!50 = !{!"_ZTSN2al9FlexArrayI16HrtfChannelStateLm16EEE", !51, i64 0}
!51 = !{!"_ZTSN2al16FlexArrayStorageI16HrtfChannelStateLm16ELb1EEE", !20, i64 0, !7, i64 16}


; 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.10" = type { ptr, ptr }
%"class.al::span.11" = type { ptr }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<ImpulseResponse, al::allocator<ImpulseResponse, 8>>::_Vector_impl" }
%"struct.std::_Vector_base<ImpulseResponse, al::allocator<ImpulseResponse, 8>>::_Vector_impl" = type { %"struct.std::_Vector_base<ImpulseResponse, al::allocator<ImpulseResponse, 8>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ImpulseResponse, al::allocator<ImpulseResponse, 8>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.anon.17 = type { ptr, ptr, ptr }
%class.anon.18 = type { i8 }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<std::array<std::array<double, 2>, 128>, al::allocator<std::array<std::array<double, 2>, 128>, 8>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<std::array<double, 2>, 128>, al::allocator<std::array<std::array<double, 2>, 128>, 8>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<std::array<double, 2>, 128>, al::allocator<std::array<std::array<double, 2>, 128>, 8>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<std::array<double, 2>, 128>, al::allocator<std::array<std::array<double, 2>, 128>, 8>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.al::allocator.21" = type { i8 }
%"class.al::span.23" = type { ptr }

@gLogLevel = external local_unnamed_addr global i32, align 4
@gLogFile = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [64 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4minujj(i32 noundef, i32 noundef) local_unnamed_addr #1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEE(ptr noundef nonnull align 16 dereferenceable(7232) %0, ptr noundef %1, i32 noundef %2, ptr %3, ptr %4, ptr nocapture noundef readonly %5, float noundef %6, i64 %7) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %9 = alloca %"class.al::span.10", align 8
  %10 = alloca %"class.al::span.11", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector.13", align 8
  %14 = alloca %class.anon.17, align 8
  %15 = alloca %class.anon.18, align 1
  %16 = alloca %"class.std::vector.19", align 8
  %17 = alloca %"struct.al::allocator.21", align 1
  %18 = alloca %"class.al::span.23", align 8
  store ptr %3, ptr %9, align 8
  %19 = getelementptr inbounds i8, ptr %9, i64 8
  store ptr %4, ptr %19, align 8
  %20 = inttoptr i64 %7 to ptr
  store ptr %20, ptr %10, align 8
  %21 = getelementptr inbounds i8, ptr %1, i64 4
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 5136
  %24 = tail call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %23) #10
  %.not = icmp eq i64 %24, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %8
  %25 = fpext float %6 to double
  %26 = uitofp i32 %22 to double
  %27 = fdiv double %25, %26
  %28 = fptrunc double %27 to float
  br label %30

._crit_edge:                                      ; preds = %30, %8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #10
  store i32 256, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #10
  store i32 0, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #10
  call void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #10
  %29 = call noundef i64 @_ZNK2al4spanIK12AngularPointLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  invoke void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %29)
          to label %44 unwind label %62

30:                                               ; preds = %.lr.ph, %30
  %.068 = phi i64 [ 0, %.lr.ph ], [ %41, %30 ]
  %31 = call noundef nonnull align 1 dereferenceable(16) ptr @_ZN9AmbiIndex16OrderFromChannelEv() #10
  %32 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm16EEixEm(ptr noundef nonnull align 1 dereferenceable(16) %31, i64 noundef %.068) #10
  %33 = load i8, ptr %32, align 1, !tbaa !14
  %34 = zext i8 %33 to i64
  %35 = call noundef nonnull align 16 dereferenceable(2080) ptr @_ZN2al9FlexArrayI16HrtfChannelStateLm16EEixEm(ptr noundef nonnull align 16 dereferenceable(2096) %23, i64 noundef %.068) #10
  %36 = getelementptr inbounds i8, ptr %35, i64 1024
  call void @_ZN13BandSplitterRIfE4initEf(ptr noundef nonnull align 4 dereferenceable(16) %36, float noundef %28)
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al4spanIKfLm4EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %10, i64 noundef %34)
  %38 = load float, ptr %37, align 4, !tbaa !15
  %39 = call noundef nonnull align 16 dereferenceable(2080) ptr @_ZN2al9FlexArrayI16HrtfChannelStateLm16EEixEm(ptr noundef nonnull align 16 dereferenceable(2096) %23, i64 noundef %.068) #10
  %40 = getelementptr inbounds i8, ptr %39, i64 1040
  store float %38, ptr %40, align 16, !tbaa !17
  %41 = add nuw i64 %.068, 1
  %42 = call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %23) #10
  %43 = icmp ult i64 %41, %42
  br i1 %43, label %30, label %._crit_edge, !llvm.loop !22

44:                                               ; preds = %._crit_edge
  %45 = call noundef ptr @_ZNK2al4spanIK12AngularPointLm18446744073709551615EE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  %46 = call noundef ptr @_ZNK2al4spanIK12AngularPointLm18446744073709551615EE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  %47 = invoke ptr @_ZSt13back_inserterISt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS6_ISA_Lm4EEEE15ImpulseResponseNS5_9allocatorISE_Lm8EEEEESt20back_insert_iteratorIT_ERSJ_(ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %48 unwind label %64

48:                                               ; preds = %44
  store ptr %1, ptr %14, align 8, !tbaa !24
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 8
  store ptr %12, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !24
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %14, i64 16
  store ptr %11, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !24
  %49 = invoke ptr @"_ZSt9transformIPK12AngularPointSt20back_insert_iteratorISt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIS1_Lm18446744073709551615EEEPA16_KffNSA_ISC_Lm4EEEE15ImpulseResponseNS9_9allocatorISG_Lm8EEEEEZNS5_5buildES8_jSB_SE_fSF_E3$_0ET0_T_SN_SM_T1_"(ptr noundef %45, ptr noundef %46, ptr %47, ptr noundef nonnull byval(%class.anon.17) align 8 %14)
          to label %50 unwind label %64

50:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #10
  %51 = load i32, ptr @gLogLevel, align 4, !tbaa !25
  %52 = icmp sgt i32 %51, 2
  br i1 %52, label %53, label %66, !prof !27

53:                                               ; preds = %50
  %54 = load ptr, ptr @gLogFile, align 8, !tbaa !24
  %55 = load i32, ptr %11, align 4, !tbaa !13
  %56 = uitofp i32 %55 to double
  %57 = fmul double %56, 2.500000e-01
  %58 = load i32, ptr %12, align 4, !tbaa !13
  %59 = uitofp i32 %58 to double
  %60 = fmul double %59, 2.500000e-01
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str, double noundef %57, double noundef %60, i32 noundef %2) #10
  br label %66

62:                                               ; preds = %._crit_edge
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %171

64:                                               ; preds = %48, %44
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %171

66:                                               ; preds = %53, %50
  %67 = call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %23) #10
  %68 = call noundef i64 @_Z21AmbiChannelsFromOrderm(i64 noundef 1) #10
  %69 = icmp ugt i64 %67, %68
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #10
  %70 = call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %23) #10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #10
  invoke void @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEEC2EmRKS5_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %70, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %71 unwind label %74

71:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #10
  store i32 0, ptr %12, align 4, !tbaa !13
  %72 = call noundef i64 @_ZNK2al4spanIK12AngularPointLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  %.not87 = icmp eq i64 %72, 0
  br i1 %.not87, label %._crit_edge82, label %.lr.ph81

._crit_edge82:                                    ; preds = %._crit_edge78, %71
  call void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #10
  %73 = call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %23) #10
  %.not90 = icmp eq i64 %73, 0
  br i1 %.not90, label %._crit_edge86, label %.lr.ph85

74:                                               ; preds = %66
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #10
  br label %171

.lr.ph81:                                         ; preds = %71, %._crit_edge78
  %.06479 = phi i64 [ %113, %._crit_edge78 ], [ 0, %71 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #10
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %.06479) #10
  %77 = load i64, ptr %76, align 8, !tbaa !24
  store i64 %77, ptr %18, align 8, !tbaa !24
  br i1 %69, label %78, label %86

78:                                               ; preds = %.lr.ph81
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %.06479) #10
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = load i32, ptr %80, align 8, !tbaa !28
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %.06479) #10
  %83 = getelementptr inbounds i8, ptr %82, i64 12
  %84 = load i32, ptr %83, align 4, !tbaa !31
  %85 = call noundef i32 @_Z4minujj(i32 noundef %81, i32 noundef %84) #10
  br label %88

86:                                               ; preds = %.lr.ph81
  %87 = load i32, ptr %11, align 4, !tbaa !13
  br label %88

88:                                               ; preds = %86, %78
  %89 = phi i32 [ %85, %78 ], [ %87, %86 ]
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %.06479) #10
  %91 = getelementptr inbounds i8, ptr %90, i64 8
  %92 = load i32, ptr %91, align 8, !tbaa !28
  %93 = sub i32 %92, %89
  %94 = call noundef i32 @"_ZZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEEENK3$_1clEj"(ptr noundef nonnull align 1 dereferenceable(1) %15, i32 noundef %93) #10
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %.06479) #10
  %96 = getelementptr inbounds i8, ptr %95, i64 12
  %97 = load i32, ptr %96, align 4, !tbaa !31
  %98 = sub i32 %97, %89
  %99 = call noundef i32 @"_ZZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEEENK3$_1clEj"(ptr noundef nonnull align 1 dereferenceable(1) %15, i32 noundef %98) #10
  %100 = load i32, ptr %12, align 4, !tbaa !13
  %101 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %.06479) #10
  %102 = getelementptr inbounds i8, ptr %101, i64 8
  %103 = load i32, ptr %102, align 8, !tbaa !28
  %104 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %.06479) #10
  %105 = getelementptr inbounds i8, ptr %104, i64 12
  %106 = load i32, ptr %105, align 4, !tbaa !31
  %107 = call noundef i32 @_Z4maxujj(i32 noundef %103, i32 noundef %106) #10
  %108 = sub i32 %107, %89
  %109 = call noundef i32 @_Z4maxujj(i32 noundef %100, i32 noundef %108) #10
  store i32 %109, ptr %12, align 4, !tbaa !13
  %110 = call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %23) #10
  %.not88 = icmp eq i64 %110, 0
  br i1 %.not88, label %._crit_edge78, label %.lr.ph77

.lr.ph77:                                         ; preds = %88
  %111 = zext i32 %94 to i64
  %112 = zext i32 %99 to i64
  br label %116

._crit_edge78:                                    ; preds = %._crit_edge74, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #10
  %113 = add nuw i64 %.06479, 1
  %114 = call noundef i64 @_ZNK2al4spanIK12AngularPointLm18446744073709551615EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %9) #10
  %115 = icmp ult i64 %113, %114
  br i1 %115, label %.lr.ph81, label %._crit_edge82, !llvm.loop !32

116:                                              ; preds = %.lr.ph77, %._crit_edge74
  %.06575 = phi i64 [ 0, %.lr.ph77 ], [ %122, %._crit_edge74 ]
  %117 = getelementptr inbounds [16 x float], ptr %5, i64 %.06479, i64 %.06575
  %118 = load float, ptr %117, align 4, !tbaa !15
  %119 = fpext float %118 to double
  %120 = call noundef i64 @_Z4maxzmm(i64 noundef %111, i64 noundef %112) #10
  %121 = sub i64 128, %120
  %.not89 = icmp eq i64 %120, 128
  br i1 %.not89, label %._crit_edge74, label %.lr.ph73

._crit_edge74:                                    ; preds = %.lr.ph73, %116
  %122 = add nuw i64 %.06575, 1
  %123 = call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %23) #10
  %124 = icmp ult i64 %122, %123
  br i1 %124, label %116, label %._crit_edge78, !llvm.loop !33

.lr.ph73:                                         ; preds = %116, %.lr.ph73
  %.05971 = phi i64 [ %145, %.lr.ph73 ], [ 0, %116 ]
  %.06070 = phi i64 [ %140, %.lr.ph73 ], [ %112, %116 ]
  %.06169 = phi i64 [ %130, %.lr.ph73 ], [ %111, %116 ]
  %125 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK2al4spanIKSt5arrayIfLm2EELm128EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef %.05971)
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %125, i64 noundef 0) #10
  %127 = load float, ptr %126, align 4, !tbaa !15
  %128 = fpext float %127 to double
  %129 = call noundef nonnull align 8 dereferenceable(2048) ptr @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %.06575) #10
  %130 = add i64 %.06169, 1
  %131 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIS_IdLm2EELm128EEixEm(ptr noundef nonnull align 8 dereferenceable(2048) %129, i64 noundef %.06169) #10
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %131, i64 noundef 0) #10
  %133 = load double, ptr %132, align 8, !tbaa !34
  %134 = call double @llvm.fmuladd.f64(double %128, double %119, double %133)
  store double %134, ptr %132, align 8, !tbaa !34
  %135 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNK2al4spanIKSt5arrayIfLm2EELm128EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef %.05971)
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %135, i64 noundef 1) #10
  %137 = load float, ptr %136, align 4, !tbaa !15
  %138 = fpext float %137 to double
  %139 = call noundef nonnull align 8 dereferenceable(2048) ptr @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %.06575) #10
  %140 = add i64 %.06070, 1
  %141 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayIS_IdLm2EELm128EEixEm(ptr noundef nonnull align 8 dereferenceable(2048) %139, i64 noundef %.06070) #10
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5arrayIdLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(16) %141, i64 noundef 1) #10
  %143 = load double, ptr %142, align 8, !tbaa !34
  %144 = call double @llvm.fmuladd.f64(double %138, double %119, double %143)
  store double %144, ptr %142, align 8, !tbaa !34
  %145 = add nuw i64 %.05971, 1
  %exitcond.not = icmp eq i64 %145, %121
  br i1 %exitcond.not, label %._crit_edge74, label %.lr.ph73, !llvm.loop !36

._crit_edge86:                                    ; preds = %.lr.ph85, %._crit_edge82
  call void @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  %146 = load i32, ptr %12, align 4, !tbaa !13
  %147 = call noundef i32 @"_ZZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEEENK3$_1clEj"(ptr noundef nonnull align 1 dereferenceable(1) %15, i32 noundef %146) #10
  %148 = add i32 %147, %2
  %149 = call noundef i32 @_Z4minujj(i32 noundef %148, i32 noundef 128) #10
  %150 = load i32, ptr @gLogLevel, align 4, !tbaa !25
  %151 = icmp sgt i32 %150, 2
  br i1 %151, label %163, label %169, !prof !27

.lr.ph85:                                         ; preds = %._crit_edge82, %.lr.ph85
  %.05883 = phi i64 [ %160, %.lr.ph85 ], [ 0, %._crit_edge82 ]
  %152 = call noundef nonnull align 8 dereferenceable(2048) ptr @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %.05883) #10
  %153 = call noundef ptr @_ZNKSt5arrayIS_IdLm2EELm128EE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(2048) %152) #10
  %154 = call noundef nonnull align 8 dereferenceable(2048) ptr @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %.05883) #10
  %155 = call noundef ptr @_ZNKSt5arrayIS_IdLm2EELm128EE4cendEv(ptr noundef nonnull align 8 dereferenceable(2048) %154) #10
  %156 = call noundef nonnull align 16 dereferenceable(2080) ptr @_ZN2al9FlexArrayI16HrtfChannelStateLm16EEixEm(ptr noundef nonnull align 16 dereferenceable(2096) %23, i64 noundef %.05883) #10
  %157 = getelementptr inbounds i8, ptr %156, i64 1056
  %158 = call noundef ptr @_ZNSt5arrayIS_IfLm2EELm128EE5beginEv(ptr noundef nonnull align 4 dereferenceable(1024) %157) #11
  %159 = call noundef ptr @"_ZSt9transformIPKSt5arrayIdLm2EEPS0_IfLm2EEZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNSB_ISF_Lm4EEEE3$_2ET0_T_SL_SK_T1_"(ptr noundef %153, ptr noundef %155, ptr noundef %158)
  %160 = add nuw i64 %.05883, 1
  %161 = call noundef i64 @_ZNK2al9FlexArrayI16HrtfChannelStateLm16EE4sizeEv(ptr noundef nonnull align 16 dereferenceable(2096) %23) #10
  %162 = icmp ult i64 %160, %161
  br i1 %162, label %.lr.ph85, label %._crit_edge86, !llvm.loop !37

163:                                              ; preds = %._crit_edge86
  %164 = load ptr, ptr @gLogFile, align 8, !tbaa !24
  %165 = load i32, ptr %12, align 4, !tbaa !13
  %166 = uitofp i32 %165 to double
  %167 = fmul double %166, 2.500000e-01
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %164, ptr noundef nonnull @.str.2, double noundef %167, i32 noundef %149) #10
  br label %169

169:                                              ; preds = %163, %._crit_edge86
  %170 = getelementptr inbounds i8, ptr %0, i64 5120
  store i32 %149, ptr %170, align 16, !tbaa !38
  call void @_ZNSt6vectorISt5arrayIS0_IdLm2EELm128EEN2al9allocatorIS2_Lm8EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #10
  call void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #10
  ret void

171:                                              ; preds = %64, %74, %62
  %.pn.pn = phi { ptr, i32 } [ %63, %62 ], [ %75, %74 ], [ %65, %64 ]
  call void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #10
  resume { ptr, i32 } %.pn.pn
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(2080) ptr @_ZN2al9FlexArrayI16HrtfChannelStateLm16EEixEm(ptr noundef nonnull align 16 dereferenceable(2096), i64 noundef) local_unnamed_addr #3 align 2

declare void @_ZN13BandSplitterRIfE4initEf(ptr noundef nonnull align 4 dereferenceable(16), float noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden ptr @"_ZSt9transformIPK12AngularPointSt20back_insert_iteratorISt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIS1_Lm18446744073709551615EEEPA16_KffNSA_ISC_Lm4EEEE15ImpulseResponseNS9_9allocatorISG_Lm8EEEEEZNS5_5buildES8_jSB_SE_fSF_E3$_0ET0_T_SN_SM_T1_"(ptr noundef, ptr noundef, ptr, ptr noundef byval(%class.anon.17) align 8) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @_ZSt13back_inserterISt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS6_ISA_Lm4EEEE15ImpulseResponseNS5_9allocatorISE_Lm8EEEEESt20back_insert_iteratorIT_ERSJ_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z21AmbiChannelsFromOrderm(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @"_ZZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEEENK3$_1clEj"(ptr noundef nonnull align 1 dereferenceable(1), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z4maxujj(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z4maxzmm(i64 noundef, i64 noundef) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt6vectorIZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS5_IS9_Lm4EEEE15ImpulseResponseNS4_9allocatorISD_Lm8EEEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZSt9transformIPKSt5arrayIdLm2EEPS0_IfLm2EEZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNSB_ISF_Lm4EEEE3$_2ET0_T_SL_SK_T1_"(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #8

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

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIS_IfLm2EELm128EE5beginEv(ptr noundef nonnull align 4 dereferenceable(1024)) local_unnamed_addr #9 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { 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 #6 = { nofree 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 #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { mustprogress nounwind 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 #9 = { 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 #10 = { nounwind }
attributes #11 = { 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, !9, i64 4}
!6 = !{!"_ZTS9HrtfStore", !7, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!7 = !{!"_ZTSSt6atomicIjE", !8, i64 0}
!8 = !{!"_ZTSSt13__atomic_baseIjE", !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!9, !9, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !10, i64 0}
!17 = !{!18, !16, i64 1040}
!18 = !{!"_ZTS16HrtfChannelState", !19, i64 0, !20, i64 1024, !16, i64 1040, !21, i64 1056}
!19 = !{!"_ZTSSt5arrayIfLm256EE", !10, i64 0}
!20 = !{!"_ZTS13BandSplitterRIfE", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!21 = !{!"_ZTSSt5arrayIS_IfLm2EELm128EE", !10, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!12, !12, i64 0}
!25 = !{!26, !26, i64 0}
!26 = !{!"_ZTS8LogLevel", !10, i64 0}
!27 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!28 = !{!29, !9, i64 8}
!29 = !{!"_ZTSZN15DirectHrtfState5buildEPK9HrtfStorejN2al4spanIK12AngularPointLm18446744073709551615EEEPA16_KffNS4_IS8_Lm4EEEE15ImpulseResponse", !30, i64 0, !9, i64 8, !9, i64 12}
!30 = !{!"_ZTSN2al4spanIKSt5arrayIfLm2EELm128EEE", !12, i64 0}
!31 = !{!29, !9, i64 12}
!32 = distinct !{!32, !23}
!33 = distinct !{!33, !23}
!34 = !{!35, !35, i64 0}
!35 = !{!"double", !10, i64 0}
!36 = distinct !{!36, !23}
!37 = distinct !{!37, !23}
!38 = !{!39, !9, i64 5120}
!39 = !{!"_ZTS15DirectHrtfState", !40, i64 0, !9, i64 5120, !41, i64 5136}
!40 = !{!"_ZTSSt5arrayIfLm1280EE", !10, i64 0}
!41 = !{!"_ZTSN2al9FlexArrayI16HrtfChannelStateLm16EEE", !42, i64 0}
!42 = !{!"_ZTSN2al16FlexArrayStorageI16HrtfChannelStateLm16ELb1EEE", !43, i64 0, !10, i64 16}
!43 = !{!"long", !10, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass