; 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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6SoLoud6Soloud6play3dERNS_11AudioSourceEfffffffbj(ptr noundef nonnull align 8 dereferenceable(138833) %0, ptr noundef nonnull align 8 dereferenceable(152) %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, i1 noundef zeroext %9, i32 noundef %10) #1 align 2 {
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca float, align 4
  %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 i8, align 1
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %"struct.SoLoud::vec3", align 4
  %29 = alloca float, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store float %2, ptr %15, align 4, !tbaa !9
  store float %3, ptr %16, align 4, !tbaa !9
  store float %4, ptr %17, align 4, !tbaa !9
  store float %5, ptr %18, align 4, !tbaa !9
  store float %6, ptr %19, align 4, !tbaa !9
  store float %7, ptr %20, align 4, !tbaa !9
  store float %8, ptr %21, align 4, !tbaa !9
  %32 = zext i1 %9 to i8
  store i8 %32, ptr %22, align 1, !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) #5
  %34 = load ptr, ptr %14, align 8, !tbaa !5
  %35 = load float, ptr %21, align 4, !tbaa !9
  %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) #5
  %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 %230

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 %15, align 4, !tbaa !9
  %61 = load float, ptr %16, align 4, !tbaa !9
  %62 = load float, ptr %17, align 4, !tbaa !9
  %63 = load float, ptr %18, align 4, !tbaa !9
  %64 = load float, ptr %19, align 4, !tbaa !9
  %65 = load float, ptr %20, align 4, !tbaa !9
  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 4, ptr %27) #5
  store i32 0, ptr %27, align 4, !tbaa !13
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %66, i32 0, i32 1
  %68 = load i32, ptr %67, align 8, !tbaa !21
  %69 = and i32 %68, 32
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %120

71:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #5
  %72 = load float, ptr %15, align 4, !tbaa !9
  %73 = getelementptr inbounds %"struct.SoLoud::vec3", ptr %28, i32 0, i32 0
  store float %72, ptr %73, align 4, !tbaa !23
  %74 = load float, ptr %16, align 4, !tbaa !9
  %75 = getelementptr inbounds %"struct.SoLoud::vec3", ptr %28, i32 0, i32 1
  store float %74, ptr %75, align 4, !tbaa !25
  %76 = load float, ptr %17, align 4, !tbaa !9
  %77 = getelementptr inbounds %"struct.SoLoud::vec3", ptr %28, i32 0, i32 2
  store float %76, ptr %77, align 4, !tbaa !26
  %78 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 16
  %79 = load i32, ptr %25, align 4, !tbaa !13
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [1024 x ptr], ptr %78, i64 0, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %82, i32 0, i32 3
  %84 = load i32, ptr %83, align 8, !tbaa !17
  %85 = and i32 %84, 16
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %106, label %87

87:                                               ; preds = %71
  %88 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 37
  %89 = getelementptr inbounds [3 x float], ptr %88, i64 0, i64 0
  %90 = load float, ptr %89, align 8, !tbaa !9
  %91 = getelementptr inbounds %"struct.SoLoud::vec3", ptr %28, i32 0, i32 0
  %92 = load float, ptr %91, align 4, !tbaa !23
  %93 = fsub float %92, %90
  store float %93, ptr %91, align 4, !tbaa !23
  %94 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 37
  %95 = getelementptr inbounds [3 x float], ptr %94, i64 0, i64 1
  %96 = load float, ptr %95, align 4, !tbaa !9
  %97 = getelementptr inbounds %"struct.SoLoud::vec3", ptr %28, i32 0, i32 1
  %98 = load float, ptr %97, align 4, !tbaa !25
  %99 = fsub float %98, %96
  store float %99, ptr %97, align 4, !tbaa !25
  %100 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 37
  %101 = getelementptr inbounds [3 x float], ptr %100, i64 0, i64 2
  %102 = load float, ptr %101, align 8, !tbaa !9
  %103 = getelementptr inbounds %"struct.SoLoud::vec3", ptr %28, i32 0, i32 2
  %104 = load float, ptr %103, align 4, !tbaa !26
  %105 = fsub float %104, %102
  store float %105, ptr %103, align 4, !tbaa !26
  br label %106

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

120:                                              ; preds = %106, %44
  call void @_ZN6SoLoud6Soloud23update3dVoices_internalEPjj(ptr noundef nonnull align 8 dereferenceable(138833) %33, ptr noundef %25, i32 noundef 1)
  %121 = load i32, ptr %25, align 4, !tbaa !13
  call void @_ZN6SoLoud6Soloud37updateVoiceRelativePlaySpeed_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %33, i32 noundef %121)
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  store i32 0, ptr %30, align 4, !tbaa !13
  br label %122

122:                                              ; preds = %144, %120
  %123 = load i32, ptr %30, align 4, !tbaa !13
  %124 = icmp slt i32 %123, 8
  br i1 %124, label %125, label %147

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

144:                                              ; preds = %125
  %145 = load i32, ptr %30, align 4, !tbaa !13
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %30, align 4, !tbaa !13
  br label %122, !llvm.loop !31

