; LLVM IR from SelfishOlex/MiniAudioO3DE :: MiniAudio/Code/Source/Clients (MiniAudioImplementation)

; 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.ma_vec3f = type { float, float, float }
%struct.ma_spatializer = type { i32, i32, ptr, i32, i32, i32, float, float, float, float, float, float, float, float, float, float, i32, %struct.ma_vec3f, %struct.ma_vec3f, %struct.ma_vec3f, float, %struct.ma_gainer, ptr, ptr, i32 }
%struct.ma_gainer = type { %struct.ma_gainer_config, i32, ptr, ptr, ptr, i32 }
%struct.ma_gainer_config = type { i32, i32 }
%struct.ma_spatializer_listener = type { %struct.ma_spatializer_listener_config, %struct.ma_vec3f, %struct.ma_vec3f, %struct.ma_vec3f, i32, i32, ptr }
%struct.ma_spatializer_listener_config = type { i32, ptr, i32, float, float, float, float, %struct.ma_vec3f }

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_Z16ma_vec3f_init_3ffff(float noundef, float noundef, float noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_Z12ma_vec3f_neg8ma_vec3f(<2 x float>, float) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z12ma_vec3f_dot8ma_vec3fS_(<2 x float>, float, <2 x float>, float) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z13ma_vec3f_len28ma_vec3f(<2 x float>, float) #4

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_Z18ma_vec3f_normalize8ma_vec3f(<2 x float>, float) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_Z14ma_vec3f_cross8ma_vec3fS_(<2 x float>, float, <2 x float>, float) #4

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

; Function Attrs: mustprogress uwtable
define dso_local void @ma_spatializer_get_relative_position_and_direction(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #5 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %struct.ma_vec3f, align 4
  %10 = alloca %struct.ma_vec3f, align 4
  %11 = alloca %struct.ma_vec3f, align 4
  %12 = alloca %struct.ma_vec3f, align 4
  %13 = alloca [4 x [4 x float]], align 16
  %14 = alloca %struct.ma_vec3f, align 4
  %15 = alloca %struct.ma_vec3f, align 4
  %16 = alloca { <2 x float>, float }, align 4
  %17 = alloca { <2 x float>, float }, align 8
  %18 = alloca %struct.ma_vec3f, align 4
  %19 = alloca %struct.ma_vec3f, align 4
  %20 = alloca %struct.ma_vec3f, align 4
  %21 = alloca %struct.ma_vec3f, align 4
  %22 = alloca { <2 x float>, float }, align 4
  %23 = alloca { <2 x float>, float }, align 4
  %24 = alloca { <2 x float>, float }, align 8
  %25 = alloca { <2 x float>, float }, align 4
  %26 = alloca { <2 x float>, float }, align 8
  %27 = alloca %struct.ma_vec3f, align 4
  %28 = alloca { <2 x float>, float }, align 4
  %29 = alloca %struct.ma_vec3f, align 4
  %30 = alloca { <2 x float>, float }, align 8
  %31 = alloca %struct.ma_vec3f, align 4
  %32 = alloca %struct.ma_vec3f, align 4
  %33 = alloca %struct.ma_vec3f, align 4
  %34 = alloca { <2 x float>, float }, align 4
  %35 = alloca { <2 x float>, float }, align 4
  %36 = alloca { <2 x float>, float }, align 8
  %37 = alloca %struct.ma_vec3f, align 4
  %38 = alloca %struct.ma_vec3f, align 4
  %39 = alloca { <2 x float>, float }, align 4
  %40 = alloca { <2 x float>, float }, align 8
  %41 = alloca %struct.ma_vec3f, align 4
  %42 = alloca %struct.ma_vec3f, align 4
  %43 = alloca { <2 x float>, float }, align 4
  %44 = alloca { <2 x float>, float }, align 4
  %45 = alloca %struct.ma_vec3f, align 4
  %46 = alloca %struct.ma_vec3f, align 4
  %47 = alloca { <2 x float>, float }, align 4
  %48 = alloca { <2 x float>, float }, align 4
  %49 = alloca %struct.ma_vec3f, align 4
  %50 = alloca %struct.ma_vec3f, align 4
  %51 = alloca { <2 x float>, float }, align 4
  %52 = alloca { <2 x float>, float }, align 8
  %53 = alloca %struct.ma_vec3f, align 4
  %54 = alloca { <2 x float>, float }, align 4
  %55 = alloca { <2 x float>, float }, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %65

58:                                               ; preds = %4
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.ma_vec3f, ptr %59, i32 0, i32 0
  store float 0.000000e+00, ptr %60, align 4, !tbaa !9
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.ma_vec3f, ptr %61, i32 0, i32 1
  store float 0.000000e+00, ptr %62, align 4, !tbaa !12
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ma_vec3f, ptr %63, i32 0, i32 2
  store float 0.000000e+00, ptr %64, align 4, !tbaa !13
  br label %65

65:                                               ; preds = %58, %4
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %75

68:                                               ; preds = %65
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.ma_vec3f, ptr %69, i32 0, i32 0
  store float 0.000000e+00, ptr %70, align 4, !tbaa !9
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ma_vec3f, ptr %71, i32 0, i32 1
  store float 0.000000e+00, ptr %72, align 4, !tbaa !12
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.ma_vec3f, ptr %73, i32 0, i32 2
  store float -1.000000e+00, ptr %74, align 4, !tbaa !13
  br label %75

75:                                               ; preds = %68, %65
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %79

78:                                               ; preds = %75
  br label %394

79:                                               ; preds = %75
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = icmp eq ptr %80, null
  br i1 %81, label %86, label %82

82:                                               ; preds = %79
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = call i32 @ma_spatializer_get_positioning(ptr noundef %83)
  %85 = icmp eq i32 %84, 1
  br i1 %85, label %86, label %101

86:                                               ; preds = %82, %79
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = icmp ne ptr %87, null
  br i1 %88, label %89, label %93

89:                                               ; preds = %86
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ma_spatializer, ptr %90, i32 0, i32 17
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %92, ptr align 8 %91, i64 12, i1 false), !tbaa.struct !14
  br label %93

93:                                               ; preds = %89, %86
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = icmp ne ptr %94, null
  br i1 %95, label %96, label %100

96:                                               ; preds = %93
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ma_spatializer, ptr %97, i32 0, i32 18
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %99, ptr align 4 %98, i64 12, i1 false), !tbaa.struct !14
  br label %100

100:                                              ; preds = %96, %93
  br label %394

101:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #6
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %102, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %103, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %15, i64 12, i1 false)
  %104 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 0
  %105 = load <2 x float>, ptr %104, align 4
  %106 = getelementptr inbounds { <2 x float>, float }, ptr %16, i32 0, i32 1
  %107 = load float, ptr %106, align 4
  %108 = call { <2 x float>, float } @_Z18ma_vec3f_normalize8ma_vec3f(<2 x float> %105, float %107)
  store { <2 x float>, float } %108, ptr %17, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 8 %17, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %14, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !14
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds %struct.ma_spatializer_listener_config, ptr %110, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %111, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %20, i64 12, i1 false)
  %112 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 0
  %113 = load <2 x float>, ptr %112, align 4
  %114 = getelementptr inbounds { <2 x float>, float }, ptr %22, i32 0, i32 1
  %115 = load float, ptr %114, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %21, i64 12, i1 false)
  %116 = getelementptr inbounds { <2 x float>, float }, ptr %23, i32 0, i32 0
  %117 = load <2 x float>, ptr %116, align 4
  %118 = getelementptr inbounds { <2 x float>, float }, ptr %23, i32 0, i32 1
  %119 = load float, ptr %118, align 4
  %120 = call { <2 x float>, float } @_Z14ma_vec3f_cross8ma_vec3fS_(<2 x float> %113, float %115, <2 x float> %117, float %119)
  store { <2 x float>, float } %120, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %24, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %19, i64 12, i1 false)
  %121 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 0
  %122 = load <2 x float>, ptr %121, align 4
  %123 = getelementptr inbounds { <2 x float>, float }, ptr %25, i32 0, i32 1
  %124 = load float, ptr %123, align 4
  %125 = call { <2 x float>, float } @_Z18ma_vec3f_normalize8ma_vec3f(<2 x float> %122, float %124)
  store { <2 x float>, float } %125, ptr %26, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 8 %26, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %18, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %27, i64 12, i1 false)
  %126 = getelementptr inbounds { <2 x float>, float }, ptr %28, i32 0, i32 0
  %127 = load <2 x float>, ptr %126, align 4
  %128 = getelementptr inbounds { <2 x float>, float }, ptr %28, i32 0, i32 1
  %129 = load float, ptr %128, align 4
  %130 = call noundef float @_Z13ma_vec3f_len28ma_vec3f(<2 x float> %127, float %129)
  %131 = fcmp oeq float %130, 0.000000e+00
  br i1 %131, label %132, label %134

132:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 12, ptr %29) #6
  %133 = call { <2 x float>, float } @_Z16ma_vec3f_init_3ffff(float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  store { <2 x float>, float } %133, ptr %30, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %30, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %29, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #6
  br label %134

134:                                              ; preds = %132, %101
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 4 %32, i64 12, i1 false)
  %135 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 0
  %136 = load <2 x float>, ptr %135, align 4
  %137 = getelementptr inbounds { <2 x float>, float }, ptr %34, i32 0, i32 1
  %138 = load float, ptr %137, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 4 %33, i64 12, i1 false)
  %139 = getelementptr inbounds { <2 x float>, float }, ptr %35, i32 0, i32 0
  %140 = load <2 x float>, ptr %139, align 4
  %141 = getelementptr inbounds { <2 x float>, float }, ptr %35, i32 0, i32 1
  %142 = load float, ptr %141, align 4
  %143 = call { <2 x float>, float } @_Z14ma_vec3f_cross8ma_vec3fS_(<2 x float> %136, float %138, <2 x float> %140, float %142)
  store { <2 x float>, float } %143, ptr %36, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 8 %36, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %31, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #6
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds %struct.ma_spatializer_listener_config, ptr %145, i32 0, i32 2
  %147 = load i32, ptr %146, align 8, !tbaa !16
  %148 = icmp eq i32 %147, 1
  br i1 %148, label %149, label %155

149:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 12, ptr %37) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 %38, i64 12, i1 false)
  %150 = getelementptr inbounds { <2 x float>, float }, ptr %39, i32 0, i32 0
  %151 = load <2 x float>, ptr %150, align 4
  %152 = getelementptr inbounds { <2 x float>, float }, ptr %39, i32 0, i32 1
  %153 = load float, ptr %152, align 4
  %154 = call { <2 x float>, float } @_Z12ma_vec3f_neg8ma_vec3f(<2 x float> %151, float %153)
  store { <2 x float>, float } %154, ptr %40, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %40, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %37, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 12, ptr %37) #6
  br label %155

155:                                              ; preds = %149, %134
  %156 = getelementptr inbounds %struct.ma_vec3f, ptr %10, i32 0, i32 0
  %157 = load float, ptr %156, align 4, !tbaa !9
  %158 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 0
  %159 = getelementptr inbounds [4 x float], ptr %158, i64 0, i64 0
  store float %157, ptr %159, align 16, !tbaa !15
  %160 = getelementptr inbounds %struct.ma_vec3f, ptr %10, i32 0, i32 1
  %161 = load float, ptr %160, align 4, !tbaa !12
  %162 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 1
  %163 = getelementptr inbounds [4 x float], ptr %162, i64 0, i64 0
  store float %161, ptr %163, align 16, !tbaa !15
  %164 = getelementptr inbounds %struct.ma_vec3f, ptr %10, i32 0, i32 2
  %165 = load float, ptr %164, align 4, !tbaa !13
  %166 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 2
  %167 = getelementptr inbounds [4 x float], ptr %166, i64 0, i64 0
  store float %165, ptr %167, align 16, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !14
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %168, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 8 %169, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %41, i64 12, i1 false)
  %170 = getelementptr inbounds { <2 x float>, float }, ptr %43, i32 0, i32 0
  %171 = load <2 x float>, ptr %170, align 4
  %172 = getelementptr inbounds { <2 x float>, float }, ptr %43, i32 0, i32 1
  %173 = load float, ptr %172, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %42, i64 12, i1 false)
  %174 = getelementptr inbounds { <2 x float>, float }, ptr %44, i32 0, i32 0
  %175 = load <2 x float>, ptr %174, align 4
  %176 = getelementptr inbounds { <2 x float>, float }, ptr %44, i32 0, i32 1
  %177 = load float, ptr %176, align 4
  %178 = call noundef float @_Z12ma_vec3f_dot8ma_vec3fS_(<2 x float> %171, float %173, <2 x float> %175, float %177)
  %179 = fneg float %178
  %180 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 3
  %181 = getelementptr inbounds [4 x float], ptr %180, i64 0, i64 0
  store float %179, ptr %181, align 16, !tbaa !15
  %182 = getelementptr inbounds %struct.ma_vec3f, ptr %11, i32 0, i32 0
  %183 = load float, ptr %182, align 4, !tbaa !9
  %184 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 0
  %185 = getelementptr inbounds [4 x float], ptr %184, i64 0, i64 1
  store float %183, ptr %185, align 4, !tbaa !15
  %186 = getelementptr inbounds %struct.ma_vec3f, ptr %11, i32 0, i32 1
  %187 = load float, ptr %186, align 4, !tbaa !12
  %188 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 1
  %189 = getelementptr inbounds [4 x float], ptr %188, i64 0, i64 1
  store float %187, ptr %189, align 4, !tbaa !15
  %190 = getelementptr inbounds %struct.ma_vec3f, ptr %11, i32 0, i32 2
  %191 = load float, ptr %190, align 4, !tbaa !13
  %192 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 2
  %193 = getelementptr inbounds [4 x float], ptr %192, i64 0, i64 1
  store float %191, ptr %193, align 4, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %11, i64 12, i1 false), !tbaa.struct !14
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %194, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 8 %195, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %45, i64 12, i1 false)
  %196 = getelementptr inbounds { <2 x float>, float }, ptr %47, i32 0, i32 0
  %197 = load <2 x float>, ptr %196, align 4
  %198 = getelementptr inbounds { <2 x float>, float }, ptr %47, i32 0, i32 1
  %199 = load float, ptr %198, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %46, i64 12, i1 false)
  %200 = getelementptr inbounds { <2 x float>, float }, ptr %48, i32 0, i32 0
  %201 = load <2 x float>, ptr %200, align 4
  %202 = getelementptr inbounds { <2 x float>, float }, ptr %48, i32 0, i32 1
  %203 = load float, ptr %202, align 4
  %204 = call noundef float @_Z12ma_vec3f_dot8ma_vec3fS_(<2 x float> %197, float %199, <2 x float> %201, float %203)
  %205 = fneg float %204
  %206 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 3
  %207 = getelementptr inbounds [4 x float], ptr %206, i64 0, i64 1
  store float %205, ptr %207, align 4, !tbaa !15
  %208 = getelementptr inbounds %struct.ma_vec3f, ptr %12, i32 0, i32 0
  %209 = load float, ptr %208, align 4, !tbaa !9
  %210 = fneg float %209
  %211 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 0
  %212 = getelementptr inbounds [4 x float], ptr %211, i64 0, i64 2
  store float %210, ptr %212, align 8, !tbaa !15
  %213 = getelementptr inbounds %struct.ma_vec3f, ptr %12, i32 0, i32 1
  %214 = load float, ptr %213, align 4, !tbaa !12
  %215 = fneg float %214
  %216 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 1
  %217 = getelementptr inbounds [4 x float], ptr %216, i64 0, i64 2
  store float %215, ptr %217, align 8, !tbaa !15
  %218 = getelementptr inbounds %struct.ma_vec3f, ptr %12, i32 0, i32 2
  %219 = load float, ptr %218, align 4, !tbaa !13
  %220 = fneg float %219
  %221 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 2
  %222 = getelementptr inbounds [4 x float], ptr %221, i64 0, i64 2
  store float %220, ptr %222, align 8, !tbaa !15
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 4 %50, i64 12, i1 false)
  %223 = getelementptr inbounds { <2 x float>, float }, ptr %51, i32 0, i32 0
  %224 = load <2 x float>, ptr %223, align 4
  %225 = getelementptr inbounds { <2 x float>, float }, ptr %51, i32 0, i32 1
  %226 = load float, ptr %225, align 4
  %227 = call { <2 x float>, float } @_Z12ma_vec3f_neg8ma_vec3f(<2 x float> %224, float %226)
  store { <2 x float>, float } %227, ptr %52, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 8 %52, i64 12, i1 false)
  %228 = load ptr, ptr %6, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %228, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 8 %229, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %49, i64 12, i1 false)
  %230 = getelementptr inbounds { <2 x float>, float }, ptr %54, i32 0, i32 0
  %231 = load <2 x float>, ptr %230, align 4
  %232 = getelementptr inbounds { <2 x float>, float }, ptr %54, i32 0, i32 1
  %233 = load float, ptr %232, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 4 %53, i64 12, i1 false)
  %234 = getelementptr inbounds { <2 x float>, float }, ptr %55, i32 0, i32 0
  %235 = load <2 x float>, ptr %234, align 4
  %236 = getelementptr inbounds { <2 x float>, float }, ptr %55, i32 0, i32 1
  %237 = load float, ptr %236, align 4
  %238 = call noundef float @_Z12ma_vec3f_dot8ma_vec3fS_(<2 x float> %231, float %233, <2 x float> %235, float %237)
  %239 = fneg float %238
  %240 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 3
  %241 = getelementptr inbounds [4 x float], ptr %240, i64 0, i64 2
  store float %239, ptr %241, align 8, !tbaa !15
  %242 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 0
  %243 = getelementptr inbounds [4 x float], ptr %242, i64 0, i64 3
  store float 0.000000e+00, ptr %243, align 4, !tbaa !15
  %244 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 1
  %245 = getelementptr inbounds [4 x float], ptr %244, i64 0, i64 3
  store float 0.000000e+00, ptr %245, align 4, !tbaa !15
  %246 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 2
  %247 = getelementptr inbounds [4 x float], ptr %246, i64 0, i64 3
  store float 0.000000e+00, ptr %247, align 4, !tbaa !15
  %248 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 3
  %249 = getelementptr inbounds [4 x float], ptr %248, i64 0, i64 3
  store float 1.000000e+00, ptr %249, align 4, !tbaa !15
  %250 = load ptr, ptr %7, align 8, !tbaa !5
  %251 = icmp ne ptr %250, null
  br i1 %251, label %252, label %327

