; LLVM IR from Overload-Technologies/Overload :: Dependencies/soloud/src/core/soloud_bus.ll (ZN6SoLoud3Bus7getWaveEv)

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

%"class.SoLoud::Bus" = type { %"class.SoLoud::AudioSource", ptr, i32, i32, [256 x float], [256 x float] }
%"class.SoLoud::AudioSource" = type { ptr, i32, float, float, i32, i32, float, float, float, i32, float, [8 x ptr], ptr, ptr, ptr, i32, double }
%"class.SoLoud::BusInstance" = type { %"class.SoLoud::AudioSourceInstance", ptr, i32, [4 x i8], %"class.SoLoud::AlignedFloatBuffer", [8 x float], [256 x float] }
%"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::Fader" = type { float, float, float, double, double, double, float, i32 }
%"class.SoLoud::AlignedFloatBuffer" = type <{ ptr, ptr, i32, [4 x i8] }>

; 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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN6SoLoud3Bus7getWaveEv(ptr noundef nonnull align 8 dereferenceable(2216) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %4 = load ptr, ptr %2, align 8
  %5 = getelementptr inbounds %"class.SoLoud::Bus", ptr %4, i32 0, i32 1
  %6 = load ptr, ptr %5, align 8, !tbaa !9
  %7 = icmp ne ptr %6, null
  br i1 %7, label %8, label %36

8:                                                ; preds = %1
  %9 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %4, i32 0, i32 12
  %10 = load ptr, ptr %9, align 8, !tbaa !15
  %11 = icmp ne ptr %10, null
  br i1 %11, label %12, label %36

12:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %13 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %4, i32 0, i32 12
  %14 = load ptr, ptr %13, align 8, !tbaa !15
  call void @_ZN6SoLoud6Soloud23lockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %14)
  store i32 0, ptr %3, align 4, !tbaa !16
  br label %15

15:                                               ; preds = %30, %12
  %16 = load i32, ptr %3, align 4, !tbaa !16
  %17 = icmp slt i32 %16, 256
  br i1 %17, label %18, label %33

18:                                               ; preds = %15
  %19 = getelementptr inbounds %"class.SoLoud::Bus", ptr %4, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %"class.SoLoud::BusInstance", ptr %20, i32 0, i32 6
  %22 = load i32, ptr %3, align 4, !tbaa !16
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [256 x float], ptr %21, i64 0, i64 %23
  %25 = load float, ptr %24, align 4, !tbaa !17
  %26 = getelementptr inbounds %"class.SoLoud::Bus", ptr %4, i32 0, i32 5
  %27 = load i32, ptr %3, align 4, !tbaa !16
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [256 x float], ptr %26, i64 0, i64 %28
  store float %25, ptr %29, align 4, !tbaa !17
  br label %30

30:                                               ; preds = %18
  %31 = load i32, ptr %3, align 4, !tbaa !16
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %3, align 4, !tbaa !16
  br label %15, !llvm.loop !18

33:                                               ; preds = %15
  %34 = getelementptr inbounds %"class.SoLoud::AudioSource", ptr %4, i32 0, i32 12
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %35)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  br label %36

36:                                               ; preds = %33, %8, %1
  %37 = getelementptr inbounds %"class.SoLoud::Bus", ptr %4, i32 0, i32 5
  %38 = getelementptr inbounds [256 x float], ptr %37, i64 0, i64 0
  ret ptr %38
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !6, i64 152}
!10 = !{!"_ZTSN6SoLoud3BusE", !11, i64 0, !6, i64 152, !12, i64 160, !12, i64 164, !7, i64 168, !7, i64 1192}
!11 = !{!"_ZTSN6SoLoud11AudioSourceE", !12, i64 8, !13, i64 12, !13, i64 16, !12, i64 20, !12, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !12, i64 40, !13, i64 44, !7, i64 48, !6, i64 112, !6, i64 120, !6, i64 128, !12, i64 136, !14, i64 144}
!12 = !{!"int", !7, i64 0}
!13 = !{!"float", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!11, !6, i64 112}
!16 = !{!12, !12, i64 0}
!17 = !{!13, !13, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}


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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN6SoLoud3Bus7getWaveEv(ptr noundef nonnull align 8 dereferenceable(2216) %0) local_unnamed_addr #1 align 2 {
  %2 = ptrtoint ptr %0 to i64
  %3 = getelementptr inbounds i8, ptr %0, i64 152
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %153, label %5

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 112
  %7 = load ptr, ptr %6, align 8, !tbaa !14
  %.not5 = icmp eq ptr %7, null
  br i1 %.not5, label %153, label %vector.memcheck

vector.memcheck:                                  ; preds = %5
  tail call void @_ZN6SoLoud6Soloud23lockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %7)
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %8, i64 568
  %10 = getelementptr inbounds i8, ptr %0, i64 1192
  %11 = ptrtoint ptr %8 to i64
  %12 = add i64 %2, 624
  %13 = sub i64 %12, %11
  %diff.check = icmp ult i64 %13, 32
  br i1 %diff.check, label %scalar.ph, label %vector.body

vector.body:                                      ; preds = %vector.memcheck
  %14 = getelementptr inbounds i8, ptr %8, i64 584
  %wide.load = load <4 x float>, ptr %9, align 4, !tbaa !15
  %wide.load8 = load <4 x float>, ptr %14, align 4, !tbaa !15
  %15 = getelementptr inbounds i8, ptr %0, i64 1208
  store <4 x float> %wide.load, ptr %10, align 8, !tbaa !15
  store <4 x float> %wide.load8, ptr %15, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %8, i64 600
  %17 = getelementptr inbounds i8, ptr %8, i64 616
  %wide.load.1 = load <4 x float>, ptr %16, align 4, !tbaa !15
  %wide.load8.1 = load <4 x float>, ptr %17, align 4, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %0, i64 1224
  %19 = getelementptr inbounds i8, ptr %0, i64 1240
  store <4 x float> %wide.load.1, ptr %18, align 8, !tbaa !15
  store <4 x float> %wide.load8.1, ptr %19, align 8, !tbaa !15
  %20 = getelementptr inbounds i8, ptr %8, i64 632
  %21 = getelementptr inbounds i8, ptr %8, i64 648
  %wide.load.2 = load <4 x float>, ptr %20, align 4, !tbaa !15
  %wide.load8.2 = load <4 x float>, ptr %21, align 4, !tbaa !15
  %22 = getelementptr inbounds i8, ptr %0, i64 1256
  %23 = getelementptr inbounds i8, ptr %0, i64 1272
  store <4 x float> %wide.load.2, ptr %22, align 8, !tbaa !15
  store <4 x float> %wide.load8.2, ptr %23, align 8, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %8, i64 664
  %25 = getelementptr inbounds i8, ptr %8, i64 680
  %wide.load.3 = load <4 x float>, ptr %24, align 4, !tbaa !15
  %wide.load8.3 = load <4 x float>, ptr %25, align 4, !tbaa !15
  %26 = getelementptr inbounds i8, ptr %0, i64 1288
  %27 = getelementptr inbounds i8, ptr %0, i64 1304
  store <4 x float> %wide.load.3, ptr %26, align 8, !tbaa !15
  store <4 x float> %wide.load8.3, ptr %27, align 8, !tbaa !15
  %28 = getelementptr inbounds i8, ptr %8, i64 696
  %29 = getelementptr inbounds i8, ptr %8, i64 712
  %wide.load.4 = load <4 x float>, ptr %28, align 4, !tbaa !15
  %wide.load8.4 = load <4 x float>, ptr %29, align 4, !tbaa !15
  %30 = getelementptr inbounds i8, ptr %0, i64 1320
  %31 = getelementptr inbounds i8, ptr %0, i64 1336
  store <4 x float> %wide.load.4, ptr %30, align 8, !tbaa !15
  store <4 x float> %wide.load8.4, ptr %31, align 8, !tbaa !15
  %32 = getelementptr inbounds i8, ptr %8, i64 728
  %33 = getelementptr inbounds i8, ptr %8, i64 744
  %wide.load.5 = load <4 x float>, ptr %32, align 4, !tbaa !15
  %wide.load8.5 = load <4 x float>, ptr %33, align 4, !tbaa !15
  %34 = getelementptr inbounds i8, ptr %0, i64 1352
  %35 = getelementptr inbounds i8, ptr %0, i64 1368
  store <4 x float> %wide.load.5, ptr %34, align 8, !tbaa !15
  store <4 x float> %wide.load8.5, ptr %35, align 8, !tbaa !15
  %36 = getelementptr inbounds i8, ptr %8, i64 760
  %37 = getelementptr inbounds i8, ptr %8, i64 776
  %wide.load.6 = load <4 x float>, ptr %36, align 4, !tbaa !15
  %wide.load8.6 = load <4 x float>, ptr %37, align 4, !tbaa !15
  %38 = getelementptr inbounds i8, ptr %0, i64 1384
  %39 = getelementptr inbounds i8, ptr %0, i64 1400
  store <4 x float> %wide.load.6, ptr %38, align 8, !tbaa !15
  store <4 x float> %wide.load8.6, ptr %39, align 8, !tbaa !15
  %40 = getelementptr inbounds i8, ptr %8, i64 792
  %41 = getelementptr inbounds i8, ptr %8, i64 808
  %wide.load.7 = load <4 x float>, ptr %40, align 4, !tbaa !15
  %wide.load8.7 = load <4 x float>, ptr %41, align 4, !tbaa !15
  %42 = getelementptr inbounds i8, ptr %0, i64 1416
  %43 = getelementptr inbounds i8, ptr %0, i64 1432
  store <4 x float> %wide.load.7, ptr %42, align 8, !tbaa !15
  store <4 x float> %wide.load8.7, ptr %43, align 8, !tbaa !15
  %44 = getelementptr inbounds i8, ptr %8, i64 824
  %45 = getelementptr inbounds i8, ptr %8, i64 840
  %wide.load.8 = load <4 x float>, ptr %44, align 4, !tbaa !15
  %wide.load8.8 = load <4 x float>, ptr %45, align 4, !tbaa !15
  %46 = getelementptr inbounds i8, ptr %0, i64 1448
  %47 = getelementptr inbounds i8, ptr %0, i64 1464
  store <4 x float> %wide.load.8, ptr %46, align 8, !tbaa !15
  store <4 x float> %wide.load8.8, ptr %47, align 8, !tbaa !15
  %48 = getelementptr inbounds i8, ptr %8, i64 856
  %49 = getelementptr inbounds i8, ptr %8, i64 872
  %wide.load.9 = load <4 x float>, ptr %48, align 4, !tbaa !15
  %wide.load8.9 = load <4 x float>, ptr %49, align 4, !tbaa !15
  %50 = getelementptr inbounds i8, ptr %0, i64 1480
  %51 = getelementptr inbounds i8, ptr %0, i64 1496
  store <4 x float> %wide.load.9, ptr %50, align 8, !tbaa !15
  store <4 x float> %wide.load8.9, ptr %51, align 8, !tbaa !15
  %52 = getelementptr inbounds i8, ptr %8, i64 888
  %53 = getelementptr inbounds i8, ptr %8, i64 904
  %wide.load.10 = load <4 x float>, ptr %52, align 4, !tbaa !15
  %wide.load8.10 = load <4 x float>, ptr %53, align 4, !tbaa !15
  %54 = getelementptr inbounds i8, ptr %0, i64 1512
  %55 = getelementptr inbounds i8, ptr %0, i64 1528
  store <4 x float> %wide.load.10, ptr %54, align 8, !tbaa !15
  store <4 x float> %wide.load8.10, ptr %55, align 8, !tbaa !15
  %56 = getelementptr inbounds i8, ptr %8, i64 920
  %57 = getelementptr inbounds i8, ptr %8, i64 936
  %wide.load.11 = load <4 x float>, ptr %56, align 4, !tbaa !15
  %wide.load8.11 = load <4 x float>, ptr %57, align 4, !tbaa !15
  %58 = getelementptr inbounds i8, ptr %0, i64 1544
  %59 = getelementptr inbounds i8, ptr %0, i64 1560
  store <4 x float> %wide.load.11, ptr %58, align 8, !tbaa !15
  store <4 x float> %wide.load8.11, ptr %59, align 8, !tbaa !15
  %60 = getelementptr inbounds i8, ptr %8, i64 952
  %61 = getelementptr inbounds i8, ptr %8, i64 968
  %wide.load.12 = load <4 x float>, ptr %60, align 4, !tbaa !15
  %wide.load8.12 = load <4 x float>, ptr %61, align 4, !tbaa !15
  %62 = getelementptr inbounds i8, ptr %0, i64 1576
  %63 = getelementptr inbounds i8, ptr %0, i64 1592
  store <4 x float> %wide.load.12, ptr %62, align 8, !tbaa !15
  store <4 x float> %wide.load8.12, ptr %63, align 8, !tbaa !15
  %64 = getelementptr inbounds i8, ptr %8, i64 984
  %65 = getelementptr inbounds i8, ptr %8, i64 1000
  %wide.load.13 = load <4 x float>, ptr %64, align 4, !tbaa !15
  %wide.load8.13 = load <4 x float>, ptr %65, align 4, !tbaa !15
  %66 = getelementptr inbounds i8, ptr %0, i64 1608
  %67 = getelementptr inbounds i8, ptr %0, i64 1624
  store <4 x float> %wide.load.13, ptr %66, align 8, !tbaa !15
  store <4 x float> %wide.load8.13, ptr %67, align 8, !tbaa !15
  %68 = getelementptr inbounds i8, ptr %8, i64 1016
  %69 = getelementptr inbounds i8, ptr %8, i64 1032
  %wide.load.14 = load <4 x float>, ptr %68, align 4, !tbaa !15
  %wide.load8.14 = load <4 x float>, ptr %69, align 4, !tbaa !15
  %70 = getelementptr inbounds i8, ptr %0, i64 1640
  %71 = getelementptr inbounds i8, ptr %0, i64 1656
  store <4 x float> %wide.load.14, ptr %70, align 8, !tbaa !15
  store <4 x float> %wide.load8.14, ptr %71, align 8, !tbaa !15
  %72 = getelementptr inbounds i8, ptr %8, i64 1048
  %73 = getelementptr inbounds i8, ptr %8, i64 1064
  %wide.load.15 = load <4 x float>, ptr %72, align 4, !tbaa !15
  %wide.load8.15 = load <4 x float>, ptr %73, align 4, !tbaa !15
  %74 = getelementptr inbounds i8, ptr %0, i64 1672
  %75 = getelementptr inbounds i8, ptr %0, i64 1688
  store <4 x float> %wide.load.15, ptr %74, align 8, !tbaa !15
  store <4 x float> %wide.load8.15, ptr %75, align 8, !tbaa !15
  %76 = getelementptr inbounds i8, ptr %8, i64 1080
  %77 = getelementptr inbounds i8, ptr %8, i64 1096
  %wide.load.16 = load <4 x float>, ptr %76, align 4, !tbaa !15
  %wide.load8.16 = load <4 x float>, ptr %77, align 4, !tbaa !15
  %78 = getelementptr inbounds i8, ptr %0, i64 1704
  %79 = getelementptr inbounds i8, ptr %0, i64 1720
  store <4 x float> %wide.load.16, ptr %78, align 8, !tbaa !15
  store <4 x float> %wide.load8.16, ptr %79, align 8, !tbaa !15
  %80 = getelementptr inbounds i8, ptr %8, i64 1112
  %81 = getelementptr inbounds i8, ptr %8, i64 1128
  %wide.load.17 = load <4 x float>, ptr %80, align 4, !tbaa !15
  %wide.load8.17 = load <4 x float>, ptr %81, align 4, !tbaa !15
  %82 = getelementptr inbounds i8, ptr %0, i64 1736
  %83 = getelementptr inbounds i8, ptr %0, i64 1752
  store <4 x float> %wide.load.17, ptr %82, align 8, !tbaa !15
  store <4 x float> %wide.load8.17, ptr %83, align 8, !tbaa !15
  %84 = getelementptr inbounds i8, ptr %8, i64 1144
  %85 = getelementptr inbounds i8, ptr %8, i64 1160
  %wide.load.18 = load <4 x float>, ptr %84, align 4, !tbaa !15
  %wide.load8.18 = load <4 x float>, ptr %85, align 4, !tbaa !15
  %86 = getelementptr inbounds i8, ptr %0, i64 1768
  %87 = getelementptr inbounds i8, ptr %0, i64 1784
  store <4 x float> %wide.load.18, ptr %86, align 8, !tbaa !15
  store <4 x float> %wide.load8.18, ptr %87, align 8, !tbaa !15
  %88 = getelementptr inbounds i8, ptr %8, i64 1176
  %89 = getelementptr inbounds i8, ptr %8, i64 1192
  %wide.load.19 = load <4 x float>, ptr %88, align 4, !tbaa !15
  %wide.load8.19 = load <4 x float>, ptr %89, align 4, !tbaa !15
  %90 = getelementptr inbounds i8, ptr %0, i64 1800
  %91 = getelementptr inbounds i8, ptr %0, i64 1816
  store <4 x float> %wide.load.19, ptr %90, align 8, !tbaa !15
  store <4 x float> %wide.load8.19, ptr %91, align 8, !tbaa !15
  %92 = getelementptr inbounds i8, ptr %8, i64 1208
  %93 = getelementptr inbounds i8, ptr %8, i64 1224
  %wide.load.20 = load <4 x float>, ptr %92, align 4, !tbaa !15
  %wide.load8.20 = load <4 x float>, ptr %93, align 4, !tbaa !15
  %94 = getelementptr inbounds i8, ptr %0, i64 1832
  %95 = getelementptr inbounds i8, ptr %0, i64 1848
  store <4 x float> %wide.load.20, ptr %94, align 8, !tbaa !15
  store <4 x float> %wide.load8.20, ptr %95, align 8, !tbaa !15
  %96 = getelementptr inbounds i8, ptr %8, i64 1240
  %97 = getelementptr inbounds i8, ptr %8, i64 1256
  %wide.load.21 = load <4 x float>, ptr %96, align 4, !tbaa !15
  %wide.load8.21 = load <4 x float>, ptr %97, align 4, !tbaa !15
  %98 = getelementptr inbounds i8, ptr %0, i64 1864
  %99 = getelementptr inbounds i8, ptr %0, i64 1880
  store <4 x float> %wide.load.21, ptr %98, align 8, !tbaa !15
  store <4 x float> %wide.load8.21, ptr %99, align 8, !tbaa !15
  %100 = getelementptr inbounds i8, ptr %8, i64 1272
  %101 = getelementptr inbounds i8, ptr %8, i64 1288
  %wide.load.22 = load <4 x float>, ptr %100, align 4, !tbaa !15
  %wide.load8.22 = load <4 x float>, ptr %101, align 4, !tbaa !15
  %102 = getelementptr inbounds i8, ptr %0, i64 1896
  %103 = getelementptr inbounds i8, ptr %0, i64 1912
  store <4 x float> %wide.load.22, ptr %102, align 8, !tbaa !15
  store <4 x float> %wide.load8.22, ptr %103, align 8, !tbaa !15
  %104 = getelementptr inbounds i8, ptr %8, i64 1304
  %105 = getelementptr inbounds i8, ptr %8, i64 1320
  %wide.load.23 = load <4 x float>, ptr %104, align 4, !tbaa !15
  %wide.load8.23 = load <4 x float>, ptr %105, align 4, !tbaa !15
  %106 = getelementptr inbounds i8, ptr %0, i64 1928
  %107 = getelementptr inbounds i8, ptr %0, i64 1944
  store <4 x float> %wide.load.23, ptr %106, align 8, !tbaa !15
  store <4 x float> %wide.load8.23, ptr %107, align 8, !tbaa !15
  %108 = getelementptr inbounds i8, ptr %8, i64 1336
  %109 = getelementptr inbounds i8, ptr %8, i64 1352
  %wide.load.24 = load <4 x float>, ptr %108, align 4, !tbaa !15
  %wide.load8.24 = load <4 x float>, ptr %109, align 4, !tbaa !15
  %110 = getelementptr inbounds i8, ptr %0, i64 1960
  %111 = getelementptr inbounds i8, ptr %0, i64 1976
  store <4 x float> %wide.load.24, ptr %110, align 8, !tbaa !15
  store <4 x float> %wide.load8.24, ptr %111, align 8, !tbaa !15
  %112 = getelementptr inbounds i8, ptr %8, i64 1368
  %113 = getelementptr inbounds i8, ptr %8, i64 1384
  %wide.load.25 = load <4 x float>, ptr %112, align 4, !tbaa !15
  %wide.load8.25 = load <4 x float>, ptr %113, align 4, !tbaa !15
  %114 = getelementptr inbounds i8, ptr %0, i64 1992
  %115 = getelementptr inbounds i8, ptr %0, i64 2008
  store <4 x float> %wide.load.25, ptr %114, align 8, !tbaa !15
  store <4 x float> %wide.load8.25, ptr %115, align 8, !tbaa !15
  %116 = getelementptr inbounds i8, ptr %8, i64 1400
  %117 = getelementptr inbounds i8, ptr %8, i64 1416
  %wide.load.26 = load <4 x float>, ptr %116, align 4, !tbaa !15
  %wide.load8.26 = load <4 x float>, ptr %117, align 4, !tbaa !15
  %118 = getelementptr inbounds i8, ptr %0, i64 2024
  %119 = getelementptr inbounds i8, ptr %0, i64 2040
  store <4 x float> %wide.load.26, ptr %118, align 8, !tbaa !15
  store <4 x float> %wide.load8.26, ptr %119, align 8, !tbaa !15
  %120 = getelementptr inbounds i8, ptr %8, i64 1432
  %121 = getelementptr inbounds i8, ptr %8, i64 1448
  %wide.load.27 = load <4 x float>, ptr %120, align 4, !tbaa !15
  %wide.load8.27 = load <4 x float>, ptr %121, align 4, !tbaa !15
  %122 = getelementptr inbounds i8, ptr %0, i64 2056
  %123 = getelementptr inbounds i8, ptr %0, i64 2072
  store <4 x float> %wide.load.27, ptr %122, align 8, !tbaa !15
  store <4 x float> %wide.load8.27, ptr %123, align 8, !tbaa !15
  %124 = getelementptr inbounds i8, ptr %8, i64 1464
  %125 = getelementptr inbounds i8, ptr %8, i64 1480
  %wide.load.28 = load <4 x float>, ptr %124, align 4, !tbaa !15
  %wide.load8.28 = load <4 x float>, ptr %125, align 4, !tbaa !15
  %126 = getelementptr inbounds i8, ptr %0, i64 2088
  %127 = getelementptr inbounds i8, ptr %0, i64 2104
  store <4 x float> %wide.load.28, ptr %126, align 8, !tbaa !15
  store <4 x float> %wide.load8.28, ptr %127, align 8, !tbaa !15
  %128 = getelementptr inbounds i8, ptr %8, i64 1496
  %129 = getelementptr inbounds i8, ptr %8, i64 1512
  %wide.load.29 = load <4 x float>, ptr %128, align 4, !tbaa !15
  %wide.load8.29 = load <4 x float>, ptr %129, align 4, !tbaa !15
  %130 = getelementptr inbounds i8, ptr %0, i64 2120
  %131 = getelementptr inbounds i8, ptr %0, i64 2136
  store <4 x float> %wide.load.29, ptr %130, align 8, !tbaa !15
  store <4 x float> %wide.load8.29, ptr %131, align 8, !tbaa !15
  %132 = getelementptr inbounds i8, ptr %8, i64 1528
  %133 = getelementptr inbounds i8, ptr %8, i64 1544
  %wide.load.30 = load <4 x float>, ptr %132, align 4, !tbaa !15
  %wide.load8.30 = load <4 x float>, ptr %133, align 4, !tbaa !15
  %134 = getelementptr inbounds i8, ptr %0, i64 2152
  %135 = getelementptr inbounds i8, ptr %0, i64 2168
  store <4 x float> %wide.load.30, ptr %134, align 8, !tbaa !15
  store <4 x float> %wide.load8.30, ptr %135, align 8, !tbaa !15
  %136 = getelementptr inbounds i8, ptr %8, i64 1560
  %137 = getelementptr inbounds i8, ptr %8, i64 1576
  %wide.load.31 = load <4 x float>, ptr %136, align 4, !tbaa !15
  %wide.load8.31 = load <4 x float>, ptr %137, align 4, !tbaa !15
  %138 = getelementptr inbounds i8, ptr %0, i64 2184
  %139 = getelementptr inbounds i8, ptr %0, i64 2200
  store <4 x float> %wide.load.31, ptr %138, align 8, !tbaa !15
  store <4 x float> %wide.load8.31, ptr %139, align 8, !tbaa !15
  br label %middle.block

scalar.ph:                                        ; preds = %vector.memcheck, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ 0, %vector.memcheck ]
  %140 = getelementptr inbounds [256 x float], ptr %9, i64 0, i64 %indvars.iv
  %141 = load float, ptr %140, align 4, !tbaa !15
  %142 = getelementptr inbounds [256 x float], ptr %10, i64 0, i64 %indvars.iv
  store float %141, ptr %142, align 8, !tbaa !15
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %143 = getelementptr inbounds [256 x float], ptr %9, i64 0, i64 %indvars.iv.next
  %144 = load float, ptr %143, align 4, !tbaa !15
  %145 = getelementptr inbounds [256 x float], ptr %10, i64 0, i64 %indvars.iv.next
  store float %144, ptr %145, align 4, !tbaa !15
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %146 = getelementptr inbounds [256 x float], ptr %9, i64 0, i64 %indvars.iv.next.1
  %147 = load float, ptr %146, align 4, !tbaa !15
  %148 = getelementptr inbounds [256 x float], ptr %10, i64 0, i64 %indvars.iv.next.1
  store float %147, ptr %148, align 8, !tbaa !15
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %149 = getelementptr inbounds [256 x float], ptr %9, i64 0, i64 %indvars.iv.next.2
  %150 = load float, ptr %149, align 4, !tbaa !15
  %151 = getelementptr inbounds [256 x float], ptr %10, i64 0, i64 %indvars.iv.next.2
  store float %150, ptr %151, align 4, !tbaa !15
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, 256
  br i1 %exitcond.not.3, label %middle.block, label %scalar.ph, !llvm.loop !16

middle.block:                                     ; preds = %scalar.ph, %vector.body
  %152 = load ptr, ptr %6, align 8, !tbaa !14
  tail call void @_ZN6SoLoud6Soloud25unlockAudioMutex_internalEv(ptr noundef nonnull align 8 dereferenceable(138833) %152)
  br label %153

153:                                              ; preds = %middle.block, %5, %1
  %154 = getelementptr inbounds i8, ptr %0, i64 1192
  ret ptr %154
}

attributes #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 #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" }

!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, !12, i64 152}
!6 = !{!"_ZTSN6SoLoud3BusE", !7, i64 0, !12, i64 152, !8, i64 160, !8, i64 164, !9, i64 168, !9, i64 1192}
!7 = !{!"_ZTSN6SoLoud11AudioSourceE", !8, i64 8, !11, i64 12, !11, i64 16, !8, i64 20, !8, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !8, i64 40, !11, i64 44, !9, i64 48, !12, i64 112, !12, i64 120, !12, i64 128, !8, i64 136, !13, i64 144}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"float", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"double", !9, i64 0}
!14 = !{!7, !12, i64 112}
!15 = !{!11, !11, i64 0}
!16 = distinct !{!16, !17, !18}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!"llvm.loop.isvectorized", i32 1}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass