//
// GJBaseGameLayer::updateProximityVolumeEffects from 0x100134290 to 0x10013434d (189 bytes)
//
// 3 xrefs:
// > PlayLayer::setupHasCompleted @ 0x10007bed5
// > PlayLayer::startMusic @ 0x1000809b5
// > PlayLayer::resetLevel @ 0x10008d059
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:24:49 +0000
//
void __fastcall GJBaseGameLayer::updateProximityVolumeEffects(__int64 a1)
{
_QWORD *v1; // r14
unsigned int v2; // r15d
unsigned int v3; // r12d
double v4; // xmm0_8
__int64 v5; // rax
_QWORD *v6; // rcx
_QWORD *v7; // rax
bool v8; // zf
__int128 v9; // [rsp+0h] [rbp-50h] BYREF
__int64 v10; // [rsp+10h] [rbp-40h]
int v11; // [rsp+24h] [rbp-2Ch]
v1 = *(_QWORD **)(a1 + 1768);
if ( v1 != (_QWORD *)(a1 + 1776) )
{
do
{
v2 = *((_DWORD *)v1 + 8);
v3 = *((_DWORD *)v1 + 9);
v10 = v1[7];
v9 = *(_OWORD *)(v1 + 5);
v4 = GJBaseGameLayer::volumeForProximityEffect(a1, &v9);
v11 = LODWORD(v4);
v5 = FMODAudioEngine::sharedEngine(v4);
sub_1003D38B0(v5, v2, v3, COERCE_DOUBLE((unsigned __int64)v11));
v6 = (_QWORD *)v1[1];
if ( v6 )
{
do
{
v7 = v6;
v6 = (_QWORD *)*v6;
}
while ( v6 );
}
else
{
do
{
v7 = (_QWORD *)v1[2];
v8 = *v7 == (_QWORD)v1;
v1 = v7;
}
while ( !v8 );
}
v1 = v7;
}
while ( v7 != (_QWORD *)(a1 + 1776) );
}
}