; LLVM IR from Overload-Technologies/Overload :: Dependencies/soloud/src/core (soloud_core_3d)

; 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.SoLoud::vec3" = type { float, float, float }
%"class.SoLoud::Soloud" = type <{ ptr, ptr, i8, [7 x i8], ptr, ptr, ptr, i32, i32, %"class.SoLoud::AlignedFloatBuffer", i32, [4 x i8], %"class.SoLoud::AlignedFloatBuffer", ptr, %"class.SoLoud::AlignedFloatBuffer", ptr, [1024 x ptr], i32, i32, i32, i32, ptr, i32, i32, float, float, i32, i32, %"class.SoLoud::Fader", double, double, [8 x ptr], [8 x ptr], [8 x float], [256 x float], [256 x float], [256 x float], [3 x float], [3 x float], [3 x float], [3 x float], float, [24 x float], [4 x i8], [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr, i32, [1024 x i32], i32, i8, [7 x i8] }>
%"class.SoLoud::AlignedFloatBuffer" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.SoLoud::Fader" = type { float, float, float, double, double, double, float, i32 }
%"class.SoLoud::AudioSourceInstance3dData" = type <{ [3 x float], [3 x float], float, float, float, i32, float, [4 x i8], ptr, ptr, i32, float, float, [8 x float], i32, i32, [4 x i8] }>
%"class.SoLoud::AudioSourceInstance" = type { ptr, i32, i32, i32, float, [8 x float], float, float, float, float, i32, float, float, double, double, %"class.SoLoud::Fader", %"class.SoLoud::Fader", %"class.SoLoud::Fader", %"class.SoLoud::Fader", %"class.SoLoud::Fader", i32, [8 x float], i32, i32, [8 x ptr], [2 x ptr], i32, i32, i32, double }
%"class.SoLoud::AudioSource" = type { ptr, i32, float, float, i32, i32, float, float, float, i32, float, [8 x ptr], ptr, ptr, ptr, i32, double }

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN6SoLoud4vec33magEv(ptr noundef nonnull align 4 dereferenceable(12)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6SoLoud6Soloud23update3dVoices_internalEPjj(ptr noundef nonnull align 8 dereferenceable(138833), ptr noundef, i32 noundef) #2 align 2

declare void @_ZN6SoLoud6Soloud23lockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833)) #3

declare void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833)) #3

declare void @_ZN6SoLoud6Soloud37updateVoiceRelativePlaySpeed_internalEj(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef) #3

declare void @_ZN6SoLoud6Soloud26updateVoiceVolume_internalEj(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef) #3

declare void @_ZN6SoLoud6Soloud18stopVoice_internalEj(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef) #3

declare noundef i32 @_ZN6SoLoud6Soloud4playERNS_11AudioSourceEffbj(ptr noundef nonnull align 8 dereferenceable(138833), ptr noundef nonnull align 8 dereferenceable(152), float noundef, float noundef, i1 noundef zeroext, i32 noundef) #3

declare noundef i32 @_ZNK6SoLoud6Soloud27getVoiceFromHandle_internalEj(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6SoLoud6Soloud21set3dSourceParametersEjffffff(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5floorf(float noundef) #4

declare void @_ZN6SoLoud6Soloud15setDelaySamplesEjj(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef, i32 noundef) #3

declare void @_ZN6SoLoud6Soloud8setPauseEjb(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef, i1 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6SoLoud6Soloud13play3dClockedEdRNS_11AudioSourceEfffffffj(ptr noundef nonnull align 8 dereferenceable(138833) %0, double noundef %1, ptr noundef nonnull align 8 dereferenceable(152) %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, i32 noundef %10) #1 align 2 {
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca ptr, align 8
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, 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 i32, align 4
  %27 = alloca double, align 8
  %28 = alloca %"struct.SoLoud::vec3", align 4
  %29 = alloca i32, align 4
  %30 = alloca float, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store double %1, ptr %14, align 8, !tbaa !9
  store ptr %2, ptr %15, align 8, !tbaa !5
  store float %3, ptr %16, align 4, !tbaa !11
  store float %4, ptr %17, align 4, !tbaa !11
  store float %5, ptr %18, align 4, !tbaa !11
  store float %6, ptr %19, align 4, !tbaa !11
  store float %7, ptr %20, align 4, !tbaa !11
  store float %8, ptr %21, align 4, !tbaa !11
  store float %9, ptr %22, align 4, !tbaa !11
  store i32 %10, ptr %23, align 4, !tbaa !13
  %33 = load ptr, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %34 = load ptr, ptr %15, align 8, !tbaa !5
  %35 = load float, ptr %22, align 4, !tbaa !11
  %36 = load i32, ptr %23, align 4, !tbaa !13
  %37 = call noundef i32 @_ZN6SoLoud6Soloud4playERNS_11AudioSourceEffbj(ptr noundef nonnull align 8 dereferenceable(138833) %33, ptr noundef nonnull align 8 dereferenceable(152) %34, float noundef %35, float noundef 0.000000e+00, i1 noundef zeroext true, i32 noundef %36)
  store i32 %37, ptr %24, align 4, !tbaa !13
  call void @_ZN6SoLoud6Soloud23lockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %33)
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %38 = load i32, ptr %24, align 4, !tbaa !13
  %39 = call noundef i32 @_ZNK6SoLoud6Soloud27getVoiceFromHandle_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %33, i32 noundef %38)
  store i32 %39, ptr %25, align 4, !tbaa !13
  %40 = load i32, ptr %25, align 4, !tbaa !13
  %41 = icmp slt i32 %40, 0
  br i1 %41, label %42, label %44

42:                                               ; preds = %11
  call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %33)
  %43 = load i32, ptr %24, align 4, !tbaa !13
  store i32 %43, ptr %12, align 4
  store i32 1, ptr %26, align 4
  br label %224

44:                                               ; preds = %11
  %45 = load i32, ptr %24, align 4, !tbaa !13
  %46 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 44
  %47 = load i32, ptr %25, align 4, !tbaa !13
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %46, i64 0, i64 %48
  %50 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance3dData", ptr %49, i32 0, i32 15
  store i32 %45, ptr %50, align 8, !tbaa !15
  %51 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 16
  %52 = load i32, ptr %25, align 4, !tbaa !13
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [1024 x ptr], ptr %51, i64 0, i64 %53
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %55, i32 0, i32 3
  %57 = load i32, ptr %56, align 8, !tbaa !17
  %58 = or i32 %57, 8
  store i32 %58, ptr %56, align 8, !tbaa !17
  %59 = load i32, ptr %24, align 4, !tbaa !13
  %60 = load float, ptr %16, align 4, !tbaa !11
  %61 = load float, ptr %17, align 4, !tbaa !11
  %62 = load float, ptr %18, align 4, !tbaa !11
  %63 = load float, ptr %19, align 4, !tbaa !11
  %64 = load float, ptr %20, align 4, !tbaa !11
  %65 = load float, ptr %21, align 4, !tbaa !11
  call void @_ZN6SoLoud6Soloud21set3dSourceParametersEjffffff(ptr noundef nonnull align 8 dereferenceable(138833) %33, i32 noundef %59, float noundef %60, float noundef %61, float noundef %62, float noundef %63, float noundef %64, float noundef %65)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %66 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 30
  %67 = load double, ptr %66, align 8, !tbaa !20
  store double %67, ptr %27, align 8, !tbaa !9
  %68 = load double, ptr %27, align 8, !tbaa !9
  %69 = fcmp oeq double %68, 0.000000e+00
  br i1 %69, label %70, label %74

70:                                               ; preds = %44
  %71 = load double, ptr %14, align 8, !tbaa !9
  store double %71, ptr %27, align 8, !tbaa !9
  %72 = load double, ptr %14, align 8, !tbaa !9
  %73 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 30
  store double %72, ptr %73, align 8, !tbaa !20
  br label %74

74:                                               ; preds = %70, %44
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #6
  %75 = load float, ptr %16, align 4, !tbaa !11
  %76 = getelementptr inbounds %"struct.SoLoud::vec3", ptr %28, i32 0, i32 0
  store float %75, ptr %76, align 4, !tbaa !24
  %77 = load float, ptr %17, align 4, !tbaa !11
  %78 = getelementptr inbounds %"struct.SoLoud::vec3", ptr %28, i32 0, i32 1
  store float %77, ptr %78, align 4, !tbaa !26
  %79 = load float, ptr %18, align 4, !tbaa !11
  %80 = getelementptr inbounds %"struct.SoLoud::vec3", ptr %28, i32 0, i32 2
  store float %79, ptr %80, align 4, !tbaa !27
  call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %33)
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %81 = load double, ptr %14, align 8, !tbaa !9
  %82 = load double, ptr %27, align 8, !tbaa !9
  %83 = fsub double %81, %82
  %84 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 18
  %85 = load i32, ptr %84, align 4, !tbaa !28
  %86 = uitofp i32 %85 to double
  %87 = fmul double %83, %86
  %88 = call double @llvm.floor.f64(double %87)
  %89 = fptosi double %88 to i32
  store i32 %89, ptr %29, align 4, !tbaa !13
  %90 = load i32, ptr %29, align 4, !tbaa !13
  %91 = icmp slt i32 %90, 0
  br i1 %91, label %95, label %92

92:                                               ; preds = %74
  %93 = load i32, ptr %29, align 4, !tbaa !13
  %94 = icmp sgt i32 %93, 2048
  br i1 %94, label %95, label %96

95:                                               ; preds = %92, %74
  store i32 0, ptr %29, align 4, !tbaa !13
  br label %96

96:                                               ; preds = %95, %92
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %97, i32 0, i32 1
  %99 = load i32, ptr %98, align 8, !tbaa !29
  %100 = and i32 %99, 32
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %116

102:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %103 = call noundef float @_ZN6SoLoud4vec33magEv(ptr noundef nonnull align 4 dereferenceable(12) %28)
  store float %103, ptr %30, align 4, !tbaa !11
  %104 = load float, ptr %30, align 4, !tbaa !11
  %105 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 41
  %106 = load float, ptr %105, align 8, !tbaa !31
  %107 = fdiv float %104, %106
  %108 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 18
  %109 = load i32, ptr %108, align 4, !tbaa !28
  %110 = uitofp i32 %109 to float
  %111 = fmul float %107, %110
  %112 = call noundef float @_ZSt5floorf(float noundef %111)
  %113 = fptosi float %112 to i32
  %114 = load i32, ptr %29, align 4, !tbaa !13
  %115 = add nsw i32 %114, %113
  store i32 %115, ptr %29, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %116

116:                                              ; preds = %102, %96
  call void @_ZN6SoLoud6Soloud23update3dVoices_internalEPjj(ptr noundef nonnull align 8 dereferenceable(138833) %33, ptr noundef %25, i32 noundef 1)
  call void @_ZN6SoLoud6Soloud23lockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %33)
  %117 = load i32, ptr %25, align 4, !tbaa !13
  call void @_ZN6SoLoud6Soloud37updateVoiceRelativePlaySpeed_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %33, i32 noundef %117)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !13
  br label %118

118:                                              ; preds = %140, %116
  %119 = load i32, ptr %31, align 4, !tbaa !13
  %120 = icmp slt i32 %119, 8
  br i1 %120, label %121, label %143

121:                                              ; preds = %118
  %122 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 44
  %123 = load i32, ptr %25, align 4, !tbaa !13
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %122, i64 0, i64 %124
  %126 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance3dData", ptr %125, i32 0, i32 13
  %127 = load i32, ptr %31, align 4, !tbaa !13
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [8 x float], ptr %126, i64 0, i64 %128
  %130 = load float, ptr %129, align 4, !tbaa !11
  %131 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 16
  %132 = load i32, ptr %25, align 4, !tbaa !13
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [1024 x ptr], ptr %131, i64 0, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %135, i32 0, i32 5
  %137 = load i32, ptr %31, align 4, !tbaa !13
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [8 x float], ptr %136, i64 0, i64 %138
  store float %130, ptr %139, align 4, !tbaa !11
  br label %140

140:                                              ; preds = %121
  %141 = load i32, ptr %31, align 4, !tbaa !13
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %31, align 4, !tbaa !13
  br label %118, !llvm.loop !32

143:                                              ; preds = %118
  %144 = load i32, ptr %25, align 4, !tbaa !13
  call void @_ZN6SoLoud6Soloud26updateVoiceVolume_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %33, i32 noundef %144)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 0, ptr %32, align 4, !tbaa !13
  br label %145

145:                                              ; preds = %176, %143
  %146 = load i32, ptr %32, align 4, !tbaa !13
  %147 = icmp slt i32 %146, 8
  br i1 %147, label %148, label %179

148:                                              ; preds = %145
  %149 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 16
  %150 = load i32, ptr %25, align 4, !tbaa !13
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [1024 x ptr], ptr %149, i64 0, i64 %151
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %154 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %153, i32 0, i32 5
  %155 = load i32, ptr %32, align 4, !tbaa !13
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [8 x float], ptr %154, i64 0, i64 %156
  %158 = load float, ptr %157, align 4, !tbaa !11
  %159 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 16
  %160 = load i32, ptr %25, align 4, !tbaa !13
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [1024 x ptr], ptr %159, i64 0, i64 %161
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  %164 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %163, i32 0, i32 7
  %165 = load float, ptr %164, align 4, !tbaa !34
  %166 = fmul float %158, %165
  %167 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 16
  %168 = load i32, ptr %25, align 4, !tbaa !13
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [1024 x ptr], ptr %167, i64 0, i64 %169
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %171, i32 0, i32 21
  %173 = load i32, ptr %32, align 4, !tbaa !13
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [8 x float], ptr %172, i64 0, i64 %174
  store float %166, ptr %175, align 4, !tbaa !11
  br label %176

176:                                              ; preds = %148
  %177 = load i32, ptr %32, align 4, !tbaa !13
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %32, align 4, !tbaa !13
  br label %145, !llvm.loop !35

179:                                              ; preds = %145
  %180 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 16
  %181 = load i32, ptr %25, align 4, !tbaa !13
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [1024 x ptr], ptr %180, i64 0, i64 %182
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  %185 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %184, i32 0, i32 7
  %186 = load float, ptr %185, align 4, !tbaa !34
  %187 = fcmp olt float %186, 0x3F847AE140000000
  br i1 %187, label %188, label %209

188:                                              ; preds = %179
  %189 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 16
  %190 = load i32, ptr %25, align 4, !tbaa !13
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [1024 x ptr], ptr %189, i64 0, i64 %191
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %193, i32 0, i32 3
  %195 = load i32, ptr %194, align 8, !tbaa !17
  %196 = or i32 %195, 32
  store i32 %196, ptr %194, align 8, !tbaa !17
  %197 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 16
  %198 = load i32, ptr %25, align 4, !tbaa !13
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [1024 x ptr], ptr %197, i64 0, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %201, i32 0, i32 3
  %203 = load i32, ptr %202, align 8, !tbaa !17
  %204 = and i32 %203, 64
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %208

206:                                              ; preds = %188
  %207 = load i32, ptr %25, align 4, !tbaa !13
  call void @_ZN6SoLoud6Soloud18stopVoice_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %33, i32 noundef %207)
  br label %208

208:                                              ; preds = %206, %188
  br label %218

209:                                              ; preds = %179
  %210 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 16
  %211 = load i32, ptr %25, align 4, !tbaa !13
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [1024 x ptr], ptr %210, i64 0, i64 %212
  %214 = load ptr, ptr %213, align 8, !tbaa !5
  %215 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %214, i32 0, i32 3
  %216 = load i32, ptr %215, align 8, !tbaa !17
  %217 = and i32 %216, -33
  store i32 %217, ptr %215, align 8, !tbaa !17
  br label %218

218:                                              ; preds = %209, %208
  %219 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 49
  store i8 1, ptr %219, align 8, !tbaa !36
  call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %33)
  %220 = load i32, ptr %24, align 4, !tbaa !13
  %221 = load i32, ptr %29, align 4, !tbaa !13
  call void @_ZN6SoLoud6Soloud15setDelaySamplesEjj(ptr noundef nonnull align 8 dereferenceable(138833) %33, i32 noundef %220, i32 noundef %221)
  %222 = load i32, ptr %24, align 4, !tbaa !13
  call void @_ZN6SoLoud6Soloud8setPauseEjb(ptr noundef nonnull align 8 dereferenceable(138833) %33, i32 noundef %222, i1 noundef zeroext false)
  %223 = load i32, ptr %24, align 4, !tbaa !13
  store i32 %223, ptr %12, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %224

224:                                              ; preds = %218, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  %225 = load i32, ptr %12, align 4
  ret i32 %225
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !14, i64 112}
!16 = !{!"_ZTSN6SoLoud25AudioSourceInstance3dDataE", !7, i64 0, !7, i64 12, !12, i64 24, !12, i64 28, !12, i64 32, !14, i64 36, !12, i64 40, !6, i64 48, !6, i64 56, !14, i64 64, !12, i64 68, !12, i64 72, !7, i64 76, !14, i64 108, !14, i64 112}
!17 = !{!18, !14, i64 16}
!18 = !{!"_ZTSN6SoLoud19AudioSourceInstanceE", !14, i64 8, !14, i64 12, !14, i64 16, !12, i64 20, !7, i64 24, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !14, i64 72, !12, i64 76, !12, i64 80, !10, i64 88, !10, i64 96, !19, i64 104, !19, i64 152, !19, i64 200, !19, i64 248, !19, i64 296, !14, i64 344, !7, i64 348, !14, i64 380, !14, i64 384, !7, i64 392, !7, i64 456, !14, i64 472, !14, i64 476, !14, i64 480, !10, i64 488}
!19 = !{!"_ZTSN6SoLoud5FaderE", !12, i64 0, !12, i64 4, !12, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !12, i64 40, !14, i64 44}
!20 = !{!21, !10, i64 8448}
!21 = !{!"_ZTSN6SoLoud6SoloudE", !6, i64 0, !6, i64 8, !22, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !14, i64 52, !23, i64 56, !14, i64 80, !23, i64 88, !6, i64 112, !23, i64 120, !6, i64 144, !7, i64 152, !14, i64 8344, !14, i64 8348, !14, i64 8352, !14, i64 8356, !6, i64 8360, !14, i64 8368, !14, i64 8372, !12, i64 8376, !12, i64 8380, !14, i64 8384, !14, i64 8388, !19, i64 8392, !10, i64 8440, !10, i64 8448, !7, i64 8456, !7, i64 8520, !7, i64 8584, !7, i64 8616, !7, i64 9640, !7, i64 10664, !7, i64 11688, !7, i64 11700, !7, i64 11712, !7, i64 11724, !12, i64 11736, !7, i64 11740, !7, i64 11840, !6, i64 134720, !14, i64 134728, !7, i64 134732, !14, i64 138828, !22, i64 138832}
!22 = !{!"bool", !7, i64 0}
!23 = !{!"_ZTSN6SoLoud18AlignedFloatBufferE", !6, i64 0, !6, i64 8, !14, i64 16}
!24 = !{!25, !12, i64 0}
!25 = !{!"_ZTSN6SoLoud4vec3E", !12, i64 0, !12, i64 4, !12, i64 8}
!26 = !{!25, !12, i64 4}
!27 = !{!25, !12, i64 8}
!28 = !{!21, !14, i64 8348}
!29 = !{!30, !14, i64 8}
!30 = !{!"_ZTSN6SoLoud11AudioSourceE", !14, i64 8, !12, i64 12, !12, i64 16, !14, i64 20, !14, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !14, i64 40, !12, i64 44, !7, i64 48, !6, i64 112, !6, i64 120, !6, i64 128, !14, i64 136, !10, i64 144}
!31 = !{!21, !12, i64 11736}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!18, !12, i64 60}
!35 = distinct !{!35, !33}
!36 = !{!21, !22, i64 138832}


; 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.SoLoud::vec3" = type { float, float, float }
%"class.SoLoud::AudioSourceInstance3dData" = type <{ [3 x float], [3 x float], float, float, float, i32, float, [4 x i8], ptr, ptr, i32, float, float, [8 x float], i32, i32, [4 x i8] }>

; 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 uwtable
declare dso_local noundef float @_ZN6SoLoud4vec33magEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 align 2

; 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 uwtable
declare dso_local void @_ZN6SoLoud6Soloud23update3dVoices_internalEPjj(ptr noundef nonnull align 8 dereferenceable(138833), ptr noundef, i32 noundef) local_unnamed_addr #2 align 2

declare void @_ZN6SoLoud6Soloud23lockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833)) local_unnamed_addr #3

declare void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833)) local_unnamed_addr #3

declare void @_ZN6SoLoud6Soloud37updateVoiceRelativePlaySpeed_internalEj(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef) local_unnamed_addr #3

declare void @_ZN6SoLoud6Soloud26updateVoiceVolume_internalEj(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef) local_unnamed_addr #3

declare void @_ZN6SoLoud6Soloud18stopVoice_internalEj(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef) local_unnamed_addr #3

declare noundef i32 @_ZN6SoLoud6Soloud4playERNS_11AudioSourceEffbj(ptr noundef nonnull align 8 dereferenceable(138833), ptr noundef nonnull align 8 dereferenceable(152), float noundef, float noundef, i1 noundef zeroext, i32 noundef) local_unnamed_addr #3

declare noundef i32 @_ZNK6SoLoud6Soloud27getVoiceFromHandle_internalEj(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6SoLoud6Soloud21set3dSourceParametersEjffffff(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt5floorf(float noundef) local_unnamed_addr #4

declare void @_ZN6SoLoud6Soloud15setDelaySamplesEjj(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @_ZN6SoLoud6Soloud8setPauseEjb(ptr noundef nonnull align 8 dereferenceable(138833), i32 noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6SoLoud6Soloud13play3dClockedEdRNS_11AudioSourceEfffffffj(ptr noundef nonnull align 8 dereferenceable(138833) %0, double noundef %1, ptr noundef nonnull align 8 dereferenceable(152) %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, i32 noundef %10) local_unnamed_addr #1 align 2 {
  %12 = alloca i32, align 4
  %13 = alloca %"struct.SoLoud::vec3", align 4
  %14 = tail call noundef i32 @_ZN6SoLoud6Soloud4playERNS_11AudioSourceEffbj(ptr noundef nonnull align 8 dereferenceable(138833) %0, ptr noundef nonnull align 8 dereferenceable(152) %2, float noundef %9, float noundef 0.000000e+00, i1 noundef zeroext true, i32 noundef %10)
  tail call void @_ZN6SoLoud6Soloud23lockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %0)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  %15 = tail call noundef i32 @_ZNK6SoLoud6Soloud27getVoiceFromHandle_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %14)
  store i32 %15, ptr %12, align 4, !tbaa !5
  %16 = icmp slt i32 %15, 0
  br i1 %16, label %17, label %18

17:                                               ; preds = %11
  tail call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %0)
  br label %113

18:                                               ; preds = %11
  %19 = getelementptr inbounds i8, ptr %0, i64 11840
  %20 = zext nneg i32 %15 to i64
  %21 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %19, i64 0, i64 %20, i32 15
  store i32 %14, ptr %21, align 8, !tbaa !9
  %22 = getelementptr inbounds i8, ptr %0, i64 152
  %23 = getelementptr inbounds [1024 x ptr], ptr %22, i64 0, i64 %20
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %26 = load i32, ptr %25, align 8, !tbaa !14
  %27 = or i32 %26, 8
  store i32 %27, ptr %25, align 8, !tbaa !14
  tail call void @_ZN6SoLoud6Soloud21set3dSourceParametersEjffffff(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %14, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8)
  %28 = getelementptr inbounds i8, ptr %0, i64 8448
  %29 = load double, ptr %28, align 8, !tbaa !18
  %30 = fcmp oeq double %29, 0.000000e+00
  br i1 %30, label %31, label %32

31:                                               ; preds = %18
  store double %1, ptr %28, align 8, !tbaa !18
  br label %32

32:                                               ; preds = %31, %18
  %.043 = phi double [ %1, %31 ], [ %29, %18 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #6
  store float %3, ptr %13, align 4, !tbaa !22
  %33 = getelementptr inbounds i8, ptr %13, i64 4
  store float %4, ptr %33, align 4, !tbaa !24
  %34 = getelementptr inbounds i8, ptr %13, i64 8
  store float %5, ptr %34, align 4, !tbaa !25
  tail call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %0)
  %35 = fsub double %1, %.043
  %36 = getelementptr inbounds i8, ptr %0, i64 8348
  %37 = load i32, ptr %36, align 4, !tbaa !26
  %38 = uitofp i32 %37 to double
  %39 = fmul double %35, %38
  %40 = tail call double @llvm.floor.f64(double %39)
  %41 = fptosi double %40 to i32
  %or.cond = icmp ugt i32 %41, 2048
  %spec.store.select = select i1 %or.cond, i32 0, i32 %41
  %42 = getelementptr inbounds i8, ptr %2, i64 8
  %43 = load i32, ptr %42, align 8, !tbaa !27
  %44 = and i32 %43, 32
  %.not = icmp eq i32 %44, 0
  br i1 %.not, label %56, label %45

45:                                               ; preds = %32
  %46 = call noundef float @_ZN6SoLoud4vec33magEv(ptr noundef nonnull align 4 dereferenceable(12) %13)
  %47 = getelementptr inbounds i8, ptr %0, i64 11736
  %48 = load float, ptr %47, align 8, !tbaa !29
  %49 = fdiv float %46, %48
  %50 = load i32, ptr %36, align 4, !tbaa !26
  %51 = uitofp i32 %50 to float
  %52 = fmul float %49, %51
  %53 = call noundef float @_ZSt5floorf(float noundef %52)
  %54 = fptosi float %53 to i32
  %55 = add nsw i32 %spec.store.select, %54
  br label %56

56:                                               ; preds = %45, %32
  %.042 = phi i32 [ %55, %45 ], [ %spec.store.select, %32 ]
  call void @_ZN6SoLoud6Soloud23update3dVoices_internalEPjj(ptr noundef nonnull align 8 dereferenceable(138833) %0, ptr noundef nonnull %12, i32 noundef 1)
  call void @_ZN6SoLoud6Soloud23lockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %0)
  %57 = load i32, ptr %12, align 4, !tbaa !5
  call void @_ZN6SoLoud6Soloud37updateVoiceRelativePlaySpeed_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %57)
  %58 = load i32, ptr %12, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [1024 x ptr], ptr %22, i64 0, i64 %59
  %61 = load ptr, ptr %60, align 8, !tbaa !13
  %62 = getelementptr inbounds i8, ptr %61, i64 24
  %63 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %19, i64 0, i64 %59, i32 13, i64 0
  %64 = load float, ptr %63, align 4, !tbaa !30
  store float %64, ptr %62, align 4, !tbaa !30
  %65 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %19, i64 0, i64 %59, i32 13, i64 1
  %66 = load float, ptr %65, align 8, !tbaa !30
  %67 = getelementptr inbounds i8, ptr %61, i64 28
  store float %66, ptr %67, align 4, !tbaa !30
  %68 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %19, i64 0, i64 %59, i32 13, i64 2
  %69 = load float, ptr %68, align 4, !tbaa !30
  %70 = getelementptr inbounds i8, ptr %61, i64 32
  store float %69, ptr %70, align 4, !tbaa !30
  %71 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %19, i64 0, i64 %59, i32 13, i64 3
  %72 = load float, ptr %71, align 8, !tbaa !30
  %73 = getelementptr inbounds i8, ptr %61, i64 36
  store float %72, ptr %73, align 4, !tbaa !30
  %74 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %19, i64 0, i64 %59, i32 13, i64 4
  %75 = load float, ptr %74, align 4, !tbaa !30
  %76 = getelementptr inbounds i8, ptr %61, i64 40
  store float %75, ptr %76, align 4, !tbaa !30
  %77 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %19, i64 0, i64 %59, i32 13, i64 5
  %78 = load float, ptr %77, align 8, !tbaa !30
  %79 = getelementptr inbounds i8, ptr %61, i64 44
  store float %78, ptr %79, align 4, !tbaa !30
  %80 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %19, i64 0, i64 %59, i32 13, i64 6
  %81 = load float, ptr %80, align 4, !tbaa !30
  %82 = getelementptr inbounds i8, ptr %61, i64 48
  store float %81, ptr %82, align 4, !tbaa !30
  %83 = getelementptr inbounds [1024 x %"class.SoLoud::AudioSourceInstance3dData"], ptr %19, i64 0, i64 %59, i32 13, i64 7
  %84 = load float, ptr %83, align 8, !tbaa !30
  %85 = getelementptr inbounds i8, ptr %61, i64 52
  store float %84, ptr %85, align 4, !tbaa !30
  call void @_ZN6SoLoud6Soloud26updateVoiceVolume_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %58)
  %86 = load i32, ptr %12, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [1024 x ptr], ptr %22, i64 0, i64 %87
  %89 = load ptr, ptr %88, align 8, !tbaa !13
  %90 = getelementptr inbounds i8, ptr %89, i64 24
  %91 = getelementptr inbounds i8, ptr %89, i64 60
  %92 = getelementptr inbounds i8, ptr %89, i64 348
  %93 = load float, ptr %91, align 4, !tbaa !31
  %94 = load <4 x float>, ptr %90, align 4, !tbaa !30
  %95 = insertelement <4 x float> poison, float %93, i64 0
  %96 = shufflevector <4 x float> %95, <4 x float> poison, <4 x i32> zeroinitializer
  %97 = fmul <4 x float> %94, %96
  store <4 x float> %97, ptr %92, align 4, !tbaa !30
  %98 = getelementptr inbounds i8, ptr %89, i64 40
  %99 = getelementptr inbounds i8, ptr %89, i64 364
  %100 = load <4 x float>, ptr %98, align 4, !tbaa !30
  %101 = fmul <4 x float> %100, %96
  store <4 x float> %101, ptr %99, align 4, !tbaa !30
  %102 = fcmp olt float %93, 0x3F847AE140000000
  %103 = getelementptr inbounds i8, ptr %89, i64 16
  %104 = load i32, ptr %103, align 8, !tbaa !14
  br i1 %102, label %105, label %109

105:                                              ; preds = %56
  %106 = or i32 %104, 32
  store i32 %106, ptr %103, align 8, !tbaa !14
  %107 = and i32 %104, 64
  %.not46 = icmp eq i32 %107, 0
  br i1 %.not46, label %111, label %108

108:                                              ; preds = %105
  call void @_ZN6SoLoud6Soloud18stopVoice_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %86)
  br label %111

109:                                              ; preds = %56
  %110 = and i32 %104, -33
  store i32 %110, ptr %103, align 8, !tbaa !14
  br label %111

111:                                              ; preds = %105, %108, %109
  %112 = getelementptr inbounds i8, ptr %0, i64 138832
  store i8 1, ptr %112, align 8, !tbaa !32
  call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %0)
  call void @_ZN6SoLoud6Soloud15setDelaySamplesEjj(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %14, i32 noundef %.042)
  call void @_ZN6SoLoud6Soloud8setPauseEjb(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %14, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #6
  br label %113

113:                                              ; preds = %111, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  ret i32 %14
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 112}
!10 = !{!"_ZTSN6SoLoud25AudioSourceInstance3dDataE", !7, i64 0, !7, i64 12, !11, i64 24, !11, i64 28, !11, i64 32, !6, i64 36, !11, i64 40, !12, i64 48, !12, i64 56, !6, i64 64, !11, i64 68, !11, i64 72, !7, i64 76, !6, i64 108, !6, i64 112}
!11 = !{!"float", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !6, i64 16}
!15 = !{!"_ZTSN6SoLoud19AudioSourceInstanceE", !6, i64 8, !6, i64 12, !6, i64 16, !11, i64 20, !7, i64 24, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !6, i64 72, !11, i64 76, !11, i64 80, !16, i64 88, !16, i64 96, !17, i64 104, !17, i64 152, !17, i64 200, !17, i64 248, !17, i64 296, !6, i64 344, !7, i64 348, !6, i64 380, !6, i64 384, !7, i64 392, !7, i64 456, !6, i64 472, !6, i64 476, !6, i64 480, !16, i64 488}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSN6SoLoud5FaderE", !11, i64 0, !11, i64 4, !11, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !11, i64 40, !6, i64 44}
!18 = !{!19, !16, i64 8448}
!19 = !{!"_ZTSN6SoLoud6SoloudE", !12, i64 0, !12, i64 8, !20, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !6, i64 48, !6, i64 52, !21, i64 56, !6, i64 80, !21, i64 88, !12, i64 112, !21, i64 120, !12, i64 144, !7, i64 152, !6, i64 8344, !6, i64 8348, !6, i64 8352, !6, i64 8356, !12, i64 8360, !6, i64 8368, !6, i64 8372, !11, i64 8376, !11, i64 8380, !6, i64 8384, !6, i64 8388, !17, i64 8392, !16, i64 8440, !16, i64 8448, !7, i64 8456, !7, i64 8520, !7, i64 8584, !7, i64 8616, !7, i64 9640, !7, i64 10664, !7, i64 11688, !7, i64 11700, !7, i64 11712, !7, i64 11724, !11, i64 11736, !7, i64 11740, !7, i64 11840, !12, i64 134720, !6, i64 134728, !7, i64 134732, !6, i64 138828, !20, i64 138832}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN6SoLoud18AlignedFloatBufferE", !12, i64 0, !12, i64 8, !6, i64 16}
!22 = !{!23, !11, i64 0}
!23 = !{!"_ZTSN6SoLoud4vec3E", !11, i64 0, !11, i64 4, !11, i64 8}
!24 = !{!23, !11, i64 4}
!25 = !{!23, !11, i64 8}
!26 = !{!19, !6, i64 8348}
!27 = !{!28, !6, i64 8}
!28 = !{!"_ZTSN6SoLoud11AudioSourceE", !6, i64 8, !11, i64 12, !11, i64 16, !6, i64 20, !6, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !6, i64 40, !11, i64 44, !7, i64 48, !12, i64 112, !12, i64 120, !12, i64 128, !6, i64 136, !16, i64 144}
!29 = !{!19, !11, i64 11736}
!30 = !{!11, !11, i64 0}
!31 = !{!15, !11, i64 60}
!32 = !{!19, !20, i64 138832}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass