//
// AudioEffectsLayer::audioStep from 0x8b864c to 0x8b8700 (180 bytes)
//
// 2 xrefs:
// > PlayLayer::postUpdate @ 0x708f24
// > ??> @ 0xae850
//
// 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 12:56:26 +0000
//
__int64 __fastcall AudioEffectsLayer::audioStep(__int64 this, float a2)
{
cocos2d::CCArray *v2; // x1
__int64 v3; // x19
cocos2d::CCString *v4; // x0
float v5; // s0
cocos2d::CCString *v6; // x0
float v7; // s0
GameManager *v8; // x0
float v9; // [xsp+20h] [xbp+20h]
v2 = *(cocos2d::CCArray **)(this + 560);
*(float *)(this + 568) = *(float *)(this + 568) + a2;
if ( v2 )
{
v3 = this;
this = cocos2d::CCArray::count(v2);
if ( (_DWORD)this )
{
v4 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v3 + 560), 0);
this = cocos2d::CCString::floatValue(v4);
if ( v5 < *(float *)(v3 + 568) )
{
v6 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v3 + 560), 1u);
cocos2d::CCString::floatValue(v6);
v9 = v7;
cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(v3 + 560), 0, 1);
v8 = (GameManager *)cocos2d::CCArray::removeObjectAtIndex(*(cocos2d::CCArray **)(v3 + 560), 0, 1);
this = *(unsigned __int8 *)(*(_QWORD *)(GameManager::sharedState(v8) + 544) + 12544LL);
if ( !(_DWORD)this )
return AudioEffectsLayer::triggerEffect(v3, v9);
}
}
}
return this;
}