//
// RewardUnlockLayer::step2 from 0x1405645d0 to 0x1405646d0 (256 bytes)
//
// 2 xrefs:
// > RewardUnlockLayer::init @ 0x14056401c
// > ??> @ 0x14092c534
//
// This function is hookable on this platform (idp: pc, 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 11:34:16 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCAction *__fastcall RewardUnlockLayer::step2(cocos2d::CCNode *a1)
{
int v2; // ecx
__int64 v3; // rbx
struct cocos2d::CCFiniteTimeAction *v4; // rax
struct cocos2d::CCAction *v5; // rax
char v7[16]; // [rsp+20h] [rbp-28h] BYREF
__int64 v8; // [rsp+30h] [rbp-18h]
__int64 v9; // [rsp+38h] [rbp-10h]
void *v10; // [rsp+60h] [rbp+18h]
v8 = 15;
v9 = 15;
strcpy(v7, "chestOpen01.ogg");
v2 = qword_14090BF60;
if ( !qword_14090BF60 )
{
v10 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
v2 = qword_14090BF60;
}
FMODAudioEngine::playEffect_1(v2, (__int64)v7);
GJChestSprite::switchToState(*((_QWORD *)a1 + 86), 3, 0);
v3 = cocos2d::CCCallFunc::create(a1, RewardUnlockLayer::step3);
v4 = cocos2d::CCDelayTime::create(0.30000001);
v5 = cocos2d::CCSequence::create(v4, v3, 0);
return cocos2d::CCNode::runAction(a1, v5);
}