//
// RewardUnlockLayer::step2 from 0xa87a94 to 0xa87b90 (252 bytes)
//
// 3 xrefs:
// > ??> @ 0x4a128
// > RewardUnlockLayer::init @ 0xa897bc
// > ??> @ 0x1541758
//
// 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 13:00:35 +0000
//
__int64 __fastcall RewardUnlockLayer::step2(unsigned int **this)
{
__int64 v2; // x22
cocos2d::CCDelayTime *v3; // x0
cocos2d::CCSequence *v4; // x20
cocos2d::CCFiniteTimeAction *v5; // x0
cocos2d::CCAction *v6; // x0
__int64 v8[2]; // [xsp+30h] [xbp+30h] BYREF
void *v9; // [xsp+40h] [xbp+40h]
v2 = FMODAudioEngine::sharedEngine(_stack_chk_guard);
v8[0] = 0;
v8[1] = 0;
v9 = nullptr;
std::string::__init(v8, "chestOpen01.ogg", 0xFu);
FMODAudioEngine::playEffect(v2, (char *)v8);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
v3 = (cocos2d::CCDelayTime *)GJChestSprite::switchToState(*(this + 86), 3u, 0);
v4 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v3, 0.3);
v5 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, RewardUnlockLayer::step3, 0);
v6 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v4, v5, 0);
cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v6);
return _stack_chk_guard;
}