252:                                              ; preds = %155
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.ma_spatializer, ptr %253, i32 0, i32 17
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 8 %254, i64 12, i1 false), !tbaa.struct !14
  %255 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 0
  %256 = getelementptr inbounds [4 x float], ptr %255, i64 0, i64 0
  %257 = load float, ptr %256, align 16, !tbaa !15
  %258 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 0
  %259 = load float, ptr %258, align 4, !tbaa !9
  %260 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 1
  %261 = getelementptr inbounds [4 x float], ptr %260, i64 0, i64 0
  %262 = load float, ptr %261, align 16, !tbaa !15
  %263 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 1
  %264 = load float, ptr %263, align 4, !tbaa !12
  %265 = fmul float %262, %264
  %266 = call float @llvm.fmuladd.f32(float %257, float %259, float %265)
  %267 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 2
  %268 = getelementptr inbounds [4 x float], ptr %267, i64 0, i64 0
  %269 = load float, ptr %268, align 16, !tbaa !15
  %270 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 2
  %271 = load float, ptr %270, align 4, !tbaa !13
  %272 = call float @llvm.fmuladd.f32(float %269, float %271, float %266)
  %273 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 3
  %274 = getelementptr inbounds [4 x float], ptr %273, i64 0, i64 0
  %275 = load float, ptr %274, align 16, !tbaa !15
  %276 = call float @llvm.fmuladd.f32(float %275, float 1.000000e+00, float %272)
  %277 = load ptr, ptr %7, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.ma_vec3f, ptr %277, i32 0, i32 0
  store float %276, ptr %278, align 4, !tbaa !9
  %279 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 0
  %280 = getelementptr inbounds [4 x float], ptr %279, i64 0, i64 1
  %281 = load float, ptr %280, align 4, !tbaa !15
  %282 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 0
  %283 = load float, ptr %282, align 4, !tbaa !9
  %284 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 1
  %285 = getelementptr inbounds [4 x float], ptr %284, i64 0, i64 1
  %286 = load float, ptr %285, align 4, !tbaa !15
  %287 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 1
  %288 = load float, ptr %287, align 4, !tbaa !12
  %289 = fmul float %286, %288
  %290 = call float @llvm.fmuladd.f32(float %281, float %283, float %289)
  %291 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 2
  %292 = getelementptr inbounds [4 x float], ptr %291, i64 0, i64 1
  %293 = load float, ptr %292, align 4, !tbaa !15
  %294 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 2
  %295 = load float, ptr %294, align 4, !tbaa !13
  %296 = call float @llvm.fmuladd.f32(float %293, float %295, float %290)
  %297 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 3
  %298 = getelementptr inbounds [4 x float], ptr %297, i64 0, i64 1
  %299 = load float, ptr %298, align 4, !tbaa !15
  %300 = call float @llvm.fmuladd.f32(float %299, float 1.000000e+00, float %296)
  %301 = load ptr, ptr %7, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.ma_vec3f, ptr %301, i32 0, i32 1
  store float %300, ptr %302, align 4, !tbaa !12
  %303 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 0
  %304 = getelementptr inbounds [4 x float], ptr %303, i64 0, i64 2
  %305 = load float, ptr %304, align 8, !tbaa !15
  %306 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 0
  %307 = load float, ptr %306, align 4, !tbaa !9
  %308 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 1
  %309 = getelementptr inbounds [4 x float], ptr %308, i64 0, i64 2
  %310 = load float, ptr %309, align 8, !tbaa !15
  %311 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 1
  %312 = load float, ptr %311, align 4, !tbaa !12
  %313 = fmul float %310, %312
  %314 = call float @llvm.fmuladd.f32(float %305, float %307, float %313)
  %315 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 2
  %316 = getelementptr inbounds [4 x float], ptr %315, i64 0, i64 2
  %317 = load float, ptr %316, align 8, !tbaa !15
  %318 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 2
  %319 = load float, ptr %318, align 4, !tbaa !13
  %320 = call float @llvm.fmuladd.f32(float %317, float %319, float %314)
  %321 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 3
  %322 = getelementptr inbounds [4 x float], ptr %321, i64 0, i64 2
  %323 = load float, ptr %322, align 8, !tbaa !15
  %324 = call float @llvm.fmuladd.f32(float %323, float 1.000000e+00, float %320)
  %325 = load ptr, ptr %7, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.ma_vec3f, ptr %325, i32 0, i32 2
  store float %324, ptr %326, align 4, !tbaa !13
  br label %327

327:                                              ; preds = %252, %155
  %328 = load ptr, ptr %8, align 8, !tbaa !5
  %329 = icmp ne ptr %328, null
  br i1 %329, label %330, label %393

330:                                              ; preds = %327
  %331 = load ptr, ptr %5, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.ma_spatializer, ptr %331, i32 0, i32 18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %332, i64 12, i1 false), !tbaa.struct !14
  %333 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 0
  %334 = getelementptr inbounds [4 x float], ptr %333, i64 0, i64 0
  %335 = load float, ptr %334, align 16, !tbaa !15
  %336 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 0
  %337 = load float, ptr %336, align 4, !tbaa !9
  %338 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 1
  %339 = getelementptr inbounds [4 x float], ptr %338, i64 0, i64 0
  %340 = load float, ptr %339, align 16, !tbaa !15
  %341 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 1
  %342 = load float, ptr %341, align 4, !tbaa !12
  %343 = fmul float %340, %342
  %344 = call float @llvm.fmuladd.f32(float %335, float %337, float %343)
  %345 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 2
  %346 = getelementptr inbounds [4 x float], ptr %345, i64 0, i64 0
  %347 = load float, ptr %346, align 16, !tbaa !15
  %348 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 2
  %349 = load float, ptr %348, align 4, !tbaa !13
  %350 = call float @llvm.fmuladd.f32(float %347, float %349, float %344)
  %351 = load ptr, ptr %8, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.ma_vec3f, ptr %351, i32 0, i32 0
  store float %350, ptr %352, align 4, !tbaa !9
  %353 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 0
  %354 = getelementptr inbounds [4 x float], ptr %353, i64 0, i64 1
  %355 = load float, ptr %354, align 4, !tbaa !15
  %356 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 0
  %357 = load float, ptr %356, align 4, !tbaa !9
  %358 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 1
  %359 = getelementptr inbounds [4 x float], ptr %358, i64 0, i64 1
  %360 = load float, ptr %359, align 4, !tbaa !15
  %361 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 1
  %362 = load float, ptr %361, align 4, !tbaa !12
  %363 = fmul float %360, %362
  %364 = call float @llvm.fmuladd.f32(float %355, float %357, float %363)
  %365 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 2
  %366 = getelementptr inbounds [4 x float], ptr %365, i64 0, i64 1
  %367 = load float, ptr %366, align 4, !tbaa !15
  %368 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 2
  %369 = load float, ptr %368, align 4, !tbaa !13
  %370 = call float @llvm.fmuladd.f32(float %367, float %369, float %364)
  %371 = load ptr, ptr %8, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.ma_vec3f, ptr %371, i32 0, i32 1
  store float %370, ptr %372, align 4, !tbaa !12
  %373 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 0
  %374 = getelementptr inbounds [4 x float], ptr %373, i64 0, i64 2
  %375 = load float, ptr %374, align 8, !tbaa !15
  %376 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 0
  %377 = load float, ptr %376, align 4, !tbaa !9
  %378 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 1
  %379 = getelementptr inbounds [4 x float], ptr %378, i64 0, i64 2
  %380 = load float, ptr %379, align 8, !tbaa !15
  %381 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 1
  %382 = load float, ptr %381, align 4, !tbaa !12
  %383 = fmul float %380, %382
  %384 = call float @llvm.fmuladd.f32(float %375, float %377, float %383)
  %385 = getelementptr inbounds [4 x [4 x float]], ptr %13, i64 0, i64 2
  %386 = getelementptr inbounds [4 x float], ptr %385, i64 0, i64 2
  %387 = load float, ptr %386, align 8, !tbaa !15
  %388 = getelementptr inbounds %struct.ma_vec3f, ptr %9, i32 0, i32 2
  %389 = load float, ptr %388, align 4, !tbaa !13
  %390 = call float @llvm.fmuladd.f32(float %387, float %389, float %384)
  %391 = load ptr, ptr %8, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.ma_vec3f, ptr %391, i32 0, i32 2
  store float %390, ptr %392, align 4, !tbaa !13
  br label %393

393:                                              ; preds = %330, %327
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  br label %394

394:                                              ; preds = %393, %100, %78
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #5 = { mustprogress 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 #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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS8ma_vec3f", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !11, i64 8}
!14 = !{i64 0, i64 4, !15, i64 4, i64 4, !15, i64 8, i64 4, !15}
!15 = !{!11, !11, i64 0}
!16 = !{!17, !20, i64 16}
!17 = !{!"_ZTS23ma_spatializer_listener", !18, i64 0, !10, i64 48, !10, i64 60, !10, i64 72, !19, i64 84, !19, i64 88, !6, i64 96}
!18 = !{!"_ZTS30ma_spatializer_listener_config", !19, i64 0, !6, i64 8, !20, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !10, i64 36}
!19 = !{!"int", !7, i64 0}
!20 = !{!"_ZTS13ma_handedness", !7, 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"

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_Z16ma_vec3f_init_3ffff(float noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_Z12ma_vec3f_neg8ma_vec3f(<2 x float>, float) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z12ma_vec3f_dot8ma_vec3fS_(<2 x float>, float, <2 x float>, float) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_Z13ma_vec3f_len28ma_vec3f(<2 x float>, float) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local { <2 x float>, float } @_Z18ma_vec3f_normalize8ma_vec3f(<2 x float>, float) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_Z14ma_vec3f_cross8ma_vec3fS_(<2 x float>, float, <2 x float>, float) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local i32 @ma_spatializer_get_positioning(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @ma_spatializer_get_relative_position_and_direction(ptr noundef %0, ptr noundef readonly %1, ptr noundef writeonly %2, ptr noundef writeonly %3) local_unnamed_addr #4 {
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %7, label %5

5:                                                ; preds = %4
  store <2 x float> zeroinitializer, ptr %2, align 4, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %2, i64 8
  store float 0.000000e+00, ptr %6, align 4, !tbaa !9
  br label %7

7:                                                ; preds = %5, %4
  %.not177 = icmp eq ptr %3, null
  br i1 %.not177, label %10, label %8

8:                                                ; preds = %7
  store <2 x float> zeroinitializer, ptr %3, align 4, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %3, i64 8
  store float -1.000000e+00, ptr %9, align 4, !tbaa !9
  br label %10

10:                                               ; preds = %8, %7
  %11 = icmp eq ptr %0, null
  br i1 %11, label %92, label %12

12:                                               ; preds = %10
  %13 = icmp eq ptr %1, null
  br i1 %13, label %17, label %14

14:                                               ; preds = %12
  %15 = tail call i32 @ma_spatializer_get_positioning(ptr noundef nonnull %0)
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %17, label %23

17:                                               ; preds = %14, %12
  br i1 %.not, label %20, label %18

18:                                               ; preds = %17
  %19 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 8 dereferenceable(12) %19, i64 12, i1 false), !tbaa.struct !11
  br label %20

20:                                               ; preds = %18, %17
  br i1 %.not177, label %92, label %21

21:                                               ; preds = %20
  %22 = getelementptr inbounds i8, ptr %0, i64 84
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) %22, i64 12, i1 false), !tbaa.struct !11
  br label %92

23:                                               ; preds = %14
  %24 = getelementptr inbounds i8, ptr %1, i64 60
  %.sroa.090.0.copyload = load <2 x float>, ptr %24, align 4
  %.sroa.291.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 68
  %.sroa.291.0.copyload = load float, ptr %.sroa.291.0..sroa_idx, align 4, !tbaa !5
  %25 = tail call { <2 x float>, float } @_Z18ma_vec3f_normalize8ma_vec3f(<2 x float> %.sroa.090.0.copyload, float %.sroa.291.0.copyload)
  %.fca.0.extract84 = extractvalue { <2 x float>, float } %25, 0
  %.fca.1.extract85 = extractvalue { <2 x float>, float } %25, 1
  %26 = getelementptr inbounds i8, ptr %1, i64 36
  %.sroa.076.0.copyload = load <2 x float>, ptr %26, align 4
  %.sroa.277.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 44
  %.sroa.277.0.copyload = load float, ptr %.sroa.277.0..sroa_idx, align 4, !tbaa !5
  %27 = tail call { <2 x float>, float } @_Z14ma_vec3f_cross8ma_vec3fS_(<2 x float> %.fca.0.extract84, float %.fca.1.extract85, <2 x float> %.sroa.076.0.copyload, float %.sroa.277.0.copyload)
  %.fca.0.extract68 = extractvalue { <2 x float>, float } %27, 0
  %.fca.1.extract69 = extractvalue { <2 x float>, float } %27, 1
  %28 = tail call { <2 x float>, float } @_Z18ma_vec3f_normalize8ma_vec3f(<2 x float> %.fca.0.extract68, float %.fca.1.extract69)
  %.fca.0.extract62 = extractvalue { <2 x float>, float } %28, 0
  %.fca.1.extract63 = extractvalue { <2 x float>, float } %28, 1
  %29 = tail call noundef float @_Z13ma_vec3f_len28ma_vec3f(<2 x float> %.fca.0.extract62, float %.fca.1.extract63)
  %30 = fcmp oeq float %29, 0.000000e+00
  br i1 %30, label %31, label %33

