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

%"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] }>

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN6SoLoud6Soloud23set3dListenerParametersEffffffffffff(ptr noundef nonnull align 8 dereferenceable(138833) %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, float noundef %10, float noundef %11, float noundef %12) #0 align 2 {
  %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 float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  store ptr %0, ptr %14, align 8, !tbaa !5
  store float %1, ptr %15, align 4, !tbaa !9
  store float %2, ptr %16, align 4, !tbaa !9
  store float %3, ptr %17, align 4, !tbaa !9
  store float %4, ptr %18, align 4, !tbaa !9
  store float %5, ptr %19, align 4, !tbaa !9
  store float %6, ptr %20, align 4, !tbaa !9
  store float %7, ptr %21, align 4, !tbaa !9
  store float %8, ptr %22, align 4, !tbaa !9
  store float %9, ptr %23, align 4, !tbaa !9
  store float %10, ptr %24, align 4, !tbaa !9
  store float %11, ptr %25, align 4, !tbaa !9
  store float %12, ptr %26, align 4, !tbaa !9
  %27 = load ptr, ptr %14, align 8
  %28 = load float, ptr %15, align 4, !tbaa !9
  %29 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %27, i32 0, i32 37
  %30 = getelementptr inbounds [3 x float], ptr %29, i64 0, i64 0
  store float %28, ptr %30, align 8, !tbaa !9
  %31 = load float, ptr %16, align 4, !tbaa !9
  %32 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %27, i32 0, i32 37
  %33 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 1
  store float %31, ptr %33, align 4, !tbaa !9
  %34 = load float, ptr %17, align 4, !tbaa !9
  %35 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %27, i32 0, i32 37
  %36 = getelementptr inbounds [3 x float], ptr %35, i64 0, i64 2
  store float %34, ptr %36, align 8, !tbaa !9
  %37 = load float, ptr %18, align 4, !tbaa !9
  %38 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %27, i32 0, i32 38
  %39 = getelementptr inbounds [3 x float], ptr %38, i64 0, i64 0
  store float %37, ptr %39, align 4, !tbaa !9
  %40 = load float, ptr %19, align 4, !tbaa !9
  %41 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %27, i32 0, i32 38
  %42 = getelementptr inbounds [3 x float], ptr %41, i64 0, i64 1
  store float %40, ptr %42, align 4, !tbaa !9
  %43 = load float, ptr %20, align 4, !tbaa !9
  %44 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %27, i32 0, i32 38
  %45 = getelementptr inbounds [3 x float], ptr %44, i64 0, i64 2
  store float %43, ptr %45, align 4, !tbaa !9
  %46 = load float, ptr %21, align 4, !tbaa !9
  %47 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %27, i32 0, i32 39
  %48 = getelementptr inbounds [3 x float], ptr %47, i64 0, i64 0
  store float %46, ptr %48, align 8, !tbaa !9
  %49 = load float, ptr %22, align 4, !tbaa !9
  %50 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %27, i32 0, i32 39
  %51 = getelementptr inbounds [3 x float], ptr %50, i64 0, i64 1
  store float %49, ptr %51, align 4, !tbaa !9
  %52 = load float, ptr %23, align 4, !tbaa !9
  %53 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %27, i32 0, i32 39
  %54 = getelementptr inbounds [3 x float], ptr %53, i64 0, i64 2
  store float %52, ptr %54, align 8, !tbaa !9
  %55 = load float, ptr %24, align 4, !tbaa !9
  %56 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %27, i32 0, i32 40
  %57 = getelementptr inbounds [3 x float], ptr %56, i64 0, i64 0
  store float %55, ptr %57, align 4, !tbaa !9
  %58 = load float, ptr %25, align 4, !tbaa !9
  %59 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %27, i32 0, i32 40
  %60 = getelementptr inbounds [3 x float], ptr %59, i64 0, i64 1
  store float %58, ptr %60, align 4, !tbaa !9
  %61 = load float, ptr %26, align 4, !tbaa !9
  %62 = getelementptr inbounds %"class.SoLoud::Soloud", ptr %27, i32 0, i32 40
  %63 = getelementptr inbounds [3 x float], ptr %62, i64 0, i64 2
  store float %61, ptr %63, align 4, !tbaa !9
  ret void
}

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) uwtable
define dso_local void @_ZN6SoLoud6Soloud23set3dListenerParametersEffffffffffff(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(138833) %0, float noundef %1, float noundef %2, float noundef %3, float noundef %4, float noundef %5, float noundef %6, float noundef %7, float noundef %8, float noundef %9, float noundef %10, float noundef %11, float noundef %12) local_unnamed_addr #0 align 2 {
  %14 = getelementptr inbounds i8, ptr %0, i64 11688
  store float %1, ptr %14, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 11692
  store float %2, ptr %15, align 4, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 11696
  store float %3, ptr %16, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 11700
  store float %4, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 11704
  store float %5, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 11708
  store float %6, ptr %19, align 4, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 11712
  store float %7, ptr %20, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %0, i64 11716
  store float %8, ptr %21, align 4, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 11720
  store float %9, ptr %22, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 11724
  store float %10, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %0, i64 11728
  store float %11, ptr %24, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 11732
  store float %12, ptr %25, align 4, !tbaa !5
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: write) 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, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass