; 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" = type { ptr }
%"struct.(anonymous namespace)::IdxBlend" = type { i32, float }
%class.anon = type { float }
%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.HrtfStore::Field" = type { float, i8 }
%"struct.HrtfStore::Elevation" = type { i16, i16 }
%"struct.std::array" = type { [2 x i8] }
%"struct.std::array.4" = type { [128 x %"struct.std::array.5"] }
%"struct.std::array.5" = type { [2 x float] }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13GetHrtfCoeffsPK9HrtfStoreffffRSt5arrayIS2_IfLm2EELm128EEN2al4spanIjLm2EEE(ptr noundef %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, ptr noundef nonnull align 4 dereferenceable(1024) %5, ptr %6) #0 {
  %8 = alloca %"class.al::span", align 8
  %9 = alloca ptr, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca ptr, align 8
  %15 = alloca float, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca %"struct.(anonymous namespace)::IdxBlend", align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %"struct.(anonymous namespace)::IdxBlend", align 4
  %24 = alloca %"struct.(anonymous namespace)::IdxBlend", align 4
  %25 = alloca [4 x i64], align 16
  %26 = alloca [4 x float], align 16
  %27 = alloca float, align 4
  %28 = alloca ptr, align 8
  %29 = alloca float, align 4
  %30 = alloca i64, align 8
  %31 = alloca ptr, align 8
  %32 = alloca float, align 4
  %33 = alloca %class.anon, align 4
  %34 = alloca %class.anon, align 4
  %35 = getelementptr inbounds %"class.al::span", ptr %8, i32 0, i32 0
  store ptr %6, ptr %35, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store float %1, ptr %10, align 4, !tbaa !9
  store float %2, ptr %11, align 4, !tbaa !9
  store float %3, ptr %12, align 4, !tbaa !9
  store float %4, ptr %13, align 4, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %36 = load float, ptr %13, align 4, !tbaa !9
  %37 = call noundef float @_ZN2al8MathDefsIfE3TauEv() #7
  %38 = fdiv float %36, %37
  %39 = fsub float 1.000000e+00, %38
  store float %39, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.HrtfStore, ptr %40, i32 0, i32 4
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  store ptr %42, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %43 = load ptr, ptr %16, align 8, !tbaa !5
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.HrtfStore, ptr %44, i32 0, i32 3
  %46 = load i32, ptr %45, align 4, !tbaa !16
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds %"struct.HrtfStore::Field", ptr %43, i64 %47
  %49 = getelementptr inbounds %"struct.HrtfStore::Field", ptr %48, i64 -1
  store ptr %49, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store i64 0, ptr %18, align 8, !tbaa !17
  br label %50

50:                                               ; preds = %62, %7
  %51 = load float, ptr %12, align 4, !tbaa !9
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.HrtfStore::Field", ptr %52, i32 0, i32 0
  %54 = load float, ptr %53, align 4, !tbaa !19
  %55 = fcmp olt float %51, %54
  br i1 %55, label %56, label %60

56:                                               ; preds = %50
  %57 = load ptr, ptr %16, align 8, !tbaa !5
  %58 = load ptr, ptr %17, align 8, !tbaa !5
  %59 = icmp ne ptr %57, %58
  br label %60

60:                                               ; preds = %56, %50
  %61 = phi i1 [ false, %50 ], [ %59, %56 ]
  br i1 %61, label %62, label %71

62:                                               ; preds = %60
  %63 = load ptr, ptr %16, align 8, !tbaa !5
  %64 = getelementptr inbounds %"struct.HrtfStore::Field", ptr %63, i32 0, i32 1
  %65 = load i8, ptr %64, align 4, !tbaa !21
  %66 = zext i8 %65 to i64
  %67 = load i64, ptr %18, align 8, !tbaa !17
  %68 = add i64 %67, %66
  store i64 %68, ptr %18, align 8, !tbaa !17
  %69 = load ptr, ptr %16, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.HrtfStore::Field", ptr %69, i32 1
  store ptr %70, ptr %16, align 8, !tbaa !5
  br label %50, !llvm.loop !22

71:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %72 = load ptr, ptr %16, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.HrtfStore::Field", ptr %72, i32 0, i32 1
  %74 = load i8, ptr %73, align 4, !tbaa !21
  %75 = zext i8 %74 to i32
  %76 = load float, ptr %10, align 4, !tbaa !9
  %77 = call i64 @_ZN12_GLOBAL__N_111CalcEvIndexEjf(i32 noundef %75, float noundef %76)
  store i64 %77, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %78 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %19, i32 0, i32 0
  %79 = load i32, ptr %78, align 4, !tbaa !24
  %80 = add i32 %79, 1
  %81 = load ptr, ptr %16, align 8, !tbaa !5
  %82 = getelementptr inbounds %"struct.HrtfStore::Field", ptr %81, i32 0, i32 1
  %83 = load i8, ptr %82, align 4, !tbaa !21
  %84 = zext i8 %83 to i32
  %85 = sub nsw i32 %84, 1
  %86 = call noundef i32 @_Z4minujj(i32 noundef %80, i32 noundef %85) #7
  %87 = zext i32 %86 to i64
  store i64 %87, ptr %20, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.HrtfStore, ptr %88, i32 0, i32 5
  %90 = load ptr, ptr %89, align 8, !tbaa !26
  %91 = load i64, ptr %18, align 8, !tbaa !17
  %92 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %19, i32 0, i32 0
  %93 = load i32, ptr %92, align 4, !tbaa !24
  %94 = zext i32 %93 to i64
  %95 = add i64 %91, %94
  %96 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %90, i64 %95
  %97 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %96, i32 0, i32 1
  %98 = load i16, ptr %97, align 2, !tbaa !27
  %99 = zext i16 %98 to i64
  store i64 %99, ptr %21, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.HrtfStore, ptr %100, i32 0, i32 5
  %102 = load ptr, ptr %101, align 8, !tbaa !26
  %103 = load i64, ptr %18, align 8, !tbaa !17
  %104 = load i64, ptr %20, align 8, !tbaa !17
  %105 = add i64 %103, %104
  %106 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %102, i64 %105
  %107 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %106, i32 0, i32 1
  %108 = load i16, ptr %107, align 2, !tbaa !27
  %109 = zext i16 %108 to i64
  store i64 %109, ptr %22, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.HrtfStore, ptr %110, i32 0, i32 5
  %112 = load ptr, ptr %111, align 8, !tbaa !26
  %113 = load i64, ptr %18, align 8, !tbaa !17
  %114 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %19, i32 0, i32 0
  %115 = load i32, ptr %114, align 4, !tbaa !24
  %116 = zext i32 %115 to i64
  %117 = add i64 %113, %116
  %118 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %112, i64 %117
  %119 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %118, i32 0, i32 0
  %120 = load i16, ptr %119, align 2, !tbaa !30
  %121 = zext i16 %120 to i32
  %122 = load float, ptr %11, align 4, !tbaa !9
  %123 = call i64 @_ZN12_GLOBAL__N_111CalcAzIndexEjf(i32 noundef %121, float noundef %122)
  store i64 %123, ptr %23, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.HrtfStore, ptr %124, i32 0, i32 5
  %126 = load ptr, ptr %125, align 8, !tbaa !26
  %127 = load i64, ptr %18, align 8, !tbaa !17
  %128 = load i64, ptr %20, align 8, !tbaa !17
  %129 = add i64 %127, %128
  %130 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %126, i64 %129
  %131 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %130, i32 0, i32 0
  %132 = load i16, ptr %131, align 2, !tbaa !30
  %133 = zext i16 %132 to i32
  %134 = load float, ptr %11, align 4, !tbaa !9
  %135 = call i64 @_ZN12_GLOBAL__N_111CalcAzIndexEjf(i32 noundef %133, float noundef %134)
  store i64 %135, ptr %24, align 4
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #7
  %136 = load i64, ptr %21, align 8, !tbaa !17
  %137 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %23, i32 0, i32 0
  %138 = load i32, ptr %137, align 4, !tbaa !24
  %139 = zext i32 %138 to i64
  %140 = add i64 %136, %139
  store i64 %140, ptr %25, align 8, !tbaa !17
  %141 = getelementptr inbounds i64, ptr %25, i64 1
  %142 = load i64, ptr %21, align 8, !tbaa !17
  %143 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %23, i32 0, i32 0
  %144 = load i32, ptr %143, align 4, !tbaa !24
  %145 = add i32 %144, 1
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.HrtfStore, ptr %146, i32 0, i32 5
  %148 = load ptr, ptr %147, align 8, !tbaa !26
  %149 = load i64, ptr %18, align 8, !tbaa !17
  %150 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %19, i32 0, i32 0
  %151 = load i32, ptr %150, align 4, !tbaa !24
  %152 = zext i32 %151 to i64
  %153 = add i64 %149, %152
  %154 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %148, i64 %153
  %155 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %154, i32 0, i32 0
  %156 = load i16, ptr %155, align 2, !tbaa !30
  %157 = zext i16 %156 to i32
  %158 = urem i32 %145, %157
  %159 = zext i32 %158 to i64
  %160 = add i64 %142, %159
  store i64 %160, ptr %141, align 8, !tbaa !17
  %161 = getelementptr inbounds i64, ptr %25, i64 2
  %162 = load i64, ptr %22, align 8, !tbaa !17
  %163 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %24, i32 0, i32 0
  %164 = load i32, ptr %163, align 4, !tbaa !24
  %165 = zext i32 %164 to i64
  %166 = add i64 %162, %165
  store i64 %166, ptr %161, align 8, !tbaa !17
  %167 = getelementptr inbounds i64, ptr %25, i64 3
  %168 = load i64, ptr %22, align 8, !tbaa !17
  %169 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %24, i32 0, i32 0
  %170 = load i32, ptr %169, align 4, !tbaa !24
  %171 = add i32 %170, 1
  %172 = load ptr, ptr %9, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.HrtfStore, ptr %172, i32 0, i32 5
  %174 = load ptr, ptr %173, align 8, !tbaa !26
  %175 = load i64, ptr %18, align 8, !tbaa !17
  %176 = load i64, ptr %20, align 8, !tbaa !17
  %177 = add i64 %175, %176
  %178 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %174, i64 %177
  %179 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %178, i32 0, i32 0
  %180 = load i16, ptr %179, align 2, !tbaa !30
  %181 = zext i16 %180 to i32
  %182 = urem i32 %171, %181
  %183 = zext i32 %182 to i64
  %184 = add i64 %168, %183
  store i64 %184, ptr %167, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %185 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %19, i32 0, i32 1
  %186 = load float, ptr %185, align 4, !tbaa !31
  %187 = fsub float 1.000000e+00, %186
  %188 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %23, i32 0, i32 1
  %189 = load float, ptr %188, align 4, !tbaa !31
  %190 = fsub float 1.000000e+00, %189
  %191 = fmul float %187, %190
  %192 = load float, ptr %15, align 4, !tbaa !9
  %193 = fmul float %191, %192
  store float %193, ptr %26, align 4, !tbaa !9
  %194 = getelementptr inbounds float, ptr %26, i64 1
  %195 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %19, i32 0, i32 1
  %196 = load float, ptr %195, align 4, !tbaa !31
  %197 = fsub float 1.000000e+00, %196
  %198 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %23, i32 0, i32 1
  %199 = load float, ptr %198, align 4, !tbaa !31
  %200 = fmul float %197, %199
  %201 = load float, ptr %15, align 4, !tbaa !9
  %202 = fmul float %200, %201
  store float %202, ptr %194, align 4, !tbaa !9
  %203 = getelementptr inbounds float, ptr %26, i64 2
  %204 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %19, i32 0, i32 1
  %205 = load float, ptr %204, align 4, !tbaa !31
  %206 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %24, i32 0, i32 1
  %207 = load float, ptr %206, align 4, !tbaa !31
  %208 = fsub float 1.000000e+00, %207
  %209 = fmul float %205, %208
  %210 = load float, ptr %15, align 4, !tbaa !9
  %211 = fmul float %209, %210
  store float %211, ptr %203, align 4, !tbaa !9
  %212 = getelementptr inbounds float, ptr %26, i64 3
  %213 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %19, i32 0, i32 1
  %214 = load float, ptr %213, align 4, !tbaa !31
  %215 = getelementptr inbounds %"struct.(anonymous namespace)::IdxBlend", ptr %24, i32 0, i32 1
  %216 = load float, ptr %215, align 4, !tbaa !31
  %217 = fmul float %214, %216
  %218 = load float, ptr %15, align 4, !tbaa !9
  %219 = fmul float %217, %218
  store float %219, ptr %212, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %220 = load ptr, ptr %9, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.HrtfStore, ptr %220, i32 0, i32 7
  %222 = load ptr, ptr %221, align 8, !tbaa !32
  %223 = getelementptr inbounds [4 x i64], ptr %25, i64 0, i64 0
  %224 = load i64, ptr %223, align 16, !tbaa !17
  %225 = getelementptr inbounds %"struct.std::array", ptr %222, i64 %224
  %226 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %225, i64 noundef 0) #7
  %227 = load i8, ptr %226, align 1, !tbaa !33
  %228 = zext i8 %227 to i32
  %229 = sitofp i32 %228 to float
  %230 = getelementptr inbounds [4 x float], ptr %26, i64 0, i64 0
  %231 = load float, ptr %230, align 16, !tbaa !9
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.HrtfStore, ptr %232, i32 0, i32 7
  %234 = load ptr, ptr %233, align 8, !tbaa !32
  %235 = getelementptr inbounds [4 x i64], ptr %25, i64 0, i64 1
  %236 = load i64, ptr %235, align 8, !tbaa !17
  %237 = getelementptr inbounds %"struct.std::array", ptr %234, i64 %236
  %238 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %237, i64 noundef 0) #7
  %239 = load i8, ptr %238, align 1, !tbaa !33
  %240 = zext i8 %239 to i32
  %241 = sitofp i32 %240 to float
  %242 = getelementptr inbounds [4 x float], ptr %26, i64 0, i64 1
  %243 = load float, ptr %242, align 4, !tbaa !9
  %244 = fmul float %241, %243
  %245 = call float @llvm.fmuladd.f32(float %229, float %231, float %244)
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.HrtfStore, ptr %246, i32 0, i32 7
  %248 = load ptr, ptr %247, align 8, !tbaa !32
  %249 = getelementptr inbounds [4 x i64], ptr %25, i64 0, i64 2
  %250 = load i64, ptr %249, align 16, !tbaa !17
  %251 = getelementptr inbounds %"struct.std::array", ptr %248, i64 %250
  %252 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %251, i64 noundef 0) #7
  %253 = load i8, ptr %252, align 1, !tbaa !33
  %254 = zext i8 %253 to i32
  %255 = sitofp i32 %254 to float
  %256 = getelementptr inbounds [4 x float], ptr %26, i64 0, i64 2
  %257 = load float, ptr %256, align 8, !tbaa !9
  %258 = call float @llvm.fmuladd.f32(float %255, float %257, float %245)
  %259 = load ptr, ptr %9, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.HrtfStore, ptr %259, i32 0, i32 7
  %261 = load ptr, ptr %260, align 8, !tbaa !32
  %262 = getelementptr inbounds [4 x i64], ptr %25, i64 0, i64 3
  %263 = load i64, ptr %262, align 8, !tbaa !17
  %264 = getelementptr inbounds %"struct.std::array", ptr %261, i64 %263
  %265 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %264, i64 noundef 0) #7
  %266 = load i8, ptr %265, align 1, !tbaa !33
  %267 = zext i8 %266 to i32
  %268 = sitofp i32 %267 to float
  %269 = getelementptr inbounds [4 x float], ptr %26, i64 0, i64 3
  %270 = load float, ptr %269, align 4, !tbaa !9
  %271 = call float @llvm.fmuladd.f32(float %268, float %270, float %258)
  store float %271, ptr %27, align 4, !tbaa !9
  %272 = load float, ptr %27, align 4, !tbaa !9
  %273 = fmul float %272, 2.500000e-01
  %274 = call noundef i32 @_Z7fastf2uf(float noundef %273) #7
  %275 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al4spanIjLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef 0)
  store i32 %274, ptr %275, align 4, !tbaa !34
  %276 = load ptr, ptr %9, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.HrtfStore, ptr %276, i32 0, i32 7
  %278 = load ptr, ptr %277, align 8, !tbaa !32
  %279 = getelementptr inbounds [4 x i64], ptr %25, i64 0, i64 0
  %280 = load i64, ptr %279, align 16, !tbaa !17
  %281 = getelementptr inbounds %"struct.std::array", ptr %278, i64 %280
  %282 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %281, i64 noundef 1) #7
  %283 = load i8, ptr %282, align 1, !tbaa !33
  %284 = zext i8 %283 to i32
  %285 = sitofp i32 %284 to float
  %286 = getelementptr inbounds [4 x float], ptr %26, i64 0, i64 0
  %287 = load float, ptr %286, align 16, !tbaa !9
  %288 = load ptr, ptr %9, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.HrtfStore, ptr %288, i32 0, i32 7
  %290 = load ptr, ptr %289, align 8, !tbaa !32
  %291 = getelementptr inbounds [4 x i64], ptr %25, i64 0, i64 1
  %292 = load i64, ptr %291, align 8, !tbaa !17
  %293 = getelementptr inbounds %"struct.std::array", ptr %290, i64 %292
  %294 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %293, i64 noundef 1) #7
  %295 = load i8, ptr %294, align 1, !tbaa !33
  %296 = zext i8 %295 to i32
  %297 = sitofp i32 %296 to float
  %298 = getelementptr inbounds [4 x float], ptr %26, i64 0, i64 1
  %299 = load float, ptr %298, align 4, !tbaa !9
  %300 = fmul float %297, %299
  %301 = call float @llvm.fmuladd.f32(float %285, float %287, float %300)
  %302 = load ptr, ptr %9, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.HrtfStore, ptr %302, i32 0, i32 7
  %304 = load ptr, ptr %303, align 8, !tbaa !32
  %305 = getelementptr inbounds [4 x i64], ptr %25, i64 0, i64 2
  %306 = load i64, ptr %305, align 16, !tbaa !17
  %307 = getelementptr inbounds %"struct.std::array", ptr %304, i64 %306
  %308 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %307, i64 noundef 1) #7
  %309 = load i8, ptr %308, align 1, !tbaa !33
  %310 = zext i8 %309 to i32
  %311 = sitofp i32 %310 to float
  %312 = getelementptr inbounds [4 x float], ptr %26, i64 0, i64 2
  %313 = load float, ptr %312, align 8, !tbaa !9
  %314 = call float @llvm.fmuladd.f32(float %311, float %313, float %301)
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.HrtfStore, ptr %315, i32 0, i32 7
  %317 = load ptr, ptr %316, align 8, !tbaa !32
  %318 = getelementptr inbounds [4 x i64], ptr %25, i64 0, i64 3
  %319 = load i64, ptr %318, align 8, !tbaa !17
  %320 = getelementptr inbounds %"struct.std::array", ptr %317, i64 %319
  %321 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %320, i64 noundef 1) #7
  %322 = load i8, ptr %321, align 1, !tbaa !33
  %323 = zext i8 %322 to i32
  %324 = sitofp i32 %323 to float
  %325 = getelementptr inbounds [4 x float], ptr %26, i64 0, i64 3
  %326 = load float, ptr %325, align 4, !tbaa !9
  %327 = call float @llvm.fmuladd.f32(float %324, float %326, float %314)
  store float %327, ptr %27, align 4, !tbaa !9
  %328 = load float, ptr %27, align 4, !tbaa !9
  %329 = fmul float %328, 2.500000e-01
  %330 = call noundef i32 @_Z7fastf2uf(float noundef %329) #7
  %331 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al4spanIjLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef 1)
  store i32 %330, ptr %331, align 4, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %332 = load ptr, ptr %14, align 8, !tbaa !5
  %333 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayIS_IfLm2EELm128EEixEm(ptr noundef nonnull align 4 dereferenceable(1024) %332, i64 noundef 0) #7
  %334 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %333, i64 noundef 0) #7
  %335 = call noundef align 16 ptr @_ZN2al14assume_alignedILm16EfEEPT0_S2_(ptr noundef %334) #7
  store ptr %335, ptr %28, align 8, !tbaa !5
  %336 = load float, ptr %15, align 4, !tbaa !9
  %337 = fsub float 1.000000e+00, %336
  %338 = fmul float 0x3FE6A09E60000000, %337
  %339 = load ptr, ptr %28, align 8, !tbaa !5
  %340 = getelementptr inbounds float, ptr %339, i64 0
  store float %338, ptr %340, align 4, !tbaa !9
  %341 = load float, ptr %15, align 4, !tbaa !9
  %342 = fsub float 1.000000e+00, %341
  %343 = fmul float 0x3FE6A09E60000000, %342
  %344 = load ptr, ptr %28, align 8, !tbaa !5
  %345 = getelementptr inbounds float, ptr %344, i64 1
  store float %343, ptr %345, align 4, !tbaa !9
  %346 = load ptr, ptr %28, align 8, !tbaa !5
  %347 = getelementptr inbounds float, ptr %346, i64 2
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  store float 0.000000e+00, ptr %29, align 4, !tbaa !9
  %348 = call noundef ptr @_ZSt6fill_nIPfmfET_S1_T0_RKT1_(ptr noundef %347, i64 noundef 254, ptr noundef nonnull align 4 dereferenceable(4) %29)
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  store i64 0, ptr %30, align 8, !tbaa !17
  br label %349