31:                                               ; preds = %23
  %32 = tail call { <2 x float>, float } @_Z16ma_vec3f_init_3ffff(float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %.fca.0.extract52 = extractvalue { <2 x float>, float } %32, 0
  %.fca.1.extract53 = extractvalue { <2 x float>, float } %32, 1
  br label %33

33:                                               ; preds = %31, %23
  %.sroa.0113.0 = phi <2 x float> [ %.fca.0.extract52, %31 ], [ %.fca.0.extract62, %23 ]
  %.sroa.11118.0 = phi float [ %.fca.1.extract53, %31 ], [ %.fca.1.extract63, %23 ]
  %34 = tail call { <2 x float>, float } @_Z14ma_vec3f_cross8ma_vec3fS_(<2 x float> %.sroa.0113.0, float %.sroa.11118.0, <2 x float> %.fca.0.extract84, float %.fca.1.extract85)
  %.fca.0.extract38 = extractvalue { <2 x float>, float } %34, 0
  %.fca.1.extract39 = extractvalue { <2 x float>, float } %34, 1
  %35 = getelementptr inbounds i8, ptr %1, i64 16
  %36 = load i32, ptr %35, align 8, !tbaa !12
  %37 = icmp eq i32 %36, 1
  br i1 %37, label %38, label %40

38:                                               ; preds = %33
  %39 = tail call { <2 x float>, float } @_Z12ma_vec3f_neg8ma_vec3f(<2 x float> %.sroa.0113.0, float %.sroa.11118.0)
  %.fca.0.extract29 = extractvalue { <2 x float>, float } %39, 0
  %.fca.1.extract30 = extractvalue { <2 x float>, float } %39, 1
  br label %40

40:                                               ; preds = %38, %33
  %.sroa.0113.1 = phi <2 x float> [ %.fca.0.extract29, %38 ], [ %.sroa.0113.0, %33 ]
  %.sroa.11118.1 = phi float [ %.fca.1.extract30, %38 ], [ %.sroa.11118.0, %33 ]
  %41 = getelementptr inbounds i8, ptr %1, i64 48
  %.sroa.025.0.copyload = load <2 x float>, ptr %41, align 8
  %.sroa.226.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 56
  %.sroa.226.0.copyload = load float, ptr %.sroa.226.0..sroa_idx, align 8, !tbaa !5
  %42 = tail call noundef float @_Z12ma_vec3f_dot8ma_vec3fS_(<2 x float> %.sroa.0113.1, float %.sroa.11118.1, <2 x float> %.sroa.025.0.copyload, float %.sroa.226.0.copyload)
  %.sroa.017.0.copyload = load <2 x float>, ptr %41, align 8
  %.sroa.218.0.copyload = load float, ptr %.sroa.226.0..sroa_idx, align 8, !tbaa !5
  %43 = tail call noundef float @_Z12ma_vec3f_dot8ma_vec3fS_(<2 x float> %.fca.0.extract38, float %.fca.1.extract39, <2 x float> %.sroa.017.0.copyload, float %.sroa.218.0.copyload)
  %.sroa.0106.0.vec.extract = extractelement <2 x float> %.fca.0.extract84, i64 0
  %44 = fneg float %.sroa.0106.0.vec.extract
  %.sroa.0106.4.vec.extract = extractelement <2 x float> %.fca.0.extract84, i64 1
  %45 = fneg float %.sroa.0106.4.vec.extract
  %46 = fneg float %.fca.1.extract85
  %47 = tail call { <2 x float>, float } @_Z12ma_vec3f_neg8ma_vec3f(<2 x float> %.fca.0.extract84, float %.fca.1.extract85)
  %.fca.0.extract = extractvalue { <2 x float>, float } %47, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %47, 1
  %.sroa.03.0.copyload = load <2 x float>, ptr %41, align 8
  %.sroa.24.0.copyload = load float, ptr %.sroa.226.0..sroa_idx, align 8, !tbaa !5
  %48 = tail call noundef float @_Z12ma_vec3f_dot8ma_vec3fS_(<2 x float> %.fca.0.extract, float %.fca.1.extract, <2 x float> %.sroa.03.0.copyload, float %.sroa.24.0.copyload)
  br i1 %.not, label %72, label %49

49:                                               ; preds = %40
  %50 = getelementptr inbounds i8, ptr %0, i64 72
  %.sroa.0119.0.copyload = load float, ptr %50, align 8, !tbaa !5
  %.sroa.10.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 76
  %.sroa.10.0.copyload = load float, ptr %.sroa.10.0..sroa_idx, align 4, !tbaa !5
  %.sroa.16.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 80
  %.sroa.16.0.copyload = load float, ptr %.sroa.16.0..sroa_idx, align 8, !tbaa !5
  %51 = shufflevector <2 x float> %.sroa.0113.1, <2 x float> %.fca.0.extract38, <2 x i32> <i32 1, i32 3>
  %52 = insertelement <2 x float> poison, float %.sroa.10.0.copyload, i64 0
  %53 = shufflevector <2 x float> %52, <2 x float> poison, <2 x i32> zeroinitializer
  %54 = fmul <2 x float> %51, %53
  %55 = shufflevector <2 x float> %.sroa.0113.1, <2 x float> %.fca.0.extract38, <2 x i32> <i32 0, i32 2>
  %56 = insertelement <2 x float> poison, float %.sroa.0119.0.copyload, i64 0
  %57 = shufflevector <2 x float> %56, <2 x float> poison, <2 x i32> zeroinitializer
  %58 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %55, <2 x float> %57, <2 x float> %54)
  %59 = insertelement <2 x float> poison, float %.sroa.11118.1, i64 0
  %60 = insertelement <2 x float> %59, float %.fca.1.extract39, i64 1
  %61 = insertelement <2 x float> poison, float %.sroa.16.0.copyload, i64 0
  %62 = shufflevector <2 x float> %61, <2 x float> poison, <2 x i32> zeroinitializer
  %63 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %60, <2 x float> %62, <2 x float> %58)
  %64 = insertelement <2 x float> poison, float %42, i64 0
  %65 = insertelement <2 x float> %64, float %43, i64 1
  %66 = fsub <2 x float> %63, %65
  store <2 x float> %66, ptr %2, align 4, !tbaa !5
  %67 = fmul float %.sroa.10.0.copyload, %45
  %68 = tail call float @llvm.fmuladd.f32(float %44, float %.sroa.0119.0.copyload, float %67)
  %69 = tail call float @llvm.fmuladd.f32(float %46, float %.sroa.16.0.copyload, float %68)
  %70 = fsub float %69, %48
  %71 = getelementptr inbounds i8, ptr %2, i64 8
  store float %70, ptr %71, align 4, !tbaa !9
  br label %72

