; LLVM IR from yangfengzzz/DigitalVox3 :: vox.render/maths (spherical_harmonics3)

; 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"

%"struct.vox::math::Color" = type { float, float, float, float }
%"class.vox::math::SphericalHarmonics3" = type { %"struct.std::array" }
%"struct.std::array" = type { [27 x float] }
%"struct.vox::math::Float3" = type { float, float, float }

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local { <2 x float>, <2 x float> } @_ZN3vox4math19SphericalHarmonics3clERKNS0_6Float3E(ptr noundef nonnull align 4 dereferenceable(108) %0, ptr noundef nonnull align 4 dereferenceable(12) %1) #2 align 2 {
  %3 = alloca %"struct.vox::math::Color", align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %19 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %20 = getelementptr inbounds %"class.vox::math::SphericalHarmonics3", ptr %19, i32 0, i32 0
  store ptr %20, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store double 8.862270e-01, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.vox::math::Float3", ptr %21, i32 0, i32 1
  %23 = load float, ptr %22, align 4, !tbaa !11
  %24 = fpext float %23 to double
  %25 = fmul double 0xBFF05F8C21E1D218, %24
  store double %25, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.vox::math::Float3", ptr %26, i32 0, i32 2
  %28 = load float, ptr %27, align 4, !tbaa !14
  %29 = fpext float %28 to double
  %30 = fmul double 0x3FF05F8C21E1D218, %29
  store double %30, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.vox::math::Float3", ptr %31, i32 0, i32 0
  %33 = load float, ptr %32, align 4, !tbaa !15
  %34 = fpext float %33 to double
  %35 = fmul double 0xBFF05F8C21E1D218, %34
  store double %35, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.vox::math::Float3", ptr %36, i32 0, i32 1
  %38 = load float, ptr %37, align 4, !tbaa !11
  %39 = fpext float %38 to double
  %40 = fmul double 8.580860e-01, %39
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.vox::math::Float3", ptr %41, i32 0, i32 0
  %43 = load float, ptr %42, align 4, !tbaa !15
  %44 = fpext float %43 to double
  %45 = fmul double %40, %44
  store double %45, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.vox::math::Float3", ptr %46, i32 0, i32 1
  %48 = load float, ptr %47, align 4, !tbaa !11
  %49 = fpext float %48 to double
  %50 = fmul double -8.580860e-01, %49
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.vox::math::Float3", ptr %51, i32 0, i32 2
  %53 = load float, ptr %52, align 4, !tbaa !14
  %54 = fpext float %53 to double
  %55 = fmul double %50, %54
  store double %55, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.vox::math::Float3", ptr %56, i32 0, i32 2
  %58 = load float, ptr %57, align 4, !tbaa !14
  %59 = fmul float 3.000000e+00, %58
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.vox::math::Float3", ptr %60, i32 0, i32 2
  %62 = load float, ptr %61, align 4, !tbaa !14
  %63 = call float @llvm.fmuladd.f32(float %59, float %62, float -1.000000e+00)
  %64 = fpext float %63 to double
  %65 = fmul double 2.477080e-01, %64
  store double %65, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.vox::math::Float3", ptr %66, i32 0, i32 2
  %68 = load float, ptr %67, align 4, !tbaa !14
  %69 = fpext float %68 to double
  %70 = fmul double -8.580860e-01, %69
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %"struct.vox::math::Float3", ptr %71, i32 0, i32 0
  %73 = load float, ptr %72, align 4, !tbaa !15
  %74 = fpext float %73 to double
  %75 = fmul double %70, %74
  store double %75, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.vox::math::Float3", ptr %76, i32 0, i32 0
  %78 = load float, ptr %77, align 4, !tbaa !15
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.vox::math::Float3", ptr %79, i32 0, i32 0
  %81 = load float, ptr %80, align 4, !tbaa !15
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.vox::math::Float3", ptr %82, i32 0, i32 1
  %84 = load float, ptr %83, align 4, !tbaa !11
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.vox::math::Float3", ptr %85, i32 0, i32 1
  %87 = load float, ptr %86, align 4, !tbaa !11
  %88 = fmul float %84, %87
  %89 = fneg float %88
  %90 = call float @llvm.fmuladd.f32(float %78, float %81, float %89)
  %91 = fpext float %90 to double
  %92 = fmul double 4.290420e-01, %91
  store double %92, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %93, i64 noundef 0) #4
  %95 = load float, ptr %94, align 4, !tbaa !16
  %96 = fpext float %95 to double
  %97 = fmul double %96, 8.862270e-01
  store double %97, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %98, i64 noundef 1) #4
  %100 = load float, ptr %99, align 4, !tbaa !16
  %101 = fpext float %100 to double
  %102 = fmul double %101, 8.862270e-01
  store double %102, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %103, i64 noundef 2) #4
  %105 = load float, ptr %104, align 4, !tbaa !16
  %106 = fpext float %105 to double
  %107 = fmul double %106, 8.862270e-01
  store double %107, ptr %18, align 8, !tbaa !9
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %108, i64 noundef 3) #4
  %110 = load float, ptr %109, align 4, !tbaa !16
  %111 = fpext float %110 to double
  %112 = load double, ptr %8, align 8, !tbaa !9
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %113, i64 noundef 6) #4
  %115 = load float, ptr %114, align 4, !tbaa !16
  %116 = fpext float %115 to double
  %117 = load double, ptr %9, align 8, !tbaa !9
  %118 = fmul double %116, %117
  %119 = call double @llvm.fmuladd.f64(double %111, double %112, double %118)
  %120 = load ptr, ptr %6, align 8, !tbaa !5
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %120, i64 noundef 9) #4
  %122 = load float, ptr %121, align 4, !tbaa !16
  %123 = fpext float %122 to double
  %124 = load double, ptr %10, align 8, !tbaa !9
  %125 = call double @llvm.fmuladd.f64(double %123, double %124, double %119)
  %126 = load double, ptr %16, align 8, !tbaa !9
  %127 = fadd double %126, %125
  store double %127, ptr %16, align 8, !tbaa !9
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %128, i64 noundef 4) #4
  %130 = load float, ptr %129, align 4, !tbaa !16
  %131 = fpext float %130 to double
  %132 = load double, ptr %8, align 8, !tbaa !9
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %133, i64 noundef 7) #4
  %135 = load float, ptr %134, align 4, !tbaa !16
  %136 = fpext float %135 to double
  %137 = load double, ptr %9, align 8, !tbaa !9
  %138 = fmul double %136, %137
  %139 = call double @llvm.fmuladd.f64(double %131, double %132, double %138)
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %140, i64 noundef 10) #4
  %142 = load float, ptr %141, align 4, !tbaa !16
  %143 = fpext float %142 to double
  %144 = load double, ptr %10, align 8, !tbaa !9
  %145 = call double @llvm.fmuladd.f64(double %143, double %144, double %139)
  %146 = load double, ptr %17, align 8, !tbaa !9
  %147 = fadd double %146, %145
  store double %147, ptr %17, align 8, !tbaa !9
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %148, i64 noundef 5) #4
  %150 = load float, ptr %149, align 4, !tbaa !16
  %151 = fpext float %150 to double
  %152 = load double, ptr %8, align 8, !tbaa !9
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %153, i64 noundef 8) #4
  %155 = load float, ptr %154, align 4, !tbaa !16
  %156 = fpext float %155 to double
  %157 = load double, ptr %9, align 8, !tbaa !9
  %158 = fmul double %156, %157
  %159 = call double @llvm.fmuladd.f64(double %151, double %152, double %158)
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %160, i64 noundef 11) #4
  %162 = load float, ptr %161, align 4, !tbaa !16
  %163 = fpext float %162 to double
  %164 = load double, ptr %10, align 8, !tbaa !9
  %165 = call double @llvm.fmuladd.f64(double %163, double %164, double %159)
  %166 = load double, ptr %18, align 8, !tbaa !9
  %167 = fadd double %166, %165
  store double %167, ptr %18, align 8, !tbaa !9
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %168, i64 noundef 12) #4
  %170 = load float, ptr %169, align 4, !tbaa !16
  %171 = fpext float %170 to double
  %172 = load double, ptr %11, align 8, !tbaa !9
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %173, i64 noundef 15) #4
  %175 = load float, ptr %174, align 4, !tbaa !16
  %176 = fpext float %175 to double
  %177 = load double, ptr %12, align 8, !tbaa !9
  %178 = fmul double %176, %177
  %179 = call double @llvm.fmuladd.f64(double %171, double %172, double %178)
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %180, i64 noundef 18) #4
  %182 = load float, ptr %181, align 4, !tbaa !16
  %183 = fpext float %182 to double
  %184 = load double, ptr %13, align 8, !tbaa !9
  %185 = call double @llvm.fmuladd.f64(double %183, double %184, double %179)
  %186 = load ptr, ptr %6, align 8, !tbaa !5
  %187 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %186, i64 noundef 21) #4
  %188 = load float, ptr %187, align 4, !tbaa !16
  %189 = fpext float %188 to double
  %190 = load double, ptr %14, align 8, !tbaa !9
  %191 = call double @llvm.fmuladd.f64(double %189, double %190, double %185)
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %192, i64 noundef 24) #4
  %194 = load float, ptr %193, align 4, !tbaa !16
  %195 = fpext float %194 to double
  %196 = load double, ptr %15, align 8, !tbaa !9
  %197 = call double @llvm.fmuladd.f64(double %195, double %196, double %191)
  %198 = load double, ptr %16, align 8, !tbaa !9
  %199 = fadd double %198, %197
  store double %199, ptr %16, align 8, !tbaa !9
  %200 = load ptr, ptr %6, align 8, !tbaa !5
  %201 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %200, i64 noundef 13) #4
  %202 = load float, ptr %201, align 4, !tbaa !16
  %203 = fpext float %202 to double
  %204 = load double, ptr %11, align 8, !tbaa !9
  %205 = load ptr, ptr %6, align 8, !tbaa !5
  %206 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %205, i64 noundef 16) #4
  %207 = load float, ptr %206, align 4, !tbaa !16
  %208 = fpext float %207 to double
  %209 = load double, ptr %12, align 8, !tbaa !9
  %210 = fmul double %208, %209
  %211 = call double @llvm.fmuladd.f64(double %203, double %204, double %210)
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %212, i64 noundef 19) #4
  %214 = load float, ptr %213, align 4, !tbaa !16
  %215 = fpext float %214 to double
  %216 = load double, ptr %13, align 8, !tbaa !9
  %217 = call double @llvm.fmuladd.f64(double %215, double %216, double %211)
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %218, i64 noundef 22) #4
  %220 = load float, ptr %219, align 4, !tbaa !16
  %221 = fpext float %220 to double
  %222 = load double, ptr %14, align 8, !tbaa !9
  %223 = call double @llvm.fmuladd.f64(double %221, double %222, double %217)
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %224, i64 noundef 25) #4
  %226 = load float, ptr %225, align 4, !tbaa !16
  %227 = fpext float %226 to double
  %228 = load double, ptr %15, align 8, !tbaa !9
  %229 = call double @llvm.fmuladd.f64(double %227, double %228, double %223)
  %230 = load double, ptr %17, align 8, !tbaa !9
  %231 = fadd double %230, %229
  store double %231, ptr %17, align 8, !tbaa !9
  %232 = load ptr, ptr %6, align 8, !tbaa !5
  %233 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %232, i64 noundef 14) #4
  %234 = load float, ptr %233, align 4, !tbaa !16
  %235 = fpext float %234 to double
  %236 = load double, ptr %11, align 8, !tbaa !9
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %237, i64 noundef 17) #4
  %239 = load float, ptr %238, align 4, !tbaa !16
  %240 = fpext float %239 to double
  %241 = load double, ptr %12, align 8, !tbaa !9
  %242 = fmul double %240, %241
  %243 = call double @llvm.fmuladd.f64(double %235, double %236, double %242)
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  %245 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %244, i64 noundef 20) #4
  %246 = load float, ptr %245, align 4, !tbaa !16
  %247 = fpext float %246 to double
  %248 = load double, ptr %13, align 8, !tbaa !9
  %249 = call double @llvm.fmuladd.f64(double %247, double %248, double %243)
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %250, i64 noundef 23) #4
  %252 = load float, ptr %251, align 4, !tbaa !16
  %253 = fpext float %252 to double
  %254 = load double, ptr %14, align 8, !tbaa !9
  %255 = call double @llvm.fmuladd.f64(double %253, double %254, double %249)
  %256 = load ptr, ptr %6, align 8, !tbaa !5
  %257 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %256, i64 noundef 26) #4
  %258 = load float, ptr %257, align 4, !tbaa !16
  %259 = fpext float %258 to double
  %260 = load double, ptr %15, align 8, !tbaa !9
  %261 = call double @llvm.fmuladd.f64(double %259, double %260, double %255)
  %262 = load double, ptr %18, align 8, !tbaa !9
  %263 = fadd double %262, %261
  store double %263, ptr %18, align 8, !tbaa !9
  %264 = load double, ptr %16, align 8, !tbaa !9
  %265 = fptrunc double %264 to float
  %266 = load double, ptr %17, align 8, !tbaa !9
  %267 = fptrunc double %266 to float
  %268 = load double, ptr %18, align 8, !tbaa !9
  %269 = fptrunc double %268 to float
  call void @_ZN3vox4math5ColorC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %265, float noundef %267, float noundef %269, float noundef 1.000000e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %270 = load { <2 x float>, <2 x float> }, ptr %3, align 4
  ret { <2 x float>, <2 x float> } %270
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 4}
!12 = !{!"_ZTSN3vox4math6Float3E", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{!12, !13, i64 0}
!16 = !{!13, !13, i64 0}


; 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"

%"struct.vox::math::Color" = type { float, float, float, float }

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local { <2 x float>, <2 x float> } @_ZN3vox4math19SphericalHarmonics3clERKNS0_6Float3E(ptr noundef nonnull align 4 dereferenceable(108) %0, ptr nocapture noundef nonnull readonly align 4 dereferenceable(12) %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %"struct.vox::math::Color", align 8
  %4 = getelementptr inbounds i8, ptr %1, i64 4
  %5 = load float, ptr %4, align 4, !tbaa !5
  %6 = fpext float %5 to double
  %7 = fmul double %6, 0xBFF05F8C21E1D218
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load float, ptr %8, align 4, !tbaa !10
  %10 = fpext float %9 to double
  %11 = fmul double %10, 0x3FF05F8C21E1D218
  %12 = load float, ptr %1, align 4, !tbaa !11
  %13 = fpext float %12 to double
  %14 = fmul double %13, 0xBFF05F8C21E1D218
  %15 = fmul double %6, 8.580860e-01
  %16 = fmul double %15, %13
  %17 = fmul double %6, -8.580860e-01
  %18 = fmul double %17, %10
  %19 = fmul float %9, 3.000000e+00
  %20 = tail call float @llvm.fmuladd.f32(float %19, float %9, float -1.000000e+00)
  %21 = fpext float %20 to double
  %22 = fmul double %21, 2.477080e-01
  %23 = fmul double %10, -8.580860e-01
  %24 = fmul double %23, %13
  %25 = fneg float %5
  %26 = fmul float %5, %25
  %27 = tail call float @llvm.fmuladd.f32(float %12, float %12, float %26)
  %28 = fpext float %27 to double
  %29 = fmul double %28, 4.290420e-01
  %30 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 0) #2
  %31 = load float, ptr %30, align 4, !tbaa !12
  %32 = fpext float %31 to double
  %33 = fmul double %32, 8.862270e-01
  %34 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 1) #2
  %35 = load float, ptr %34, align 4, !tbaa !12
  %36 = fpext float %35 to double
  %37 = fmul double %36, 8.862270e-01
  %38 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 2) #2
  %39 = load float, ptr %38, align 4, !tbaa !12
  %40 = fpext float %39 to double
  %41 = fmul double %40, 8.862270e-01
  %42 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 3) #2
  %43 = load float, ptr %42, align 4, !tbaa !12
  %44 = fpext float %43 to double
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 6) #2
  %46 = load float, ptr %45, align 4, !tbaa !12
  %47 = fpext float %46 to double
  %48 = fmul double %11, %47
  %49 = tail call double @llvm.fmuladd.f64(double %44, double %7, double %48)
  %50 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 9) #2
  %51 = load float, ptr %50, align 4, !tbaa !12
  %52 = fpext float %51 to double
  %53 = tail call double @llvm.fmuladd.f64(double %52, double %14, double %49)
  %54 = fadd double %33, %53
  %55 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 4) #2
  %56 = load float, ptr %55, align 4, !tbaa !12
  %57 = fpext float %56 to double
  %58 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 7) #2
  %59 = load float, ptr %58, align 4, !tbaa !12
  %60 = fpext float %59 to double
  %61 = fmul double %11, %60
  %62 = tail call double @llvm.fmuladd.f64(double %57, double %7, double %61)
  %63 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 10) #2
  %64 = load float, ptr %63, align 4, !tbaa !12
  %65 = fpext float %64 to double
  %66 = tail call double @llvm.fmuladd.f64(double %65, double %14, double %62)
  %67 = fadd double %37, %66
  %68 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 5) #2
  %69 = load float, ptr %68, align 4, !tbaa !12
  %70 = fpext float %69 to double
  %71 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 8) #2
  %72 = load float, ptr %71, align 4, !tbaa !12
  %73 = fpext float %72 to double
  %74 = fmul double %11, %73
  %75 = tail call double @llvm.fmuladd.f64(double %70, double %7, double %74)
  %76 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 11) #2
  %77 = load float, ptr %76, align 4, !tbaa !12
  %78 = fpext float %77 to double
  %79 = tail call double @llvm.fmuladd.f64(double %78, double %14, double %75)
  %80 = fadd double %41, %79
  %81 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 12) #2
  %82 = load float, ptr %81, align 4, !tbaa !12
  %83 = fpext float %82 to double
  %84 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 15) #2
  %85 = load float, ptr %84, align 4, !tbaa !12
  %86 = fpext float %85 to double
  %87 = fmul double %18, %86
  %88 = tail call double @llvm.fmuladd.f64(double %83, double %16, double %87)
  %89 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 18) #2
  %90 = load float, ptr %89, align 4, !tbaa !12
  %91 = fpext float %90 to double
  %92 = tail call double @llvm.fmuladd.f64(double %91, double %22, double %88)
  %93 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 21) #2
  %94 = load float, ptr %93, align 4, !tbaa !12
  %95 = fpext float %94 to double
  %96 = tail call double @llvm.fmuladd.f64(double %95, double %24, double %92)
  %97 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 24) #2
  %98 = load float, ptr %97, align 4, !tbaa !12
  %99 = fpext float %98 to double
  %100 = tail call double @llvm.fmuladd.f64(double %99, double %29, double %96)
  %101 = fadd double %54, %100
  %102 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 13) #2
  %103 = load float, ptr %102, align 4, !tbaa !12
  %104 = fpext float %103 to double
  %105 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 16) #2
  %106 = load float, ptr %105, align 4, !tbaa !12
  %107 = fpext float %106 to double
  %108 = fmul double %18, %107
  %109 = tail call double @llvm.fmuladd.f64(double %104, double %16, double %108)
  %110 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 19) #2
  %111 = load float, ptr %110, align 4, !tbaa !12
  %112 = fpext float %111 to double
  %113 = tail call double @llvm.fmuladd.f64(double %112, double %22, double %109)
  %114 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 22) #2
  %115 = load float, ptr %114, align 4, !tbaa !12
  %116 = fpext float %115 to double
  %117 = tail call double @llvm.fmuladd.f64(double %116, double %24, double %113)
  %118 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 25) #2
  %119 = load float, ptr %118, align 4, !tbaa !12
  %120 = fpext float %119 to double
  %121 = tail call double @llvm.fmuladd.f64(double %120, double %29, double %117)
  %122 = fadd double %67, %121
  %123 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 14) #2
  %124 = load float, ptr %123, align 4, !tbaa !12
  %125 = fpext float %124 to double
  %126 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 17) #2
  %127 = load float, ptr %126, align 4, !tbaa !12
  %128 = fpext float %127 to double
  %129 = fmul double %18, %128
  %130 = tail call double @llvm.fmuladd.f64(double %125, double %16, double %129)
  %131 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 20) #2
  %132 = load float, ptr %131, align 4, !tbaa !12
  %133 = fpext float %132 to double
  %134 = tail call double @llvm.fmuladd.f64(double %133, double %22, double %130)
  %135 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 23) #2
  %136 = load float, ptr %135, align 4, !tbaa !12
  %137 = fpext float %136 to double
  %138 = tail call double @llvm.fmuladd.f64(double %137, double %24, double %134)
  %139 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt5arrayIfLm27EEixEm(ptr noundef nonnull align 4 dereferenceable(108) %0, i64 noundef 26) #2
  %140 = load float, ptr %139, align 4, !tbaa !12
  %141 = fpext float %140 to double
  %142 = tail call double @llvm.fmuladd.f64(double %141, double %29, double %138)
  %143 = fadd double %80, %142
  %144 = fptrunc double %101 to float
  %145 = fptrunc double %122 to float
  %146 = fptrunc double %143 to float
  call void @_ZN3vox4math5ColorC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef %144, float noundef %145, float noundef %146, float noundef 1.000000e+00)
  %.fca.0.load = load <2 x float>, ptr %3, align 8
  %.fca.0.insert = insertvalue { <2 x float>, <2 x float> } poison, <2 x float> %.fca.0.load, 0
  %.fca.1.gep = getelementptr inbounds i8, ptr %3, i64 8
  %.fca.1.load = load <2 x float>, ptr %.fca.1.gep, align 8
  %.fca.1.insert = insertvalue { <2 x float>, <2 x float> } %.fca.0.insert, <2 x float> %.fca.1.load, 1
  ret { <2 x float>, <2 x float> } %.fca.1.insert
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3vox4math5ColorC2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #1 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 = { 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, !7, i64 4}
!6 = !{!"_ZTSN3vox4math6Float3E", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!6, !7, i64 0}
!12 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass