//
// AudioEffectsLayer::resetAudioVars from 0x50a202 to 0x50a236 (52 bytes)
//
// 2 xrefs:
// > PlayLayer::resetLevel @ 0x4126b6
// > AudioEffectsLayer::init @ 0x50a7e8
//
// 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:51:27 +0000
//
int __fastcall AudioEffectsLayer::resetAudioVars(AudioEffectsLayer *this, cocos2d::CCArray *a2)
{
cocos2d::CCArray *v3; // r0
cocos2d::CCObject *v4; // r0
int result; // r0
v3 = *((cocos2d::CCArray **)this + 112);
if ( v3 )
{
cocos2d::CCArray::removeAllObjects(v3);
cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 112));
*((_DWORD *)this + 112) = 0;
}
v4 = (cocos2d::CCObject *)cocos2d::CCArray::createWithArray(*((cocos2d::CCArray **)this + 111), a2);
*((_DWORD *)this + 112) = v4;
result = cocos2d::CCObject::retain(v4);
*((_DWORD *)this + 113) = 0;
return result;
}