//
// SecretRewardsLayer::fadeInOutMusic from 0xa621a0 to 0xa6220c (108 bytes)
//
// 2 xrefs:
// > SecretRewardsLayer::onGoldChest @ 0xa645fc
// > ??> @ 0x5b188
//
// 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 SecretRewardsLayer::fadeInOutMusic(SecretRewardsLayer *a1)
{
FMODAudioEngine *v2; // x0
cocos2d::CCSequence *v3; // x20
cocos2d::CCFiniteTimeAction *v4; // x0
cocos2d::CCAction *v5; // x0
v2 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::fadeMusic(v2, 1.0, 0, 1.0, 0.2);
v3 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(3.2);
v4 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, SecretRewardsLayer::fadeInMusic, 0);
v5 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v3, v4, 0);
cocos2d::CCNode::runAction(a1, v5);
}