//
// GJBaseGameLayer::updateProximityVolumeEffects from 0x10029d1d8 to 0x10029d294 (188 bytes)
//
// 4 xrefs:
// > PlayLayer::setupHasCompleted @ 0x100140000
// > PlayLayer::startMusic @ 0x1001426dc
// > PlayLayer::resetLevel @ 0x10014bc58
// > GJBaseGameLayer::update @ 0x10029b398
//
// This function is hookable on this platform (idp: arm, 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 11:02:11 +0000
//
__int64 *__fastcall GJBaseGameLayer::updateProximityVolumeEffects(__int64 *result)
{
__int64 *v1; // x23
__int64 *v2; // x22
__int64 *v3; // x19
int v4; // w20
int v5; // w21
float v6; // s8
_QWORD *v7; // x0
__int64 *v8; // x9
__int64 *v9; // x8
bool v10; // zf
__int128 v11; // [xsp+0h] [xbp-60h] BYREF
__int64 v12; // [xsp+10h] [xbp-50h]
v1 = (__int64 *)result[221];
v2 = result + 222;
if ( v1 != result + 222 )
{
v3 = result;
do
{
v4 = *((_DWORD *)v1 + 8);
v5 = *((_DWORD *)v1 + 9);
v11 = *(_OWORD *)(v1 + 5);
v12 = v1[7];
v6 = GJBaseGameLayer::volumeForProximityEffect(v3, &v11);
v7 = (_QWORD *)FMODAudioEngine::sharedEngine();
result = sub_1001B97A4(v7, v4, v5, v6);
v8 = (__int64 *)v1[1];
if ( v8 )
{
do
{
v9 = v8;
v8 = (__int64 *)*v8;
}
while ( v8 );
}
else
{
do
{
v9 = (__int64 *)v1[2];
v10 = *v9 == (_QWORD)v1;
v1 = v9;
}
while ( !v10 );
}
v1 = v9;
}
while ( v9 != v2 );
}
return result;
}