//
// AudioEffectsLayer::triggerEffect from 0x1003c47c8 to 0x1003c4914 (332 bytes)
//
// 1 xrefs:
// > AudioEffectsLayer::audioStep @ 0x1003c47c4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall AudioEffectsLayer::triggerEffect(AudioEffectsLayer *a1, float a2)
{
float v3; // s1
float v4; // s9
cocos2d::CCActionTween *v5; // x21
char v6; // w0
__int64 v7; // x1
__int64 v8; // x2
__int64 v9; // x3
__int64 v10; // x4
__int64 v11; // x5
__int64 v12; // x6
__int64 v13; // x7
cocos2d::CCSequence *v14; // x20
cocos2d::SEL_CallFunc v15; // 0:x1.16
v3 = 4.0;
if ( a2 != 1.0 )
{
v3 = 3.0;
if ( a2 != 0.9 )
{
v3 = a2;
if ( a2 == 0.8 )
v3 = 2.5;
}
}
v4 = fminf(a1->m_audioScale + (float)(v3 * 0.2), 1.1);
if ( a1->m_goingDown || a1->m_audioPulseMod <= v4 )
{
a1->m_audioPulseMod = v4;
a1->m_goingDown = 0;
cocos2d::CCNode::stopActionByTag(a1, 0);
v5 = cocos2d::CCActionTween::create_1(0.05, "audioScale", a1->m_audioScale, v4);
cocos2d::CCActionTween::create_1(0.2, "audioScale", v4, 0.1);
v15.ptr = (void (*)(void))AudioEffectsLayer::goingDown;
v15.adj = 0;
v6 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v15);
v14 = sub_10018A494(v5, v7, v8, v9, v10, v11, v12, v13, v6);
((void (__fastcall *)(cocos2d::CCSequence *, _QWORD))v14->setTag)(v14, 0);
cocos2d::CCNode::runAction(a1, v14);
}
}