//
// RewardUnlockLayer::step2 from 0x1001c5c2c to 0x1001c5cd0 (164 bytes)
//
// 1 xrefs:
// > RewardUnlockLayer::init @ 0x1001c574c
//
// 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 RewardUnlockLayer::step2(RewardUnlockLayer *a1)
{
FMODAudioEngine *v2; // x20
cocos2d::CCDelayTime *v3; // x20
char v4; // w0
__int64 v5; // x1
__int64 v6; // x2
__int64 v7; // x3
__int64 v8; // x4
__int64 v9; // x5
__int64 v10; // x6
__int64 v11; // x7
cocos2d::CCSequence *v12; // x0
void *__p[2]; // [xsp+18h] [xbp-28h] BYREF
char v14; // [xsp+2Fh] [xbp-11h]
cocos2d::SEL_CallFunc v15; // 0:x1.16
v2 = FMODAudioEngine::sharedEngine();
sub_100009900(__p, "chestOpen01.ogg");
FMODAudioEngine::playEffect_1((__int64)v2, (__int64)__p);
if ( v14 < 0 )
operator delete(__p[0]);
GJChestSprite::switchToState(a1->m_chestSprite, Opening, 0);
v3 = cocos2d::CCDelayTime::create(0.3);
v15.ptr = (void (*)(void))RewardUnlockLayer::step3;
v15.adj = 0;
v4 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v15);
v12 = sub_10018A494(v3, v5, v6, v7, v8, v9, v10, v11, v4);
cocos2d::CCNode::runAction(a1, v12);
}