147:                                              ; preds = %122
  %148 = load i32, ptr %25, align 4, !tbaa !13
  call void @_ZN6SoLoud6Soloud26updateVoiceVolume_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %33, i32 noundef %148)
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 0, ptr %31, align 4, !tbaa !13
  br label %149

149:                                              ; preds = %180, %147
  %150 = load i32, ptr %31, align 4, !tbaa !13
  %151 = icmp slt i32 %150, 8
  br i1 %151, label %152, label %183

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

180:                                              ; preds = %152
  %181 = load i32, ptr %31, align 4, !tbaa !13
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %31, align 4, !tbaa !13
  br label %149, !llvm.loop !34

183:                                              ; preds = %149
  %184 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 16
  %185 = load i32, ptr %25, align 4, !tbaa !13
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [1024 x ptr], ptr %184, i64 0, i64 %186
  %188 = load ptr, ptr %187, align 8, !tbaa !5
  %189 = getelementptr inbounds %"class.SoLoud::AudioSourceInstance", ptr %188, i32 0, i32 7
  %190 = load float, ptr %189, align 4, !tbaa !33
  %191 = fcmp olt float %190, 0x3F847AE140000000
  br i1 %191, label %192, label %213

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

210:                                              ; preds = %192
  %211 = load i32, ptr %25, align 4, !tbaa !13
  call void @_ZN6SoLoud6Soloud18stopVoice_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %33, i32 noundef %211)
  br label %212

212:                                              ; preds = %210, %192
  br label %222

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

222:                                              ; preds = %213, %212
  %223 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %33, i32 0, i32 49
  store i8 1, ptr %223, align 8, !tbaa !35
  call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %33)
  %224 = load i32, ptr %24, align 4, !tbaa !13
  %225 = load i32, ptr %27, align 4, !tbaa !13
  call void @_ZN6SoLoud6Soloud15setDelaySamplesEjj(ptr noundef nonnull align 8 dereferenceable(138833) %33, i32 noundef %224, i32 noundef %225)
  %226 = load i32, ptr %24, align 4, !tbaa !13
  %227 = load i8, ptr %22, align 1, !tbaa !11, !range !36, !noundef !37
  %228 = trunc i8 %227 to i1
  call void @_ZN6SoLoud6Soloud8setPauseEjb(ptr noundef nonnull align 8 dereferenceable(138833) %33, i32 noundef %226, i1 noundef zeroext %228)
  %229 = load i32, ptr %24, align 4, !tbaa !13
  store i32 %229, ptr %12, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %230

230:                                              ; preds = %222, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  %231 = load i32, ptr %12, align 4
  ret i32 %231
}

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

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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !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, !10, i64 24, !10, i64 28, !10, i64 32, !14, i64 36, !10, i64 40, !6, i64 48, !6, i64 56, !14, i64 64, !10, i64 68, !10, 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, !10, i64 20, !7, i64 24, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !14, i64 72, !10, i64 76, !10, i64 80, !19, i64 88, !19, i64 96, !20, i64 104, !20, i64 152, !20, i64 200, !20, i64 248, !20, 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, !19, i64 488}
!19 = !{!"double", !7, i64 0}
!20 = !{!"_ZTSN6SoLoud5FaderE", !10, i64 0, !10, i64 4, !10, i64 8, !19, i64 16, !19, i64 24, !19, i64 32, !10, i64 40, !14, i64 44}
!21 = !{!22, !14, i64 8}
!22 = !{!"_ZTSN6SoLoud11AudioSourceE", !14, i64 8, !10, i64 12, !10, i64 16, !14, i64 20, !14, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !14, i64 40, !10, i64 44, !7, i64 48, !6, i64 112, !6, i64 120, !6, i64 128, !14, i64 136, !19, i64 144}
!23 = !{!24, !10, i64 0}
!24 = !{!"_ZTSN6SoLoud4vec3E", !10, i64 0, !10, i64 4, !10, i64 8}
!25 = !{!24, !10, i64 4}
!26 = !{!24, !10, i64 8}
!27 = !{!28, !10, i64 11736}
!28 = !{!"_ZTSN6SoLoud6SoloudE", !6, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !14, i64 52, !29, i64 56, !14, i64 80, !29, i64 88, !6, i64 112, !29, 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, !10, i64 8376, !10, i64 8380, !14, i64 8384, !14, i64 8388, !20, i64 8392, !19, i64 8440, !19, 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, !10, i64 11736, !7, i64 11740, !7, i64 11840, !6, i64 134720, !14, i64 134728, !7, i64 134732, !14, i64 138828, !12, i64 138832}
!29 = !{!"_ZTSN6SoLoud18AlignedFloatBufferE", !6, i64 0, !6, i64 8, !14, i64 16}
!30 = !{!28, !14, i64 8348}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!18, !10, i64 60}
!34 = distinct !{!34, !32}
!35 = !{!28, !12, i64 138832}
!36 = !{i8 0, i8 2}
!37 = !{}


; 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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6SoLoud6Soloud6play3dERNS_11AudioSourceEfffffffbj(ptr noundef nonnull align 8 dereferenceable(138833) %0, ptr noundef nonnull align 8 dereferenceable(152) %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, i1 noundef zeroext %9, i32 noundef %10) local_unnamed_addr #1 align 2 {
  %12 = alloca i32, align 4
  %13 = alloca %"struct.SoLoud::vec3", align 8
  %14 = tail call noundef i32 @_ZN6SoLoud6Soloud4playERNS_11AudioSourceEffbj(ptr noundef nonnull align 8 dereferenceable(138833) %0, ptr noundef nonnull align 8 dereferenceable(152) %1, float noundef %8, 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) #5
  %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 %117

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 %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7)
  %28 = getelementptr inbounds i8, ptr %1, i64 8
  %29 = load i32, ptr %28, align 8, !tbaa !18
  %30 = and i32 %29, 32
  %.not = icmp eq i32 %30, 0
  br i1 %.not, label %60, label %31

31:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #5
  store float %2, ptr %13, align 8, !tbaa !20
  %32 = getelementptr inbounds i8, ptr %13, i64 4
  store float %3, ptr %32, align 4, !tbaa !22
  %33 = getelementptr inbounds i8, ptr %13, i64 8
  store float %4, ptr %33, align 8, !tbaa !23
  %34 = zext nneg i32 %15 to i64
  %35 = getelementptr inbounds [1024 x ptr], ptr %22, i64 0, i64 %34
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  %37 = getelementptr inbounds i8, ptr %36, i64 16
  %38 = load i32, ptr %37, align 8, !tbaa !14
  %39 = and i32 %38, 16
  %.not37 = icmp eq i32 %39, 0
  br i1 %.not37, label %40, label %49

40:                                               ; preds = %31
  %41 = getelementptr inbounds i8, ptr %0, i64 11688
  %42 = load <2 x float>, ptr %41, align 8, !tbaa !24
  %43 = insertelement <2 x float> poison, float %2, i64 0
  %44 = insertelement <2 x float> %43, float %3, i64 1
  %45 = fsub <2 x float> %44, %42
  store <2 x float> %45, ptr %13, align 8, !tbaa !24
  %46 = getelementptr inbounds i8, ptr %0, i64 11696
  %47 = load float, ptr %46, align 8, !tbaa !24
  %48 = fsub float %4, %47
  store float %48, ptr %33, align 8, !tbaa !23
  br label %49

49:                                               ; preds = %40, %31
  %50 = call noundef float @_ZN6SoLoud4vec33magEv(ptr noundef nonnull align 4 dereferenceable(12) %13)
  %51 = getelementptr inbounds i8, ptr %0, i64 11736
  %52 = load float, ptr %51, align 8, !tbaa !25
  %53 = fdiv float %50, %52
  %54 = getelementptr inbounds i8, ptr %0, i64 8348
  %55 = load i32, ptr %54, align 4, !tbaa !29
  %56 = uitofp i32 %55 to float
  %57 = fmul float %53, %56
  %58 = call noundef float @_ZSt5floorf(float noundef %57)
  %59 = fptosi float %58 to i32
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #5
  br label %60

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

109:                                              ; preds = %60
  %110 = or i32 %108, 32
  store i32 %110, ptr %107, align 8, !tbaa !14
  %111 = and i32 %108, 64
  %.not38 = icmp eq i32 %111, 0
  br i1 %.not38, label %115, label %112

112:                                              ; preds = %109
  call void @_ZN6SoLoud6Soloud18stopVoice_internalEj(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %90)
  br label %115

113:                                              ; preds = %60
  %114 = and i32 %108, -33
  store i32 %114, ptr %107, align 8, !tbaa !14
  br label %115

115:                                              ; preds = %109, %112, %113
  %116 = getelementptr inbounds i8, ptr %0, i64 138832
  store i8 1, ptr %116, align 8, !tbaa !31
  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 %.035)
  call void @_ZN6SoLoud6Soloud8setPauseEjb(ptr noundef nonnull align 8 dereferenceable(138833) %0, i32 noundef %14, i1 noundef zeroext %9)
  br label %117

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

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

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 = { 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, !6, i64 8}
!19 = !{!"_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}
!20 = !{!21, !11, i64 0}
!21 = !{!"_ZTSN6SoLoud4vec3E", !11, i64 0, !11, i64 4, !11, i64 8}
!22 = !{!21, !11, i64 4}
!23 = !{!21, !11, i64 8}
!24 = !{!11, !11, i64 0}
!25 = !{!26, !11, i64 11736}
!26 = !{!"_ZTSN6SoLoud6SoloudE", !12, i64 0, !12, i64 8, !27, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !6, i64 48, !6, i64 52, !28, i64 56, !6, i64 80, !28, i64 88, !12, i64 112, !28, 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, !27, i64 138832}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"_ZTSN6SoLoud18AlignedFloatBufferE", !12, i64 0, !12, i64 8, !6, i64 16}
!29 = !{!26, !6, i64 8348}
!30 = !{!15, !11, i64 60}
!31 = !{!26, !27, i64 138832}


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