//
// GJBaseGameLayer::updateProximityVolumeEffects from 0x59d098 to 0x59d100 (104 bytes)
//
// 4 xrefs:
// > PlayLayer::setupHasCompleted @ 0x40a89e
// > PlayLayer::startMusic @ 0x4120f8
// > PlayLayer::resetLevel @ 0x4128dc
// > GJBaseGameLayer::update @ 0x5be38e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:14 +0000
//
_DWORD *__fastcall GJBaseGameLayer::updateProximityVolumeEffects(_DWORD *this)
{
_DWORD *v1; // r6
_DWORD *v2; // r8
int v3; // r7
int v4; // r10
int v5; // r9
int v6; // r1
int v7; // r2
int v8; // r3
FMODAudioEngine *v9; // r11
int v10; // r0
int v11[4]; // [sp+4h] [bp-18h] BYREF
v1 = (_DWORD *)*(this + 327);
v2 = this + 328;
v3 = (int)this;
while ( v1 != v2 )
{
v4 = v1[4];
v5 = v1[5];
v6 = v1[7];
v7 = v1[8];
v8 = v1[9];
v11[0] = v1[6];
v11[1] = v6;
v11[2] = v7;
v11[3] = v8;
v9 = (FMODAudioEngine *)GJBaseGameLayer::volumeForProximityEffect(v3, v11);
v10 = FMODAudioEngine::sharedEngine(v9);
FMODAudioEngine::setChannelVolumeMod(v10, v4, v5, *(float *)&v9);
this = std::__tree_next *>(v1);
v1 = this;
}
return this;
}