72:                                               ; preds = %49, %40
  br i1 %.not177, label %92, label %73

73:                                               ; preds = %72
  %74 = getelementptr inbounds i8, ptr %0, i64 84
  %.sroa.0119.0.copyload125 = load float, ptr %74, align 4, !tbaa !5
  %.sroa.10.0..sroa_idx126 = getelementptr inbounds i8, ptr %0, i64 88
  %.sroa.10.0.copyload127 = load float, ptr %.sroa.10.0..sroa_idx126, align 4, !tbaa !5
  %.sroa.16.0..sroa_idx133 = getelementptr inbounds i8, ptr %0, i64 92
  %.sroa.16.0.copyload134 = load float, ptr %.sroa.16.0..sroa_idx133, align 4, !tbaa !5
  %75 = shufflevector <2 x float> %.sroa.0113.1, <2 x float> %.fca.0.extract38, <2 x i32> <i32 1, i32 3>
  %76 = insertelement <2 x float> poison, float %.sroa.10.0.copyload127, i64 0
  %77 = shufflevector <2 x float> %76, <2 x float> poison, <2 x i32> zeroinitializer
  %78 = fmul <2 x float> %75, %77
  %79 = shufflevector <2 x float> %.sroa.0113.1, <2 x float> %.fca.0.extract38, <2 x i32> <i32 0, i32 2>
  %80 = insertelement <2 x float> poison, float %.sroa.0119.0.copyload125, i64 0
  %81 = shufflevector <2 x float> %80, <2 x float> poison, <2 x i32> zeroinitializer
  %82 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %79, <2 x float> %81, <2 x float> %78)
  %83 = insertelement <2 x float> poison, float %.sroa.11118.1, i64 0
  %84 = insertelement <2 x float> %83, float %.fca.1.extract39, i64 1
  %85 = insertelement <2 x float> poison, float %.sroa.16.0.copyload134, i64 0
  %86 = shufflevector <2 x float> %85, <2 x float> poison, <2 x i32> zeroinitializer
  %87 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %84, <2 x float> %86, <2 x float> %82)
  store <2 x float> %87, ptr %3, align 4, !tbaa !5
  %88 = fmul float %.sroa.10.0.copyload127, %45
  %89 = tail call float @llvm.fmuladd.f32(float %44, float %.sroa.0119.0.copyload125, float %88)
  %90 = tail call float @llvm.fmuladd.f32(float %46, float %.sroa.16.0.copyload134, float %89)
  %91 = getelementptr inbounds i8, ptr %3, i64 8
  store float %90, ptr %91, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %72, %73, %20, %21, %10
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #5

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #4 = { mustprogress 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 #5 = { nocallback nofree nosync nounwind speculatable 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTS8ma_vec3f", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5}
!12 = !{!13, !17, i64 16}
!13 = !{!"_ZTS23ma_spatializer_listener", !14, i64 0, !10, i64 48, !10, i64 60, !10, i64 72, !15, i64 84, !15, i64 88, !16, i64 96}
!14 = !{!"_ZTS30ma_spatializer_listener_config", !15, i64 0, !16, i64 8, !17, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !10, i64 36}
!15 = !{!"int", !7, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"_ZTS13ma_handedness", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass