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

@.str.6 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__.ma_spatializer_process_pcm_frames = external hidden unnamed_addr constant [122 x i8], align 1

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

; Function Attrs: 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @ma_silence_pcm_frames(ptr noundef, i64 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @ma_copy_pcm_frames(ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ma_gainer_process_pcm_frames(ptr noundef, ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef float @_ZL15ma_mix_f32_fastfff(float noundef, float noundef, float noundef) #4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_Z12ma_vec3f_len8ma_vec3f(<2 x float>, float) #7

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

; Function Attrs: mustprogress uwtable
define dso_local i32 @ma_spatializer_process_pcm_frames(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4) #7 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.ma_vec3f, align 4
  %17 = alloca %struct.ma_vec3f, align 4
  %18 = alloca %struct.ma_vec3f, align 4
  %19 = alloca %struct.ma_vec3f, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca %struct.ma_vec3f, align 4
  %31 = alloca { <2 x float>, float }, align 8
  %32 = alloca %struct.ma_vec3f, align 4
  %33 = alloca { <2 x float>, float }, align 4
  %34 = alloca float, align 4
  %35 = alloca %struct.ma_vec3f, align 4
  %36 = alloca { <2 x float>, float }, align 8
  %37 = alloca float, align 4
  %38 = alloca float, align 4
  %39 = alloca float, align 4
  %40 = alloca %struct.ma_vec3f, align 4
  %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 8
  %45 = alloca { <2 x float>, float }, align 4
  %46 = alloca { <2 x float>, float }, align 4
  %47 = alloca %struct.ma_vec3f, align 4
  %48 = alloca float, align 4
  %49 = alloca float, align 4
  %50 = alloca float, align 4
  %51 = alloca %struct.ma_vec3f, align 4
  %52 = alloca { <2 x float>, float }, align 8
  %53 = alloca %struct.ma_vec3f, align 4
  %54 = alloca { <2 x float>, float }, align 8
  %55 = alloca %struct.ma_vec3f, align 4
  %56 = alloca %struct.ma_vec3f, align 4
  %57 = alloca { <2 x float>, float }, align 4
  %58 = alloca { <2 x float>, float }, align 4
  %59 = alloca %struct.ma_vec3f, align 4
  %60 = alloca float, align 4
  %61 = alloca i8, align 1
  %62 = alloca float, align 4
  %63 = alloca float, align 4
  %64 = alloca %struct.ma_vec3f, align 4
  %65 = alloca %struct.ma_vec3f, align 4
  %66 = alloca { <2 x float>, float }, align 8
  %67 = alloca { <2 x float>, float }, align 4
  %68 = alloca { <2 x float>, float }, align 4
  %69 = alloca %struct.ma_vec3f, align 4
  %70 = alloca %struct.ma_vec3f, align 4
  %71 = alloca %struct.ma_vec3f, align 4
  %72 = alloca { <2 x float>, float }, align 4
  %73 = alloca { <2 x float>, float }, align 4
  %74 = alloca { <2 x float>, float }, align 8
  %75 = alloca %struct.ma_vec3f, align 4
  %76 = alloca %struct.ma_vec3f, align 4
  %77 = alloca { <2 x float>, float }, align 4
  %78 = alloca { <2 x float>, float }, align 4
  %79 = alloca { <2 x float>, float }, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store i64 %4, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.ma_spatializer, ptr %80, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !11
  store ptr %82, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds %struct.ma_spatializer_listener_config, ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !21
  store ptr %86, ptr %13, align 8, !tbaa !5
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %90

89:                                               ; preds = %5
  store i32 -2, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %494

90:                                               ; preds = %5
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.ma_spatializer, ptr %91, i32 0, i32 3
  %93 = load atomic i32, ptr %92 seq_cst, align 8
  store i32 %93, ptr %15, align 4
  %94 = load i32, ptr %15, align 4, !tbaa !24
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %96, label %137

96:                                               ; preds = %90
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = call i32 @ma_spatializer_listener_is_enabled(ptr noundef %97)
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %128

100:                                              ; preds = %96
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.ma_spatializer, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !25
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ma_spatializer, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !26
  %107 = icmp eq i32 %103, %106
  br i1 %107, label %108, label %115

108:                                              ; preds = %100
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = load i64, ptr %11, align 8, !tbaa !9
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.ma_spatializer, ptr %112, i32 0, i32 0
  %114 = load i32, ptr %113, align 8, !tbaa !25
  call void @ma_copy_pcm_frames(ptr noundef %109, ptr noundef %110, i64 noundef %111, i32 noundef 5, i32 noundef %114)
  br label %127

115:                                              ; preds = %100
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ma_spatializer, ptr %118, i32 0, i32 1
  %120 = load i32, ptr %119, align 4, !tbaa !26
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ma_spatializer, ptr %123, i32 0, i32 0
  %125 = load i32, ptr %124, align 8, !tbaa !25
  %126 = load i64, ptr %11, align 8, !tbaa !9
  call void @_ZL24ma_channel_map_apply_f32PfPKhjPKfS1_jy19ma_channel_mix_mode22ma_mono_expansion_mode(ptr noundef %116, ptr noundef %117, i32 noundef %120, ptr noundef %121, ptr noundef %122, i32 noundef %125, i64 noundef %126, i32 noundef 0, i32 noundef 0)
  br label %127

127:                                              ; preds = %115, %108
  br label %134

128:                                              ; preds = %96
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = load i64, ptr %11, align 8, !tbaa !9
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.ma_spatializer, ptr %131, i32 0, i32 1
  %133 = load i32, ptr %132, align 4, !tbaa !26
  call void @ma_silence_pcm_frames(ptr noundef %129, i64 noundef %130, i32 noundef 5, i32 noundef %133)
  br label %134

134:                                              ; preds = %128, %127
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.ma_spatializer, ptr %135, i32 0, i32 20
  store float 1.000000e+00, ptr %136, align 4, !tbaa !27
  br label %493

137:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store float 0.000000e+00, ptr %21, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store float 1.000000e+00, ptr %22, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.ma_spatializer, ptr %138, i32 0, i32 1
  %140 = load i32, ptr %139, align 4, !tbaa !26
  store i32 %140, ptr %24, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %141 = load ptr, ptr %7, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.ma_spatializer, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 8, !tbaa !25
  store i32 %143, ptr %25, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = call float @ma_spatializer_get_min_distance(ptr noundef %144)
  store float %145, ptr %26, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = call float @ma_spatializer_get_max_distance(ptr noundef %146)
  store float %147, ptr %27, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = call float @ma_spatializer_get_rolloff(ptr noundef %148)
  store float %149, ptr %28, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = call float @ma_spatializer_get_doppler_factor(ptr noundef %150)
  store float %151, ptr %29, align 4, !tbaa !28
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = icmp ne ptr %152, null
  br i1 %153, label %154, label %161

154:                                              ; preds = %137
  %155 = load ptr, ptr %8, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %155, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 8 %156, i64 12, i1 false), !tbaa.struct !29
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %157, i32 0, i32 0
  %159 = getelementptr inbounds %struct.ma_spatializer_listener_config, ptr %158, i32 0, i32 6
  %160 = load float, ptr %159, align 8, !tbaa !30
  store float %160, ptr %20, align 4, !tbaa !28
  br label %163

161:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 12, ptr %30) #8
  %162 = call { <2 x float>, float } @_Z16ma_vec3f_init_3ffff(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  store { <2 x float>, float } %162, ptr %31, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 8 %31, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %30, i64 12, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #8
  store float 0x407574CCC0000000, ptr %20, align 4, !tbaa !28
  br label %163

163:                                              ; preds = %161, %154
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = icmp eq ptr %164, null
  br i1 %165, label %170, label %166

166:                                              ; preds = %163
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = call i32 @ma_spatializer_get_positioning(ptr noundef %167)
  %169 = icmp eq i32 %168, 1
  br i1 %169, label %170, label %175

170:                                              ; preds = %166, %163
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.ma_spatializer, ptr %171, i32 0, i32 17
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 8 %172, i64 12, i1 false), !tbaa.struct !29
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.ma_spatializer, ptr %173, i32 0, i32 18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %174, i64 12, i1 false), !tbaa.struct !29
  br label %178

175:                                              ; preds = %166
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  call void @ma_spatializer_get_relative_position_and_direction(ptr noundef %176, ptr noundef %177, ptr noundef %17, ptr noundef %18)
  br label %178

178:                                              ; preds = %175, %170
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %17, i64 12, i1 false), !tbaa.struct !29
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %32, i64 12, i1 false)
  %179 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 0
  %180 = load <2 x float>, ptr %179, align 4
  %181 = getelementptr inbounds { <2 x float>, float }, ptr %33, i32 0, i32 1
  %182 = load float, ptr %181, align 4
  %183 = call noundef float @_Z12ma_vec3f_len8ma_vec3f(<2 x float> %180, float %182)
  store float %183, ptr %21, align 4, !tbaa !28
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = call i32 @ma_spatializer_get_attenuation_model(ptr noundef %184)
  switch i32 %185, label %205 [
    i32 1, label %186
    i32 2, label %192
    i32 3, label %198
    i32 0, label %204
  ]

186:                                              ; preds = %178
  %187 = load float, ptr %21, align 4, !tbaa !28
  %188 = load float, ptr %26, align 4, !tbaa !28
  %189 = load float, ptr %27, align 4, !tbaa !28
  %190 = load float, ptr %28, align 4, !tbaa !28
  %191 = call noundef float @_ZL22ma_attenuation_inverseffff(float noundef %187, float noundef %188, float noundef %189, float noundef %190)
  store float %191, ptr %22, align 4, !tbaa !28
  br label %206

192:                                              ; preds = %178
  %193 = load float, ptr %21, align 4, !tbaa !28
  %194 = load float, ptr %26, align 4, !tbaa !28
  %195 = load float, ptr %27, align 4, !tbaa !28
  %196 = load float, ptr %28, align 4, !tbaa !28
  %197 = call noundef float @_ZL21ma_attenuation_linearffff(float noundef %193, float noundef %194, float noundef %195, float noundef %196)
  store float %197, ptr %22, align 4, !tbaa !28
  br label %206

198:                                              ; preds = %178
  %199 = load float, ptr %21, align 4, !tbaa !28
  %200 = load float, ptr %26, align 4, !tbaa !28
  %201 = load float, ptr %27, align 4, !tbaa !28
  %202 = load float, ptr %28, align 4, !tbaa !28
  %203 = call noundef float @_ZL26ma_attenuation_exponentialffff(float noundef %199, float noundef %200, float noundef %201, float noundef %202)
  store float %203, ptr %22, align 4, !tbaa !28
  br label %206

204:                                              ; preds = %178
  br label %205

205:                                              ; preds = %204, %178
  store float 1.000000e+00, ptr %22, align 4, !tbaa !28
  br label %206

206:                                              ; preds = %205, %198, %192, %186
  %207 = load float, ptr %21, align 4, !tbaa !28
  %208 = fcmp ogt float %207, 0x3F50624DE0000000
  br i1 %208, label %209, label %224

209:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %210 = load float, ptr %21, align 4, !tbaa !28
  %211 = fdiv float 1.000000e+00, %210
  store float %211, ptr %34, align 4, !tbaa !28
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %17, i64 12, i1 false), !tbaa.struct !29
  %212 = load float, ptr %34, align 4, !tbaa !28
  %213 = getelementptr inbounds %struct.ma_vec3f, ptr %16, i32 0, i32 0
  %214 = load float, ptr %213, align 4, !tbaa !31
  %215 = fmul float %214, %212
  store float %215, ptr %213, align 4, !tbaa !31
  %216 = load float, ptr %34, align 4, !tbaa !28
  %217 = getelementptr inbounds %struct.ma_vec3f, ptr %16, i32 0, i32 1
  %218 = load float, ptr %217, align 4, !tbaa !32
  %219 = fmul float %218, %216
  store float %219, ptr %217, align 4, !tbaa !32
  %220 = load float, ptr %34, align 4, !tbaa !28
  %221 = getelementptr inbounds %struct.ma_vec3f, ptr %16, i32 0, i32 2
  %222 = load float, ptr %221, align 4, !tbaa !33
  %223 = fmul float %222, %220
  store float %223, ptr %221, align 4, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  br label %226

224:                                              ; preds = %206
  store float 0.000000e+00, ptr %21, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 12, ptr %35) #8
  %225 = call { <2 x float>, float } @_Z16ma_vec3f_init_3ffff(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  store { <2 x float>, float } %225, ptr %36, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 8 %36, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 4 %35, i64 12, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 12, ptr %35) #8
  br label %226

226:                                              ; preds = %224, %209
  %227 = load float, ptr %21, align 4, !tbaa !28
  %228 = fcmp ogt float %227, 0.000000e+00
  br i1 %228, label %229, label %296

229:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %230 = load ptr, ptr %7, align 8, !tbaa !5
  call void @ma_spatializer_get_cone(ptr noundef %230, ptr noundef %37, ptr noundef %38, ptr noundef %39)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 4 %18, i64 12, i1 false), !tbaa.struct !29
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %16, i64 12, i1 false), !tbaa.struct !29
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %42, i64 12, i1 false)
  %231 = getelementptr inbounds { <2 x float>, float }, ptr %43, i32 0, i32 0
  %232 = load <2 x float>, ptr %231, align 4
  %233 = getelementptr inbounds { <2 x float>, float }, ptr %43, i32 0, i32 1
  %234 = load float, ptr %233, align 4
  %235 = call { <2 x float>, float } @_Z12ma_vec3f_neg8ma_vec3f(<2 x float> %232, float %234)
  store { <2 x float>, float } %235, ptr %44, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %41, ptr align 8 %44, i64 12, i1 false)
  %236 = load float, ptr %37, align 4, !tbaa !28
  %237 = load float, ptr %38, align 4, !tbaa !28
  %238 = load float, ptr %39, align 4, !tbaa !28
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 4 %40, i64 12, i1 false)
  %239 = getelementptr inbounds { <2 x float>, float }, ptr %45, i32 0, i32 0
  %240 = load <2 x float>, ptr %239, align 4
  %241 = getelementptr inbounds { <2 x float>, float }, ptr %45, i32 0, i32 1
  %242 = load float, ptr %241, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %41, i64 12, i1 false)
  %243 = getelementptr inbounds { <2 x float>, float }, ptr %46, i32 0, i32 0
  %244 = load <2 x float>, ptr %243, align 4
  %245 = getelementptr inbounds { <2 x float>, float }, ptr %46, i32 0, i32 1
  %246 = load float, ptr %245, align 4
  %247 = call noundef float @_ZL25ma_calculate_angular_gain8ma_vec3fS_fff(<2 x float> %240, float %242, <2 x float> %244, float %246, float noundef %236, float noundef %237, float noundef %238)
  %248 = load float, ptr %22, align 4, !tbaa !28
  %249 = fmul float %248, %247
  store float %249, ptr %22, align 4, !tbaa !28
  %250 = load ptr, ptr %8, align 8, !tbaa !5
  %251 = icmp ne ptr %250, null
  br i1 %251, label %252, label %295

252:                                              ; preds = %229
  %253 = load ptr, ptr %8, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %253, i32 0, i32 0
  %255 = getelementptr inbounds %struct.ma_spatializer_listener_config, ptr %254, i32 0, i32 3
  %256 = load float, ptr %255, align 4, !tbaa !34
  %257 = fcmp olt float %256, 0x401921FB40000000
  br i1 %257, label %258, label %295

258:                                              ; preds = %252
  call void @llvm.lifetime.start.p0(i64 12, ptr %47) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %259, i32 0, i32 0
  %261 = getelementptr inbounds %struct.ma_spatializer_listener_config, ptr %260, i32 0, i32 2
  %262 = load i32, ptr %261, align 8, !tbaa !35
  %263 = icmp eq i32 %262, 0
  br i1 %263, label %264, label %266

264:                                              ; preds = %258
  call void @llvm.lifetime.start.p0(i64 12, ptr %51) #8
  %265 = call { <2 x float>, float } @_Z16ma_vec3f_init_3ffff(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef -1.000000e+00)
  store { <2 x float>, float } %265, ptr %52, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %51, ptr align 8 %52, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %51, i64 12, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 12, ptr %51) #8
  br label %268

266:                                              ; preds = %258
  call void @llvm.lifetime.start.p0(i64 12, ptr %53) #8
  %267 = call { <2 x float>, float } @_Z16ma_vec3f_init_3ffff(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  store { <2 x float>, float } %267, ptr %54, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %53, ptr align 8 %54, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %47, ptr align 4 %53, i64 12, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.end.p0(i64 12, ptr %53) #8
  br label %268

268:                                              ; preds = %266, %264
  %269 = load ptr, ptr %8, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %269, i32 0, i32 0
  %271 = getelementptr inbounds %struct.ma_spatializer_listener_config, ptr %270, i32 0, i32 3
  %272 = load float, ptr %271, align 4, !tbaa !34
  store float %272, ptr %48, align 4, !tbaa !28
  %273 = load ptr, ptr %8, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %273, i32 0, i32 0
  %275 = getelementptr inbounds %struct.ma_spatializer_listener_config, ptr %274, i32 0, i32 4
  %276 = load float, ptr %275, align 8, !tbaa !36
  store float %276, ptr %49, align 4, !tbaa !28
  %277 = load ptr, ptr %8, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %277, i32 0, i32 0
  %279 = getelementptr inbounds %struct.ma_spatializer_listener_config, ptr %278, i32 0, i32 5
  %280 = load float, ptr %279, align 4, !tbaa !37
  store float %280, ptr %50, align 4, !tbaa !28
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %55, ptr align 4 %47, i64 12, i1 false), !tbaa.struct !29
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %56, ptr align 4 %16, i64 12, i1 false), !tbaa.struct !29
  %281 = load float, ptr %48, align 4, !tbaa !28
  %282 = load float, ptr %49, align 4, !tbaa !28
  %283 = load float, ptr %50, align 4, !tbaa !28
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %57, ptr align 4 %55, i64 12, i1 false)
  %284 = getelementptr inbounds { <2 x float>, float }, ptr %57, i32 0, i32 0
  %285 = load <2 x float>, ptr %284, align 4
  %286 = getelementptr inbounds { <2 x float>, float }, ptr %57, i32 0, i32 1
  %287 = load float, ptr %286, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %58, ptr align 4 %56, i64 12, i1 false)
  %288 = getelementptr inbounds { <2 x float>, float }, ptr %58, i32 0, i32 0
  %289 = load <2 x float>, ptr %288, align 4
  %290 = getelementptr inbounds { <2 x float>, float }, ptr %58, i32 0, i32 1
  %291 = load float, ptr %290, align 4
  %292 = call noundef float @_ZL25ma_calculate_angular_gain8ma_vec3fS_fff(<2 x float> %285, float %287, <2 x float> %289, float %291, float noundef %281, float noundef %282, float noundef %283)
  %293 = load float, ptr %22, align 4, !tbaa !28
  %294 = fmul float %293, %292
  store float %294, ptr %22, align 4, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %47) #8
  br label %295

295:                                              ; preds = %268, %252, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %297

296:                                              ; preds = %226
  br label %297

297:                                              ; preds = %296, %295
  %298 = load ptr, ptr %7, align 8, !tbaa !5
  %299 = call float @ma_spatializer_get_min_gain(ptr noundef %298)
  %300 = load float, ptr %22, align 4, !tbaa !28
  %301 = load ptr, ptr %7, align 8, !tbaa !5
  %302 = call float @ma_spatializer_get_max_gain(ptr noundef %301)
  %303 = fcmp olt float %300, %302
  br i1 %303, label %304, label %306

304:                                              ; preds = %297
  %305 = load float, ptr %22, align 4, !tbaa !28
  br label %309

306:                                              ; preds = %297
  %307 = load ptr, ptr %7, align 8, !tbaa !5
  %308 = call float @ma_spatializer_get_max_gain(ptr noundef %307)
  br label %309

309:                                              ; preds = %306, %304
  %310 = phi float [ %305, %304 ], [ %308, %306 ]
  %311 = fcmp ogt float %299, %310
  br i1 %311, label %312, label %315

312:                                              ; preds = %309
  %313 = load ptr, ptr %7, align 8, !tbaa !5
  %314 = call float @ma_spatializer_get_min_gain(ptr noundef %313)
  br label %327

315:                                              ; preds = %309
  %316 = load float, ptr %22, align 4, !tbaa !28
  %317 = load ptr, ptr %7, align 8, !tbaa !5
  %318 = call float @ma_spatializer_get_max_gain(ptr noundef %317)
  %319 = fcmp olt float %316, %318
  br i1 %319, label %320, label %322

320:                                              ; preds = %315
  %321 = load float, ptr %22, align 4, !tbaa !28
  br label %325

322:                                              ; preds = %315
  %323 = load ptr, ptr %7, align 8, !tbaa !5
  %324 = call float @ma_spatializer_get_max_gain(ptr noundef %323)
  br label %325

325:                                              ; preds = %322, %320
  %326 = phi float [ %321, %320 ], [ %324, %322 ]
  br label %327

327:                                              ; preds = %325, %312
  %328 = phi float [ %314, %312 ], [ %326, %325 ]
  store float %328, ptr %22, align 4, !tbaa !28
  %329 = load ptr, ptr %13, align 8, !tbaa !5
  %330 = icmp ne ptr %329, null
  br i1 %330, label %331, label %332

331:                                              ; preds = %327
  br label %334

332:                                              ; preds = %327
  call void @__assert_fail(ptr noundef @.str.68, ptr noundef @.str.6, i32 noundef 48523, ptr noundef @__PRETTY_FUNCTION__.ma_spatializer_process_pcm_frames) #9
  unreachable

333:                                              ; No predecessors!
  br label %334

334:                                              ; preds = %333, %331
  store i32 0, ptr %23, align 4, !tbaa !24
  br label %335

335:                                              ; preds = %347, %334
  %336 = load i32, ptr %23, align 4, !tbaa !24
  %337 = load i32, ptr %24, align 4, !tbaa !24
  %338 = icmp ult i32 %336, %337
  br i1 %338, label %339, label %350

339:                                              ; preds = %335
  %340 = load float, ptr %22, align 4, !tbaa !28
  %341 = load ptr, ptr %7, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.ma_spatializer, ptr %341, i32 0, i32 22
  %343 = load ptr, ptr %342, align 8, !tbaa !38
  %344 = load i32, ptr %23, align 4, !tbaa !24
  %345 = zext i32 %344 to i64
  %346 = getelementptr inbounds float, ptr %343, i64 %345
  store float %340, ptr %346, align 4, !tbaa !28
  br label %347

347:                                              ; preds = %339
  %348 = load i32, ptr %23, align 4, !tbaa !24
  %349 = add i32 %348, 1
  store i32 %349, ptr %23, align 4, !tbaa !24
  br label %335, !llvm.loop !39

350:                                              ; preds = %335
  %351 = load ptr, ptr %8, align 8, !tbaa !5
  %352 = call i32 @ma_spatializer_listener_is_enabled(ptr noundef %351)
  %353 = icmp ne i32 %352, 0
  br i1 %353, label %354, label %362

354:                                              ; preds = %350
  %355 = load ptr, ptr %9, align 8, !tbaa !5
  %356 = load ptr, ptr %13, align 8, !tbaa !5
  %357 = load i32, ptr %24, align 4, !tbaa !24
  %358 = load ptr, ptr %10, align 8, !tbaa !5
  %359 = load ptr, ptr %12, align 8, !tbaa !5
  %360 = load i32, ptr %25, align 4, !tbaa !24
  %361 = load i64, ptr %11, align 8, !tbaa !9
  call void @_ZL24ma_channel_map_apply_f32PfPKhjPKfS1_jy19ma_channel_mix_mode22ma_mono_expansion_mode(ptr noundef %355, ptr noundef %356, i32 noundef %357, ptr noundef %358, ptr noundef %359, i32 noundef %360, i64 noundef %361, i32 noundef 0, i32 noundef 0)
  br label %368

362:                                              ; preds = %350
  %363 = load ptr, ptr %9, align 8, !tbaa !5
  %364 = load i64, ptr %11, align 8, !tbaa !9
  %365 = load ptr, ptr %7, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.ma_spatializer, ptr %365, i32 0, i32 1
  %367 = load i32, ptr %366, align 4, !tbaa !26
  call void @ma_silence_pcm_frames(ptr noundef %363, i64 noundef %364, i32 noundef 5, i32 noundef %367)
  br label %368

368:                                              ; preds = %362, %354
  %369 = load float, ptr %21, align 4, !tbaa !28
  %370 = fcmp ogt float %369, 0.000000e+00
  br i1 %370, label %371, label %440

371:                                              ; preds = %368
  call void @llvm.lifetime.start.p0(i64 12, ptr %59) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %59, ptr align 4 %17, i64 12, i1 false), !tbaa.struct !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #8
  %372 = load float, ptr %21, align 4, !tbaa !28
  %373 = fdiv float 1.000000e+00, %372
  store float %373, ptr %60, align 4, !tbaa !28
  %374 = load float, ptr %60, align 4, !tbaa !28
  %375 = getelementptr inbounds %struct.ma_vec3f, ptr %59, i32 0, i32 0
  %376 = load float, ptr %375, align 4, !tbaa !31
  %377 = fmul float %376, %374
  store float %377, ptr %375, align 4, !tbaa !31
  %378 = load float, ptr %60, align 4, !tbaa !28
  %379 = getelementptr inbounds %struct.ma_vec3f, ptr %59, i32 0, i32 1
  %380 = load float, ptr %379, align 4, !tbaa !32
  %381 = fmul float %380, %378
  store float %381, ptr %379, align 4, !tbaa !32
  %382 = load float, ptr %60, align 4, !tbaa !28
  %383 = getelementptr inbounds %struct.ma_vec3f, ptr %59, i32 0, i32 2
  %384 = load float, ptr %383, align 4, !tbaa !33
  %385 = fmul float %384, %382
  store float %385, ptr %383, align 4, !tbaa !33
  store i32 0, ptr %23, align 4, !tbaa !24
  br label %386

386:                                              ; preds = %436, %371
  %387 = load i32, ptr %23, align 4, !tbaa !24
  %388 = load i32, ptr %24, align 4, !tbaa !24
  %389 = icmp ult i32 %387, %388
  br i1 %389, label %390, label %439

390:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 1, ptr %61) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #8
  %391 = load ptr, ptr %13, align 8, !tbaa !5
  %392 = load i32, ptr %24, align 4, !tbaa !24
  %393 = load i32, ptr %23, align 4, !tbaa !24
  %394 = call zeroext i8 @ma_channel_map_get_channel(ptr noundef %391, i32 noundef %392, i32 noundef %393)
  store i8 %394, ptr %61, align 1, !tbaa !41
  %395 = load i8, ptr %61, align 1, !tbaa !41
  %396 = call noundef i32 @_ZL30ma_is_spatial_channel_positionh(i8 noundef zeroext %395)
  %397 = icmp ne i32 %396, 0
  br i1 %397, label %398, label %413

398:                                              ; preds = %390
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %64, ptr align 4 %59, i64 12, i1 false), !tbaa.struct !29
  %399 = load i8, ptr %61, align 1, !tbaa !41
  %400 = call { <2 x float>, float } @_ZL24ma_get_channel_directionh(i8 noundef zeroext %399)
  store { <2 x float>, float } %400, ptr %66, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 8 %66, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %67, ptr align 4 %64, i64 12, i1 false)
  %401 = getelementptr inbounds { <2 x float>, float }, ptr %67, i32 0, i32 0
  %402 = load <2 x float>, ptr %401, align 4
  %403 = getelementptr inbounds { <2 x float>, float }, ptr %67, i32 0, i32 1
  %404 = load float, ptr %403, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 4 %65, i64 12, i1 false)
  %405 = getelementptr inbounds { <2 x float>, float }, ptr %68, i32 0, i32 0
  %406 = load <2 x float>, ptr %405, align 4
  %407 = getelementptr inbounds { <2 x float>, float }, ptr %68, i32 0, i32 1
  %408 = load float, ptr %407, align 4
  %409 = call noundef float @_Z12ma_vec3f_dot8ma_vec3fS_(<2 x float> %402, float %404, <2 x float> %406, float %408)
  %410 = load ptr, ptr %7, align 8, !tbaa !5
  %411 = call float @ma_spatializer_get_directional_attenuation_factor(ptr noundef %410)
  %412 = call noundef float @_ZL15ma_mix_f32_fastfff(float noundef 1.000000e+00, float noundef %409, float noundef %411)
  store float %412, ptr %62, align 4, !tbaa !28
  br label %414

413:                                              ; preds = %390
  store float 1.000000e+00, ptr %62, align 4, !tbaa !28
  br label %414

414:                                              ; preds = %413, %398
  store float 0x3FC99999A0000000, ptr %63, align 4, !tbaa !28
  %415 = load float, ptr %62, align 4, !tbaa !28
  %416 = fadd float %415, 1.000000e+00
  %417 = fmul float %416, 5.000000e-01
  store float %417, ptr %62, align 4, !tbaa !28
  %418 = load float, ptr %62, align 4, !tbaa !28
  %419 = load float, ptr %63, align 4, !tbaa !28
  %420 = fcmp ogt float %418, %419
  br i1 %420, label %421, label %423

421:                                              ; preds = %414
  %422 = load float, ptr %62, align 4, !tbaa !28
  br label %425

423:                                              ; preds = %414
  %424 = load float, ptr %63, align 4, !tbaa !28
  br label %425

425:                                              ; preds = %423, %421
  %426 = phi float [ %422, %421 ], [ %424, %423 ]
  store float %426, ptr %62, align 4, !tbaa !28
  %427 = load float, ptr %62, align 4, !tbaa !28
  %428 = load ptr, ptr %7, align 8, !tbaa !5
  %429 = getelementptr inbounds %struct.ma_spatializer, ptr %428, i32 0, i32 22
  %430 = load ptr, ptr %429, align 8, !tbaa !38
  %431 = load i32, ptr %23, align 4, !tbaa !24
  %432 = zext i32 %431 to i64
  %433 = getelementptr inbounds float, ptr %430, i64 %432
  %434 = load float, ptr %433, align 4, !tbaa !28
  %435 = fmul float %434, %427
  store float %435, ptr %433, align 4, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %61) #8
  br label %436

436:                                              ; preds = %425
  %437 = load i32, ptr %23, align 4, !tbaa !24
  %438 = add i32 %437, 1
  store i32 %438, ptr %23, align 4, !tbaa !24
  br label %386, !llvm.loop !42

439:                                              ; preds = %386
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %59) #8
  br label %441

440:                                              ; preds = %368
  br label %441

441:                                              ; preds = %440, %439
  %442 = load ptr, ptr %7, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.ma_spatializer, ptr %442, i32 0, i32 21
  %444 = load ptr, ptr %7, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.ma_spatializer, ptr %444, i32 0, i32 22
  %446 = load ptr, ptr %445, align 8, !tbaa !38
  %447 = call i32 @ma_gainer_set_gains(ptr noundef %443, ptr noundef %446)
  %448 = load ptr, ptr %7, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.ma_spatializer, ptr %448, i32 0, i32 21
  %450 = load ptr, ptr %9, align 8, !tbaa !5
  %451 = load ptr, ptr %9, align 8, !tbaa !5
  %452 = load i64, ptr %11, align 8, !tbaa !9
  %453 = call i32 @ma_gainer_process_pcm_frames(ptr noundef %449, ptr noundef %450, ptr noundef %451, i64 noundef %452)
  %454 = load float, ptr %29, align 4, !tbaa !28
  %455 = fcmp ogt float %454, 0.000000e+00
  br i1 %455, label %456, label %489

456:                                              ; preds = %441
  %457 = load ptr, ptr %8, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.ma_spatializer_listener, ptr %457, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %70, ptr align 8 %458, i64 12, i1 false), !tbaa.struct !29
  %459 = load ptr, ptr %7, align 8, !tbaa !5
  %460 = getelementptr inbounds %struct.ma_spatializer, ptr %459, i32 0, i32 17
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %71, ptr align 8 %460, i64 12, i1 false), !tbaa.struct !29
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 4 %70, i64 12, i1 false)
  %461 = getelementptr inbounds { <2 x float>, float }, ptr %72, i32 0, i32 0
  %462 = load <2 x float>, ptr %461, align 4
  %463 = getelementptr inbounds { <2 x float>, float }, ptr %72, i32 0, i32 1
  %464 = load float, ptr %463, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %73, ptr align 4 %71, i64 12, i1 false)
  %465 = getelementptr inbounds { <2 x float>, float }, ptr %73, i32 0, i32 0
  %466 = load <2 x float>, ptr %465, align 4
  %467 = getelementptr inbounds { <2 x float>, float }, ptr %73, i32 0, i32 1
  %468 = load float, ptr %467, align 4
  %469 = call { <2 x float>, float } @_Z12ma_vec3f_sub8ma_vec3fS_(<2 x float> %462, float %464, <2 x float> %466, float %468)
  store { <2 x float>, float } %469, ptr %74, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %69, ptr align 8 %74, i64 12, i1 false)
  %470 = load ptr, ptr %7, align 8, !tbaa !5
  %471 = getelementptr inbounds %struct.ma_spatializer, ptr %470, i32 0, i32 19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %75, ptr align 8 %471, i64 12, i1 false), !tbaa.struct !29
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %19, i64 12, i1 false), !tbaa.struct !29
  %472 = load float, ptr %20, align 4, !tbaa !28
  %473 = load float, ptr %29, align 4, !tbaa !28
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %77, ptr align 4 %69, i64 12, i1 false)
  %474 = getelementptr inbounds { <2 x float>, float }, ptr %77, i32 0, i32 0
  %475 = load <2 x float>, ptr %474, align 4
  %476 = getelementptr inbounds { <2 x float>, float }, ptr %77, i32 0, i32 1
  %477 = load float, ptr %476, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %78, ptr align 4 %75, i64 12, i1 false)
  %478 = getelementptr inbounds { <2 x float>, float }, ptr %78, i32 0, i32 0
  %479 = load <2 x float>, ptr %478, align 4
  %480 = getelementptr inbounds { <2 x float>, float }, ptr %78, i32 0, i32 1
  %481 = load float, ptr %480, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %79, ptr align 4 %76, i64 12, i1 false)
  %482 = getelementptr inbounds { <2 x float>, float }, ptr %79, i32 0, i32 0
  %483 = load <2 x float>, ptr %482, align 4
  %484 = getelementptr inbounds { <2 x float>, float }, ptr %79, i32 0, i32 1
  %485 = load float, ptr %484, align 4
  %486 = call noundef float @_ZL16ma_doppler_pitch8ma_vec3fS_S_ff(<2 x float> %475, float %477, <2 x float> %479, float %481, <2 x float> %483, float %485, float noundef %472, float noundef %473)
  %487 = load ptr, ptr %7, align 8, !tbaa !5
  %488 = getelementptr inbounds %struct.ma_spatializer, ptr %487, i32 0, i32 20
  store float %486, ptr %488, align 4, !tbaa !27
  br label %492

489:                                              ; preds = %441
  %490 = load ptr, ptr %7, align 8, !tbaa !5
  %491 = getelementptr inbounds %struct.ma_spatializer, ptr %490, i32 0, i32 20
  store float 1.000000e+00, ptr %491, align 4, !tbaa !27
  br label %492

492:                                              ; preds = %489, %456
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #8
  br label %493

493:                                              ; preds = %492, %134
  store i32 0, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %494

494:                                              ; preds = %493, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %495 = load i32, ptr %6, align 4
  ret i32 %495
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL24ma_channel_map_apply_f32PfPKhjPKfS1_jy19ma_channel_mix_mode22ma_mono_expansion_mode(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_min_distance(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_max_distance(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_rolloff(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_doppler_factor(ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @ma_spatializer_get_relative_position_and_direction(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL22ma_attenuation_inverseffff(float noundef, float noundef, float noundef, float noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL21ma_attenuation_linearffff(float noundef, float noundef, float noundef, float noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL26ma_attenuation_exponentialffff(float noundef, float noundef, float noundef, float noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @ma_spatializer_get_cone(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL25ma_calculate_angular_gain8ma_vec3fS_fff(<2 x float>, float, <2 x float>, float, float noundef, float noundef, float noundef) #7

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_min_gain(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_max_gain(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local zeroext i8 @ma_channel_map_get_channel(ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL30ma_is_spatial_channel_positionh(i8 noundef zeroext) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden { <2 x float>, float } @_ZL24ma_get_channel_directionh(i8 noundef zeroext) #6

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_directional_attenuation_factor(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL16ma_doppler_pitch8ma_vec3fS_S_ff(<2 x float>, float, <2 x float>, float, <2 x float>, float, float noundef, float noundef) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"long long", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTS14ma_spatializer", !13, i64 0, !13, i64 4, !6, i64 8, !14, i64 16, !15, i64 20, !16, i64 24, !17, i64 28, !17, i64 32, !17, i64 36, !17, i64 40, !17, i64 44, !17, i64 48, !17, i64 52, !17, i64 56, !17, i64 60, !17, i64 64, !13, i64 68, !18, i64 72, !18, i64 84, !18, i64 96, !17, i64 108, !19, i64 112, !6, i64 160, !6, i64 168, !13, i64 176}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS20ma_attenuation_model", !7, i64 0}
!15 = !{!"_ZTS14ma_positioning", !7, i64 0}
!16 = !{!"_ZTS13ma_handedness", !7, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTS8ma_vec3f", !17, i64 0, !17, i64 4, !17, i64 8}
!19 = !{!"_ZTS9ma_gainer", !20, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40}
!20 = !{!"_ZTS16ma_gainer_config", !13, i64 0, !13, i64 4}
!21 = !{!22, !6, i64 8}
!22 = !{!"_ZTS23ma_spatializer_listener", !23, i64 0, !18, i64 48, !18, i64 60, !18, i64 72, !13, i64 84, !13, i64 88, !6, i64 96}
!23 = !{!"_ZTS30ma_spatializer_listener_config", !13, i64 0, !6, i64 8, !16, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !17, i64 32, !18, i64 36}
!24 = !{!13, !13, i64 0}
!25 = !{!12, !13, i64 0}
!26 = !{!12, !13, i64 4}
!27 = !{!12, !17, i64 108}
!28 = !{!17, !17, i64 0}
!29 = !{i64 0, i64 4, !28, i64 4, i64 4, !28, i64 8, i64 4, !28}
!30 = !{!22, !17, i64 32}
!31 = !{!18, !17, i64 0}
!32 = !{!18, !17, i64 4}
!33 = !{!18, !17, i64 8}
!34 = !{!22, !17, i64 20}
!35 = !{!22, !16, i64 16}
!36 = !{!22, !17, i64 24}
!37 = !{!22, !17, i64 28}
!38 = !{!12, !6, i64 160}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!7, !7, i64 0}
!42 = distinct !{!42, !40}


; 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.ma_vec3f = type { float, float, float }

@.str.6 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [25 x i8], align 1
@__PRETTY_FUNCTION__.ma_spatializer_process_pcm_frames = external hidden unnamed_addr constant [122 x i8], align 1

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @ma_silence_pcm_frames(ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @ma_copy_pcm_frames(ptr noundef, ptr noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ma_gainer_process_pcm_frames(ptr noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare hidden noundef float @_ZL15ma_mix_f32_fastfff(float noundef, float noundef, float noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ma_gainer_set_gains(ptr noundef, ptr noundef) local_unnamed_addr #3

; 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 #5

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -2, 1) i32 @ma_spatializer_process_pcm_frames(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4) local_unnamed_addr #7 {
  %6 = alloca %struct.ma_vec3f, align 8
  %7 = alloca %struct.ma_vec3f, align 8
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = load ptr, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !18
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = load atomic i32, ptr %15 seq_cst, align 8
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %32

18:                                               ; preds = %5
  %19 = tail call i32 @ma_spatializer_listener_is_enabled(ptr noundef nonnull %1)
  %.not249 = icmp eq i32 %19, 0
  br i1 %.not249, label %27, label %20

20:                                               ; preds = %18
  %21 = load i32, ptr %0, align 8, !tbaa !21
  %22 = getelementptr inbounds i8, ptr %0, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !22
  %24 = icmp eq i32 %21, %23
  br i1 %24, label %25, label %26

25:                                               ; preds = %20
  tail call void @ma_copy_pcm_frames(ptr noundef %2, ptr noundef %3, i64 noundef %4, i32 noundef 5, i32 noundef %21)
  br label %30

26:                                               ; preds = %20
  tail call void @_ZL24ma_channel_map_apply_f32PfPKhjPKfS1_jy19ma_channel_mix_mode22ma_mono_expansion_mode(ptr noundef %2, ptr noundef %14, i32 noundef %23, ptr noundef %3, ptr noundef %12, i32 noundef %21, i64 noundef %4, i32 noundef 0, i32 noundef 0)
  br label %30

27:                                               ; preds = %18
  %28 = getelementptr inbounds i8, ptr %0, i64 4
  %29 = load i32, ptr %28, align 4, !tbaa !22
  tail call void @ma_silence_pcm_frames(ptr noundef %2, i64 noundef %4, i32 noundef 5, i32 noundef %29)
  br label %30

30:                                               ; preds = %25, %26, %27
  %31 = getelementptr inbounds i8, ptr %0, i64 108
  store float 1.000000e+00, ptr %31, align 4, !tbaa !23
  br label %158

32:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #8
  %33 = getelementptr inbounds i8, ptr %0, i64 4
  %34 = load i32, ptr %33, align 4, !tbaa !22
  %35 = load i32, ptr %0, align 8, !tbaa !21
  %36 = tail call float @ma_spatializer_get_min_distance(ptr noundef nonnull %0)
  %37 = tail call float @ma_spatializer_get_max_distance(ptr noundef nonnull %0)
  %38 = tail call float @ma_spatializer_get_rolloff(ptr noundef nonnull %0)
  %39 = tail call float @ma_spatializer_get_doppler_factor(ptr noundef nonnull %0)
  %40 = getelementptr inbounds i8, ptr %1, i64 72
  %.sroa.0143.0.copyload = load <2 x float>, ptr %40, align 8
  %.sroa.5144.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 80
  %.sroa.5144.0.copyload = load float, ptr %.sroa.5144.0..sroa_idx, align 8, !tbaa !24
  %41 = getelementptr inbounds i8, ptr %1, i64 32
  %42 = load float, ptr %41, align 8, !tbaa !25
  %43 = tail call i32 @ma_spatializer_get_positioning(ptr noundef nonnull %0)
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %48

45:                                               ; preds = %32
  %46 = getelementptr inbounds i8, ptr %0, i64 72
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %6, ptr noundef nonnull align 8 dereferenceable(12) %46, i64 12, i1 false), !tbaa.struct !26
  %47 = getelementptr inbounds i8, ptr %0, i64 84
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %47, i64 12, i1 false), !tbaa.struct !26
  br label %49

48:                                               ; preds = %32
  call void @ma_spatializer_get_relative_position_and_direction(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %6, ptr noundef nonnull %7)
  br label %49

49:                                               ; preds = %48, %45
  %.sroa.096.0.copyload = load <2 x float>, ptr %6, align 8
  %.sroa.297.0..sroa_idx = getelementptr inbounds i8, ptr %6, i64 8
  %.sroa.297.0.copyload = load float, ptr %.sroa.297.0..sroa_idx, align 8, !tbaa !24
  %50 = call noundef float @_Z12ma_vec3f_len8ma_vec3f(<2 x float> %.sroa.096.0.copyload, float %.sroa.297.0.copyload)
  %51 = call i32 @ma_spatializer_get_attenuation_model(ptr noundef nonnull %0)
  switch i32 %51, label %58 [
    i32 1, label %52
    i32 2, label %54
    i32 3, label %56
  ]

52:                                               ; preds = %49
  %53 = call noundef float @_ZL22ma_attenuation_inverseffff(float noundef %50, float noundef %36, float noundef %37, float noundef %38)
  br label %58

54:                                               ; preds = %49
  %55 = call noundef float @_ZL21ma_attenuation_linearffff(float noundef %50, float noundef %36, float noundef %37, float noundef %38)
  br label %58

56:                                               ; preds = %49
  %57 = call noundef float @_ZL26ma_attenuation_exponentialffff(float noundef %50, float noundef %36, float noundef %37, float noundef %38)
  br label %58

58:                                               ; preds = %49, %56, %54, %52
  %.0230 = phi float [ %57, %56 ], [ %55, %54 ], [ %53, %52 ], [ 1.000000e+00, %49 ]
  %59 = fcmp ogt float %50, 0x3F50624DE0000000
  br i1 %59, label %61, label %.thread

.thread:                                          ; preds = %58
  %60 = call { <2 x float>, float } @_Z16ma_vec3f_init_3ffff(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  br label %89

61:                                               ; preds = %58
  %62 = fdiv float 1.000000e+00, %50
  %.sroa.0145.0.copyload = load <2 x float>, ptr %6, align 8
  %.sroa.10.0.copyload = load float, ptr %.sroa.297.0..sroa_idx, align 8, !tbaa !24
  %63 = insertelement <2 x float> poison, float %62, i64 0
  %64 = shufflevector <2 x float> %63, <2 x float> poison, <2 x i32> zeroinitializer
  %65 = fmul <2 x float> %64, %.sroa.0145.0.copyload
  %66 = fmul float %62, %.sroa.10.0.copyload
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  call void @ma_spatializer_get_cone(ptr noundef nonnull %0, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10)
  %.sroa.083.0.copyload = load <2 x float>, ptr %7, align 8
  %.sroa.284.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  %.sroa.284.0.copyload = load float, ptr %.sroa.284.0..sroa_idx, align 8, !tbaa !24
  %67 = call { <2 x float>, float } @_Z12ma_vec3f_neg8ma_vec3f(<2 x float> %65, float %66)
  %.fca.0.extract73 = extractvalue { <2 x float>, float } %67, 0
  %.fca.1.extract74 = extractvalue { <2 x float>, float } %67, 1
  %68 = load float, ptr %8, align 4, !tbaa !24
  %69 = load float, ptr %9, align 4, !tbaa !24
  %70 = load float, ptr %10, align 4, !tbaa !24
  %71 = call noundef float @_ZL25ma_calculate_angular_gain8ma_vec3fS_fff(<2 x float> %.sroa.083.0.copyload, float %.sroa.284.0.copyload, <2 x float> %.fca.0.extract73, float %.fca.1.extract74, float noundef %68, float noundef %69, float noundef %70)
  %72 = fmul float %.0230, %71
  %73 = getelementptr inbounds i8, ptr %1, i64 20
  %74 = load float, ptr %73, align 4, !tbaa !27
  %75 = fcmp olt float %74, 0x401921FB40000000
  br i1 %75, label %76, label %88

76:                                               ; preds = %61
  %77 = getelementptr inbounds i8, ptr %1, i64 16
  %78 = load i32, ptr %77, align 8, !tbaa !28
  %79 = icmp eq i32 %78, 0
  %. = select i1 %79, float -1.000000e+00, float 1.000000e+00
  %80 = call { <2 x float>, float } @_Z16ma_vec3f_init_3ffff(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef %.)
  %.sroa.5.0 = extractvalue { <2 x float>, float } %80, 1
  %.sroa.068.0 = extractvalue { <2 x float>, float } %80, 0
  %81 = load float, ptr %73, align 4, !tbaa !27
  %82 = getelementptr inbounds i8, ptr %1, i64 24
  %83 = load float, ptr %82, align 8, !tbaa !29
  %84 = getelementptr inbounds i8, ptr %1, i64 28
  %85 = load float, ptr %84, align 4, !tbaa !30
  %86 = call noundef float @_ZL25ma_calculate_angular_gain8ma_vec3fS_fff(<2 x float> %.sroa.068.0, float %.sroa.5.0, <2 x float> %65, float %66, float noundef %81, float noundef %83, float noundef %85)
  %87 = fmul float %72, %86
  br label %88

88:                                               ; preds = %76, %61
  %.1 = phi float [ %87, %76 ], [ %72, %61 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %89

89:                                               ; preds = %.thread, %88
  %.0229253 = phi float [ %50, %88 ], [ 0.000000e+00, %.thread ]
  %.2 = phi float [ %.1, %88 ], [ %.0230, %.thread ]
  %90 = call float @ma_spatializer_get_min_gain(ptr noundef nonnull %0)
  %91 = call float @ma_spatializer_get_max_gain(ptr noundef nonnull %0)
  %92 = fcmp olt float %.2, %91
  br i1 %92, label %95, label %93

93:                                               ; preds = %89
  %94 = call float @ma_spatializer_get_max_gain(ptr noundef nonnull %0)
  br label %95

95:                                               ; preds = %89, %93
  %96 = phi float [ %94, %93 ], [ %.2, %89 ]
  %97 = fcmp ogt float %90, %96
  br i1 %97, label %98, label %100

98:                                               ; preds = %95
  %99 = call float @ma_spatializer_get_min_gain(ptr noundef nonnull %0)
  br label %105

100:                                              ; preds = %95
  %101 = call float @ma_spatializer_get_max_gain(ptr noundef nonnull %0)
  %102 = fcmp olt float %.2, %101
  br i1 %102, label %105, label %103

103:                                              ; preds = %100
  %104 = call float @ma_spatializer_get_max_gain(ptr noundef nonnull %0)
  br label %105

105:                                              ; preds = %100, %103, %98
  %106 = phi float [ %99, %98 ], [ %104, %103 ], [ %.2, %100 ]
  %.not246 = icmp eq ptr %14, null
  br i1 %.not246, label %112, label %.preheader

.preheader:                                       ; preds = %105
  %.not = icmp eq i32 %34, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %107 = getelementptr inbounds i8, ptr %0, i64 160
  %108 = load ptr, ptr %107, align 8, !tbaa !31
  %wide.trip.count = zext i32 %34 to i64
  %min.iters.check = icmp ult i32 %34, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 4294967288
  %broadcast.splatinsert = insertelement <4 x float> poison, float %106, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %109 = getelementptr inbounds float, ptr %108, i64 %index
  %110 = getelementptr inbounds i8, ptr %109, i64 16
  store <4 x float> %broadcast.splat, ptr %109, align 4, !tbaa !24
  store <4 x float> %broadcast.splat, ptr %110, align 4, !tbaa !24
  %index.next = add nuw i64 %index, 8
  %111 = icmp eq i64 %index.next, %n.vec
  br i1 %111, label %middle.block, label %vector.body, !llvm.loop !32

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

112:                                              ; preds = %105
  call void @__assert_fail(ptr noundef nonnull @.str.68, ptr noundef nonnull @.str.6, i32 noundef 48523, ptr noundef nonnull @__PRETTY_FUNCTION__.ma_spatializer_process_pcm_frames) #9
  unreachable

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %113 = getelementptr inbounds float, ptr %108, i64 %indvars.iv
  store float %106, ptr %113, align 4, !tbaa !24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !36

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %.preheader
  %114 = call i32 @ma_spatializer_listener_is_enabled(ptr noundef %1)
  %.not247 = icmp eq i32 %114, 0
  br i1 %.not247, label %116, label %115

115:                                              ; preds = %._crit_edge
  call void @_ZL24ma_channel_map_apply_f32PfPKhjPKfS1_jy19ma_channel_mix_mode22ma_mono_expansion_mode(ptr noundef %2, ptr noundef nonnull %14, i32 noundef %34, ptr noundef %3, ptr noundef %12, i32 noundef %35, i64 noundef %4, i32 noundef 0, i32 noundef 0)
  br label %118

116:                                              ; preds = %._crit_edge
  %117 = load i32, ptr %33, align 4, !tbaa !22
  call void @ma_silence_pcm_frames(ptr noundef %2, i64 noundef %4, i32 noundef 5, i32 noundef %117)
  br label %118

118:                                              ; preds = %116, %115
  br i1 %59, label %119, label %.loopexit

119:                                              ; preds = %118
  %.sroa.042.0.copyload = load <2 x float>, ptr %6, align 8
  %.sroa.8.0.copyload = load float, ptr %.sroa.297.0..sroa_idx, align 8, !tbaa !24
  %120 = fdiv float 1.000000e+00, %.0229253
  %121 = insertelement <2 x float> poison, float %120, i64 0
  %122 = shufflevector <2 x float> %121, <2 x float> poison, <2 x i32> zeroinitializer
  %123 = fmul <2 x float> %122, %.sroa.042.0.copyload
  %124 = fmul float %120, %.sroa.8.0.copyload
  br i1 %.not, label %.loopexit, label %.lr.ph257

.lr.ph257:                                        ; preds = %119
  %125 = getelementptr inbounds i8, ptr %0, i64 160
  %wide.trip.count263 = zext i32 %34 to i64
  br label %126

126:                                              ; preds = %.lr.ph257, %135
  %indvars.iv260 = phi i64 [ 0, %.lr.ph257 ], [ %indvars.iv.next261, %135 ]
  %127 = trunc nuw i64 %indvars.iv260 to i32
  %128 = call zeroext i8 @ma_channel_map_get_channel(ptr noundef nonnull %14, i32 noundef %34, i32 noundef %127)
  %129 = call noundef i32 @_ZL30ma_is_spatial_channel_positionh(i8 noundef zeroext %128)
  %.not248 = icmp eq i32 %129, 0
  br i1 %.not248, label %135, label %130

130:                                              ; preds = %126
  %131 = call { <2 x float>, float } @_ZL24ma_get_channel_directionh(i8 noundef zeroext %128)
  %.fca.0.extract25 = extractvalue { <2 x float>, float } %131, 0
  %.fca.1.extract26 = extractvalue { <2 x float>, float } %131, 1
  %132 = call noundef float @_Z12ma_vec3f_dot8ma_vec3fS_(<2 x float> %123, float %124, <2 x float> %.fca.0.extract25, float %.fca.1.extract26)
  %133 = call float @ma_spatializer_get_directional_attenuation_factor(ptr noundef nonnull %0)
  %134 = call noundef float @_ZL15ma_mix_f32_fastfff(float noundef 1.000000e+00, float noundef %132, float noundef %133)
  br label %135

135:                                              ; preds = %126, %130
  %.0233 = phi float [ %134, %130 ], [ 1.000000e+00, %126 ]
  %136 = fadd float %.0233, 1.000000e+00
  %137 = fmul float %136, 5.000000e-01
  %138 = fcmp ogt float %137, 0x3FC99999A0000000
  %139 = select i1 %138, float %137, float 0x3FC99999A0000000
  %140 = load ptr, ptr %125, align 8, !tbaa !31
  %141 = getelementptr inbounds float, ptr %140, i64 %indvars.iv260
  %142 = load float, ptr %141, align 4, !tbaa !24
  %143 = fmul float %142, %139
  store float %143, ptr %141, align 4, !tbaa !24
  %indvars.iv.next261 = add nuw nsw i64 %indvars.iv260, 1
  %exitcond264.not = icmp eq i64 %indvars.iv.next261, %wide.trip.count263
  br i1 %exitcond264.not, label %.loopexit, label %126, !llvm.loop !37

.loopexit:                                        ; preds = %135, %119, %118
  %144 = getelementptr inbounds i8, ptr %0, i64 112
  %145 = getelementptr inbounds i8, ptr %0, i64 160
  %146 = load ptr, ptr %145, align 8, !tbaa !31
  %147 = call i32 @ma_gainer_set_gains(ptr noundef nonnull %144, ptr noundef %146)
  %148 = call i32 @ma_gainer_process_pcm_frames(ptr noundef nonnull %144, ptr noundef %2, ptr noundef %2, i64 noundef %4)
  %149 = fcmp ogt float %39, 0.000000e+00
  br i1 %149, label %150, label %156

150:                                              ; preds = %.loopexit
  %151 = getelementptr inbounds i8, ptr %1, i64 48
  %.sroa.017.0.copyload = load <2 x float>, ptr %151, align 8
  %.sroa.218.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 56
  %.sroa.218.0.copyload = load float, ptr %.sroa.218.0..sroa_idx, align 8, !tbaa !24
  %152 = getelementptr inbounds i8, ptr %0, i64 72
  %.sroa.015.0.copyload = load <2 x float>, ptr %152, align 8
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 80
  %.sroa.216.0.copyload = load float, ptr %.sroa.216.0..sroa_idx, align 8, !tbaa !24
  %153 = call { <2 x float>, float } @_Z12ma_vec3f_sub8ma_vec3fS_(<2 x float> %.sroa.017.0.copyload, float %.sroa.218.0.copyload, <2 x float> %.sroa.015.0.copyload, float %.sroa.216.0.copyload)
  %.fca.0.extract = extractvalue { <2 x float>, float } %153, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %153, 1
  %154 = getelementptr inbounds i8, ptr %0, i64 96
  %.sroa.07.0.copyload = load <2 x float>, ptr %154, align 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %0, i64 104
  %.sroa.28.0.copyload = load float, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !24
  %155 = call noundef float @_ZL16ma_doppler_pitch8ma_vec3fS_S_ff(<2 x float> %.fca.0.extract, float %.fca.1.extract, <2 x float> %.sroa.07.0.copyload, float %.sroa.28.0.copyload, <2 x float> %.sroa.0143.0.copyload, float %.sroa.5144.0.copyload, float noundef %42, float noundef %39)
  br label %156

156:                                              ; preds = %.loopexit, %150
  %.sink = phi float [ %155, %150 ], [ 1.000000e+00, %.loopexit ]
  %157 = getelementptr inbounds i8, ptr %0, i64 108
  store float %.sink, ptr %157, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #8
  br label %158

158:                                              ; preds = %30, %156
  ret i32 0
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL24ma_channel_map_apply_f32PfPKhjPKfS1_jy19ma_channel_mix_mode22ma_mono_expansion_mode(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_min_distance(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_max_distance(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_rolloff(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_doppler_factor(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @ma_spatializer_get_relative_position_and_direction(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL22ma_attenuation_inverseffff(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL21ma_attenuation_linearffff(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef float @_ZL26ma_attenuation_exponentialffff(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @ma_spatializer_get_cone(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL25ma_calculate_angular_gain8ma_vec3fS_fff(<2 x float>, float, <2 x float>, float, float noundef, float noundef, float noundef) local_unnamed_addr #7

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_min_gain(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_max_gain(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local zeroext i8 @ma_channel_map_get_channel(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL30ma_is_spatial_channel_positionh(i8 noundef zeroext) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden { <2 x float>, float } @_ZL24ma_get_channel_directionh(i8 noundef zeroext) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local float @ma_spatializer_get_directional_attenuation_factor(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL16ma_doppler_pitch8ma_vec3fS_S_ff(<2 x float>, float, <2 x float>, float, <2 x float>, float, float noundef, float noundef) local_unnamed_addr #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { noreturn 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, !10, i64 8}
!6 = !{!"_ZTS14ma_spatializer", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 16, !12, i64 20, !13, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !7, i64 68, !15, i64 72, !15, i64 84, !15, i64 96, !14, i64 108, !16, i64 112, !10, i64 160, !10, i64 168, !7, i64 176}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS20ma_attenuation_model", !8, i64 0}
!12 = !{!"_ZTS14ma_positioning", !8, i64 0}
!13 = !{!"_ZTS13ma_handedness", !8, i64 0}
!14 = !{!"float", !8, i64 0}
!15 = !{!"_ZTS8ma_vec3f", !14, i64 0, !14, i64 4, !14, i64 8}
!16 = !{!"_ZTS9ma_gainer", !17, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40}
!17 = !{!"_ZTS16ma_gainer_config", !7, i64 0, !7, i64 4}
!18 = !{!19, !10, i64 8}
!19 = !{!"_ZTS23ma_spatializer_listener", !20, i64 0, !15, i64 48, !15, i64 60, !15, i64 72, !7, i64 84, !7, i64 88, !10, i64 96}
!20 = !{!"_ZTS30ma_spatializer_listener_config", !7, i64 0, !10, i64 8, !13, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !15, i64 36}
!21 = !{!6, !7, i64 0}
!22 = !{!6, !7, i64 4}
!23 = !{!6, !14, i64 108}
!24 = !{!14, !14, i64 0}
!25 = !{!19, !14, i64 32}
!26 = !{i64 0, i64 4, !24, i64 4, i64 4, !24, i64 8, i64 4, !24}
!27 = !{!19, !14, i64 20}
!28 = !{!19, !13, i64 16}
!29 = !{!19, !14, i64 24}
!30 = !{!19, !14, i64 28}
!31 = !{!6, !10, i64 160}
!32 = distinct !{!32, !33, !34, !35}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!"llvm.loop.isvectorized", i32 1}
!35 = !{!"llvm.loop.unroll.runtime.disable"}
!36 = distinct !{!36, !33, !35, !34}
!37 = distinct !{!37, !33}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass