//
// RewardUnlockLayer::step2 from 0x1403cecc0 to 0x1403cedbc (252 bytes)
//
// 2 xrefs:
// > RewardUnlockLayer::init @ 0x1403ce727
// > ??> @ 0x1406d7c34
//
// 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
//
// Hidden C++ exception states: #wind=2
void RewardUnlockLayer::step2(RewardUnlockLayer *a1)
{
float v1; // xmm3_4
int v3; // ecx
__int64 v4; // rbx
struct cocos2d::CCDelayTime *v5; // rax
struct cocos2d::CCSequence *v6; // rax
cocos2d::ccColor3B *v7; // r8
char v8[16]; // [rsp+20h] [rbp-28h] BYREF
__int64 v9; // [rsp+30h] [rbp-18h]
__int64 v10; // [rsp+38h] [rbp-10h]
FMODAudioEngine *v11; // [rsp+60h] [rbp+18h]
float v12; // [rsp+70h] [rbp+28h]
v9 = 15;
v10 = 15;
strcpy(v8, "chestOpen01.ogg");
v3 = qword_1406C2E88;
if ( !qword_1406C2E88 )
{
v11 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
v3 = qword_1406C2E88;
}
FMODAudioEngine::playEffect_1(v3, (__int64)v8);
GJChestSprite::switchToState(a1->m_chestSprite, Opening, 0);
v4 = cocos2d::CCCallFunc::create(a1, RewardUnlockLayer::step3);
v5 = cocos2d::CCDelayTime::create(0.30000001);
v6 = cocos2d::CCSequence::create(v5, v4, 0);
cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v6, v7, v1, v12);
}