//
// RewardUnlockLayer::step2 from 0x4e85b8 to 0x4e8642 (138 bytes)
//
// 0 xrefs:
//
// 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 RewardUnlockLayer::step2(RewardUnlockLayer *a1)
{
FMODAudioEngine *v2; // r7
int v3; // r2
int v4; // r3
cocos2d::CCDelayTime *v5; // r0
cocos2d::CCSequence *v6; // r8
cocos2d::CCFiniteTimeAction *v7; // r0
cocos2d::CCAction *v8; // r0
_DWORD v9[2]; // [sp+4h] [bp-Ch] BYREF
v2 = FMODAudioEngine::sharedEngine();
sub_776584((int)v9, "chestOpen01.ogg");
FMODAudioEngine::playEffect(v2, (int)v9, v3, v4);
sub_774008(v9);
GJChestSprite::switchToState(a1->m_chestSprite, Opening, 0);
v5 = cocos2d::CCDelayTime::create(0.3);
v9[1] = 0;
v9[0] = RewardUnlockLayer::step3;
v6 = (cocos2d::CCSequence *)v5;
v7 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, RewardUnlockLayer::step3, 0);
v8 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v6, v7, 0);
cocos2d::CCNode::runAction(a1, v8);
}