//
// AudioEffectsLayer::resetAudioVars from 0x14009a6c0 to 0x14009a720 (96 bytes)
//
// 2 xrefs:
// > AudioEffectsLayer::init @ 0x14009a619
// > ??> @ 0x140912e84
//
// 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 11:26:04 +0000
//
void __fastcall AudioEffectsLayer::resetAudioVars(__int64 a1)
{
cocos2d::CCArray *v2; // rcx
cocos2d::CCObject *v3; // rax
v2 = *(cocos2d::CCArray **)(a1 + 560);
if ( v2 )
{
cocos2d::CCArray::removeAllObjects(v2);
cocos2d::CCObject::release(*(cocos2d::CCObject **)(a1 + 560));
*(_QWORD *)(a1 + 560) = 0;
}
v3 = cocos2d::CCArray::createWithArray(*(struct cocos2d::CCArray **)(a1 + 552));
*(_QWORD *)(a1 + 560) = v3;
cocos2d::CCObject::retain(v3);
*(_DWORD *)(a1 + 568) = 0;
}