349:                                              ; preds = %377, %71
  %350 = load i64, ptr %30, align 8, !tbaa !17
  %351 = icmp ult i64 %350, 4
  br i1 %351, label %353, label %352

352:                                              ; preds = %349
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  br label %380

353:                                              ; preds = %349
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %354 = load ptr, ptr %9, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.HrtfStore, ptr %354, i32 0, i32 6
  %356 = load ptr, ptr %355, align 8, !tbaa !35
  %357 = load i64, ptr %30, align 8, !tbaa !17
  %358 = getelementptr inbounds [4 x i64], ptr %25, i64 0, i64 %357
  %359 = load i64, ptr %358, align 8, !tbaa !17
  %360 = getelementptr inbounds %"struct.std::array.4", ptr %356, i64 %359
  %361 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt5arrayIS_IfLm2EELm128EEixEm(ptr noundef nonnull align 4 dereferenceable(1024) %360, i64 noundef 0) #7
  %362 = call noundef ptr @_ZNKSt5arrayIfLm2EE4dataEv(ptr noundef nonnull align 4 dereferenceable(8) %361) #7
  %363 = call noundef align 16 ptr @_ZN2al14assume_alignedILm16EKfEEPT0_S3_(ptr noundef %362) #7
  store ptr %363, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %364 = load i64, ptr %30, align 8, !tbaa !17
  %365 = getelementptr inbounds [4 x float], ptr %26, i64 0, i64 %364
  %366 = load float, ptr %365, align 4, !tbaa !9
  store float %366, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %367 = getelementptr inbounds %class.anon, ptr %33, i32 0, i32 0
  %368 = load float, ptr %32, align 4, !tbaa !9
  store float %368, ptr %367, align 4, !tbaa !36
  %369 = load ptr, ptr %31, align 8, !tbaa !5
  %370 = load ptr, ptr %31, align 8, !tbaa !5
  %371 = getelementptr inbounds float, ptr %370, i64 256
  %372 = load ptr, ptr %28, align 8, !tbaa !5
  %373 = load ptr, ptr %28, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %33, i64 4, i1 false), !tbaa.struct !38
  %374 = getelementptr inbounds %class.anon, ptr %34, i32 0, i32 0
  %375 = load float, ptr %374, align 4
  %376 = call noundef ptr @"_ZSt9transformIPKfPfS2_Z13GetHrtfCoeffsPK9HrtfStoreffffRSt5arrayIS6_IfLm2EELm128EEN2al4spanIjLm2EEEE3$_0ET1_T_SF_T0_SE_T2_"(ptr noundef %369, ptr noundef %371, ptr noundef %372, ptr noundef %373, float %375)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %377

377:                                              ; preds = %353
  %378 = load i64, ptr %30, align 8, !tbaa !17
  %379 = add i64 %378, 1
  store i64 %379, ptr %30, align 8, !tbaa !17
  br label %349, !llvm.loop !39

380:                                              ; preds = %352
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN2al8MathDefsIfE3TauEv() #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden i64 @_ZN12_GLOBAL__N_111CalcEvIndexEjf(i32 noundef, float noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden i64 @_ZN12_GLOBAL__N_111CalcAzIndexEjf(i32 noundef, float noundef) #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7fastf2uf(float noundef) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN2al14assume_alignedILm16EfEEPT0_S2_(ptr noundef) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6fill_nIPfmfET_S1_T0_RKT1_(ptr noundef, i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN2al14assume_alignedILm16EKfEEPT0_S3_(ptr noundef) #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZSt9transformIPKfPfS2_Z13GetHrtfCoeffsPK9HrtfStoreffffRSt5arrayIS6_IfLm2EELm128EEN2al4spanIjLm2EEEE3$_0ET1_T_SF_T0_SE_T2_"(ptr noundef, ptr noundef, ptr noundef, ptr noundef, float) #2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !6, i64 16}
!12 = !{!"_ZTS9HrtfStore", !13, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!13 = !{!"_ZTSSt6atomicIjE", !14, i64 0}
!14 = !{!"_ZTSSt13__atomic_baseIjE", !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!12, !15, i64 12}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !10, i64 0}
!20 = !{!"_ZTSN9HrtfStore5FieldE", !10, i64 0, !7, i64 4}
!21 = !{!20, !7, i64 4}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !15, i64 0}
!25 = !{!"_ZTSN12_GLOBAL__N_18IdxBlendE", !15, i64 0, !10, i64 4}
!26 = !{!12, !6, i64 24}
!27 = !{!28, !29, i64 2}
!28 = !{!"_ZTSN9HrtfStore9ElevationE", !29, i64 0, !29, i64 2}
!29 = !{!"short", !7, i64 0}
!30 = !{!28, !29, i64 0}
!31 = !{!25, !10, i64 4}
!32 = !{!12, !6, i64 40}
!33 = !{!7, !7, i64 0}
!34 = !{!15, !15, i64 0}
!35 = !{!12, !6, i64 32}
!36 = !{!37, !10, i64 0}
!37 = !{!"_ZTSZ13GetHrtfCoeffsPK9HrtfStoreffffRSt5arrayIS2_IfLm2EELm128EEN2al4spanIjLm2EEEE3$_0", !10, i64 0}
!38 = !{i64 0, i64 4, !9}
!39 = distinct !{!39, !23}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.al::span" = type { ptr }
%"struct.HrtfStore::Field" = type { float, i8 }
%"struct.HrtfStore::Elevation" = type { i16, i16 }
%"struct.std::array" = type { [2 x i8] }
%"struct.std::array.4" = type { [128 x %"struct.std::array.5"] }
%"struct.std::array.5" = type { [2 x float] }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13GetHrtfCoeffsPK9HrtfStoreffffRSt5arrayIS2_IfLm2EELm128EEN2al4spanIjLm2EEE(ptr nocapture noundef readonly %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, ptr noundef nonnull align 4 dereferenceable(1024) %5, ptr %6) local_unnamed_addr #0 {
  %8 = alloca %"class.al::span", align 8
  %9 = alloca float, align 4
  store ptr %6, ptr %8, align 8
  %10 = tail call noundef float @_ZN2al8MathDefsIfE3TauEv() #6
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 12
  %14 = load i32, ptr %13, align 4, !tbaa !13
  %15 = zext i32 %14 to i64
  %16 = getelementptr inbounds %"struct.HrtfStore::Field", ptr %12, i64 %15
  %17 = getelementptr inbounds i8, ptr %16, i64 -8
  %18 = load float, ptr %12, align 4, !tbaa !14
  %19 = fcmp ogt float %18, %3
  %20 = icmp ne ptr %12, %17
  %21 = select i1 %19, i1 %20, i1 false
  br i1 %21, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %7, %.lr.ph
  %.082 = phi ptr [ %26, %.lr.ph ], [ %12, %7 ]
  %.07981 = phi i64 [ %25, %.lr.ph ], [ 0, %7 ]
  %22 = getelementptr inbounds i8, ptr %.082, i64 4
  %23 = load i8, ptr %22, align 4, !tbaa !17
  %24 = zext i8 %23 to i64
  %25 = add i64 %.07981, %24
  %26 = getelementptr inbounds i8, ptr %.082, i64 8
  %27 = load float, ptr %26, align 4, !tbaa !14
  %28 = fcmp ogt float %27, %3
  %29 = icmp ne ptr %26, %17
  %30 = select i1 %28, i1 %29, i1 false
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !18

._crit_edge:                                      ; preds = %.lr.ph, %7
  %.079.lcssa = phi i64 [ 0, %7 ], [ %25, %.lr.ph ]
  %.0.lcssa = phi ptr [ %12, %7 ], [ %26, %.lr.ph ]
  %31 = fdiv float %4, %10
  %32 = fsub float 1.000000e+00, %31
  %33 = getelementptr inbounds i8, ptr %.0.lcssa, i64 4
  %34 = load i8, ptr %33, align 4, !tbaa !17
  %35 = zext i8 %34 to i32
  %36 = tail call i64 @_ZN12_GLOBAL__N_111CalcEvIndexEjf(i32 noundef %35, float noundef %1)
  %.sroa.028.0.extract.trunc = trunc i64 %36 to i32
  %.sroa.7.0.extract.shift = lshr i64 %36, 32
  %.sroa.7.0.extract.trunc = trunc nuw i64 %.sroa.7.0.extract.shift to i32
  %37 = bitcast i32 %.sroa.7.0.extract.trunc to float
  %38 = add i32 %.sroa.028.0.extract.trunc, 1
  %39 = load i8, ptr %33, align 4, !tbaa !17
  %40 = zext i8 %39 to i32
  %41 = add nsw i32 %40, -1
  %42 = tail call noundef i32 @_Z4minujj(i32 noundef %38, i32 noundef %41) #6
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  %45 = load ptr, ptr %44, align 8, !tbaa !20
  %46 = and i64 %36, 4294967295
  %47 = add i64 %46, %.079.lcssa
  %48 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %45, i64 %47
  %49 = getelementptr inbounds i8, ptr %48, i64 2
  %50 = load i16, ptr %49, align 2, !tbaa !21
  %51 = zext i16 %50 to i64
  %52 = add i64 %.079.lcssa, %43
  %53 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %45, i64 %52, i32 1
  %54 = load i16, ptr %53, align 2, !tbaa !21
  %55 = zext i16 %54 to i64
  %56 = load i16, ptr %48, align 2, !tbaa !24
  %57 = zext i16 %56 to i32
  %58 = tail call i64 @_ZN12_GLOBAL__N_111CalcAzIndexEjf(i32 noundef %57, float noundef %2)
  %.sroa.017.0.extract.trunc = trunc i64 %58 to i32
  %.sroa.519.0.extract.shift = lshr i64 %58, 32
  %.sroa.519.0.extract.trunc = trunc nuw i64 %.sroa.519.0.extract.shift to i32
  %59 = bitcast i32 %.sroa.519.0.extract.trunc to float
  %60 = load ptr, ptr %44, align 8, !tbaa !20
  %61 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %60, i64 %52
  %62 = load i16, ptr %61, align 2, !tbaa !24
  %63 = zext i16 %62 to i32
  %64 = tail call i64 @_ZN12_GLOBAL__N_111CalcAzIndexEjf(i32 noundef %63, float noundef %2)
  %.sroa.014.0.extract.trunc = trunc i64 %64 to i32
  %.sroa.5.0.extract.shift = lshr i64 %64, 32
  %.sroa.5.0.extract.trunc = trunc nuw i64 %.sroa.5.0.extract.shift to i32
  %65 = bitcast i32 %.sroa.5.0.extract.trunc to float
  %66 = and i64 %58, 4294967295
  %67 = add nuw nsw i64 %66, %51
  %68 = add i32 %.sroa.017.0.extract.trunc, 1
  %69 = load ptr, ptr %44, align 8, !tbaa !20
  %70 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %69, i64 %47
  %71 = load i16, ptr %70, align 2, !tbaa !24
  %72 = zext i16 %71 to i32
  %73 = urem i32 %68, %72
  %74 = zext nneg i32 %73 to i64
  %75 = add nuw nsw i64 %74, %51
  %76 = and i64 %64, 4294967295
  %77 = add nuw nsw i64 %76, %55
  %78 = add i32 %.sroa.014.0.extract.trunc, 1
  %79 = getelementptr inbounds %"struct.HrtfStore::Elevation", ptr %69, i64 %52
  %80 = load i16, ptr %79, align 2, !tbaa !24
  %81 = zext i16 %80 to i32
  %82 = urem i32 %78, %81
  %83 = zext nneg i32 %82 to i64
  %84 = add nuw nsw i64 %83, %55
  %85 = fsub float 1.000000e+00, %37
  %86 = fsub float 1.000000e+00, %59
  %87 = fmul float %85, %86
  %88 = fmul float %32, %87
  %89 = fmul float %85, %59
  %90 = fmul float %32, %89
  %91 = fsub float 1.000000e+00, %65
  %92 = fmul float %91, %37
  %93 = fmul float %32, %92
  %94 = fmul float %37, %65
  %95 = fmul float %32, %94
  %96 = getelementptr inbounds i8, ptr %0, i64 40
  %97 = load ptr, ptr %96, align 8, !tbaa !25
  %98 = getelementptr inbounds %"struct.std::array", ptr %97, i64 %67
  %99 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %98, i64 noundef 0) #6
  %100 = load i8, ptr %99, align 1, !tbaa !26
  %101 = uitofp i8 %100 to float
  %102 = load ptr, ptr %96, align 8, !tbaa !25
  %103 = getelementptr inbounds %"struct.std::array", ptr %102, i64 %75
  %104 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %103, i64 noundef 0) #6
  %105 = load i8, ptr %104, align 1, !tbaa !26
  %106 = uitofp i8 %105 to float
  %107 = fmul float %90, %106
  %108 = tail call float @llvm.fmuladd.f32(float %101, float %88, float %107)
  %109 = load ptr, ptr %96, align 8, !tbaa !25
  %110 = getelementptr inbounds %"struct.std::array", ptr %109, i64 %77
  %111 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %110, i64 noundef 0) #6
  %112 = load i8, ptr %111, align 1, !tbaa !26
  %113 = uitofp i8 %112 to float
  %114 = tail call float @llvm.fmuladd.f32(float %113, float %93, float %108)
  %115 = load ptr, ptr %96, align 8, !tbaa !25
  %116 = getelementptr inbounds %"struct.std::array", ptr %115, i64 %84
  %117 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %116, i64 noundef 0) #6
  %118 = load i8, ptr %117, align 1, !tbaa !26
  %119 = uitofp i8 %118 to float
  %120 = tail call float @llvm.fmuladd.f32(float %119, float %95, float %114)
  %121 = fmul float %120, 2.500000e-01
  %122 = tail call noundef i32 @_Z7fastf2uf(float noundef %121) #6
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al4spanIjLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef 0)
  store i32 %122, ptr %123, align 4, !tbaa !27
  %124 = load ptr, ptr %96, align 8, !tbaa !25
  %125 = getelementptr inbounds %"struct.std::array", ptr %124, i64 %67
  %126 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %125, i64 noundef 1) #6
  %127 = load i8, ptr %126, align 1, !tbaa !26
  %128 = uitofp i8 %127 to float
  %129 = load ptr, ptr %96, align 8, !tbaa !25
  %130 = getelementptr inbounds %"struct.std::array", ptr %129, i64 %75
  %131 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %130, i64 noundef 1) #6
  %132 = load i8, ptr %131, align 1, !tbaa !26
  %133 = uitofp i8 %132 to float
  %134 = fmul float %90, %133
  %135 = call float @llvm.fmuladd.f32(float %128, float %88, float %134)
  %136 = load ptr, ptr %96, align 8, !tbaa !25
  %137 = getelementptr inbounds %"struct.std::array", ptr %136, i64 %77
  %138 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %137, i64 noundef 1) #6
  %139 = load i8, ptr %138, align 1, !tbaa !26
  %140 = uitofp i8 %139 to float
  %141 = call float @llvm.fmuladd.f32(float %140, float %93, float %135)
  %142 = load ptr, ptr %96, align 8, !tbaa !25
  %143 = getelementptr inbounds %"struct.std::array", ptr %142, i64 %84
  %144 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt5arrayIhLm2EEixEm(ptr noundef nonnull align 1 dereferenceable(2) %143, i64 noundef 1) #6
  %145 = load i8, ptr %144, align 1, !tbaa !26
  %146 = uitofp i8 %145 to float
  %147 = call float @llvm.fmuladd.f32(float %146, float %95, float %141)
  %148 = fmul float %147, 2.500000e-01
  %149 = call noundef i32 @_Z7fastf2uf(float noundef %148) #6
  %150 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK2al4spanIjLm2EEixEm(ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef 1)
  store i32 %149, ptr %150, align 4, !tbaa !27
  %151 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt5arrayIS_IfLm2EELm128EEixEm(ptr noundef nonnull align 4 dereferenceable(1024) %5, i64 noundef 0) #6
  %152 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIfLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %151, i64 noundef 0) #6
  %153 = call noundef align 16 ptr @_ZN2al14assume_alignedILm16EfEEPT0_S2_(ptr noundef nonnull %152) #6
  %154 = fsub float 1.000000e+00, %32
  %155 = fmul float %154, 0x3FE6A09E60000000
  store float %155, ptr %153, align 16, !tbaa !28
  %156 = getelementptr inbounds i8, ptr %153, i64 4
  store float %155, ptr %156, align 4, !tbaa !28
  %157 = getelementptr inbounds i8, ptr %153, i64 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store float 0.000000e+00, ptr %9, align 4, !tbaa !28
  %158 = call noundef ptr @_ZSt6fill_nIPfmfET_S1_T0_RKT1_(ptr noundef nonnull %157, i64 noundef 254, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  %159 = getelementptr inbounds i8, ptr %0, i64 32
  %160 = load ptr, ptr %159, align 8, !tbaa !29
  %161 = getelementptr inbounds %"struct.std::array.4", ptr %160, i64 %67
  %162 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt5arrayIS_IfLm2EELm128EEixEm(ptr noundef nonnull align 4 dereferenceable(1024) %161, i64 noundef 0) #6
  %163 = call noundef ptr @_ZNKSt5arrayIfLm2EE4dataEv(ptr noundef nonnull align 4 dereferenceable(8) %162) #6
  %164 = call noundef align 16 ptr @_ZN2al14assume_alignedILm16EKfEEPT0_S3_(ptr noundef %163) #6
  %165 = getelementptr inbounds i8, ptr %164, i64 1024
  %166 = call noundef ptr @"_ZSt9transformIPKfPfS2_Z13GetHrtfCoeffsPK9HrtfStoreffffRSt5arrayIS6_IfLm2EELm128EEN2al4spanIjLm2EEEE3$_0ET1_T_SF_T0_SE_T2_"(ptr noundef %164, ptr noundef nonnull %165, ptr noundef nonnull %153, ptr noundef nonnull %153, float %88)
  %167 = load ptr, ptr %159, align 8, !tbaa !29
  %168 = getelementptr inbounds %"struct.std::array.4", ptr %167, i64 %75
  %169 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt5arrayIS_IfLm2EELm128EEixEm(ptr noundef nonnull align 4 dereferenceable(1024) %168, i64 noundef 0) #6
  %170 = call noundef ptr @_ZNKSt5arrayIfLm2EE4dataEv(ptr noundef nonnull align 4 dereferenceable(8) %169) #6
  %171 = call noundef align 16 ptr @_ZN2al14assume_alignedILm16EKfEEPT0_S3_(ptr noundef %170) #6
  %172 = getelementptr inbounds i8, ptr %171, i64 1024
  %173 = call noundef ptr @"_ZSt9transformIPKfPfS2_Z13GetHrtfCoeffsPK9HrtfStoreffffRSt5arrayIS6_IfLm2EELm128EEN2al4spanIjLm2EEEE3$_0ET1_T_SF_T0_SE_T2_"(ptr noundef %171, ptr noundef nonnull %172, ptr noundef nonnull %153, ptr noundef nonnull %153, float %90)
  %174 = load ptr, ptr %159, align 8, !tbaa !29
  %175 = getelementptr inbounds %"struct.std::array.4", ptr %174, i64 %77
  %176 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt5arrayIS_IfLm2EELm128EEixEm(ptr noundef nonnull align 4 dereferenceable(1024) %175, i64 noundef 0) #6
  %177 = call noundef ptr @_ZNKSt5arrayIfLm2EE4dataEv(ptr noundef nonnull align 4 dereferenceable(8) %176) #6
  %178 = call noundef align 16 ptr @_ZN2al14assume_alignedILm16EKfEEPT0_S3_(ptr noundef %177) #6
  %179 = getelementptr inbounds i8, ptr %178, i64 1024
  %180 = call noundef ptr @"_ZSt9transformIPKfPfS2_Z13GetHrtfCoeffsPK9HrtfStoreffffRSt5arrayIS6_IfLm2EELm128EEN2al4spanIjLm2EEEE3$_0ET1_T_SF_T0_SE_T2_"(ptr noundef %178, ptr noundef nonnull %179, ptr noundef nonnull %153, ptr noundef nonnull %153, float %93)
  %181 = load ptr, ptr %159, align 8, !tbaa !29
  %182 = getelementptr inbounds %"struct.std::array.4", ptr %181, i64 %84
  %183 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt5arrayIS_IfLm2EELm128EEixEm(ptr noundef nonnull align 4 dereferenceable(1024) %182, i64 noundef 0) #6
  %184 = call noundef ptr @_ZNKSt5arrayIfLm2EE4dataEv(ptr noundef nonnull align 4 dereferenceable(8) %183) #6
  %185 = call noundef align 16 ptr @_ZN2al14assume_alignedILm16EKfEEPT0_S3_(ptr noundef %184) #6
  %186 = getelementptr inbounds i8, ptr %185, i64 1024
  %187 = call noundef ptr @"_ZSt9transformIPKfPfS2_Z13GetHrtfCoeffsPK9HrtfStoreffffRSt5arrayIS6_IfLm2EELm128EEN2al4spanIjLm2EEEE3$_0ET1_T_SF_T0_SE_T2_"(ptr noundef %185, ptr noundef nonnull %186, ptr noundef nonnull %153, ptr noundef nonnull %153, float %95)
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN2al8MathDefsIfE3TauEv() local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden i64 @_ZN12_GLOBAL__N_111CalcEvIndexEjf(i32 noundef, float noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden i64 @_ZN12_GLOBAL__N_111CalcAzIndexEjf(i32 noundef, float noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z7fastf2uf(float noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN2al14assume_alignedILm16EfEEPT0_S2_(ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt6fill_nIPfmfET_S1_T0_RKT1_(ptr noundef, i64 noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN2al14assume_alignedILm16EKfEEPT0_S3_(ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @"_ZSt9transformIPKfPfS2_Z13GetHrtfCoeffsPK9HrtfStoreffffRSt5arrayIS6_IfLm2EELm128EEN2al4spanIjLm2EEEE3$_0ET1_T_SF_T0_SE_T2_"(ptr noundef, ptr noundef, ptr noundef, ptr noundef, float) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 16}
!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 = !{!6, !9, i64 12}
!14 = !{!15, !16, i64 0}
!15 = !{!"_ZTSN9HrtfStore5FieldE", !16, i64 0, !10, i64 4}
!16 = !{!"float", !10, i64 0}
!17 = !{!15, !10, i64 4}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!6, !12, i64 24}
!21 = !{!22, !23, i64 2}
!22 = !{!"_ZTSN9HrtfStore9ElevationE", !23, i64 0, !23, i64 2}
!23 = !{!"short", !10, i64 0}
!24 = !{!22, !23, i64 0}
!25 = !{!6, !12, i64 40}
!26 = !{!10, !10, i64 0}
!27 = !{!9, !9, i64 0}
!28 = !{!16, !16, i64 0}
!29 = !{!6, !12, i64 32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass