//
// RewardUnlockLayer::step2 from 0x10025b7e4 to 0x10025b888 (164 bytes)
//
// 1 xrefs:
// > RewardUnlockLayer::init @ 0x10025b304
//
// 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 11:01:36 +0000
//
double __fastcall RewardUnlockLayer::step2(__int64 a1)
{
__int64 v2; // x20
float *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
__int64 v12; // x0
double result; // d0
void *__p[2]; // [xsp+18h] [xbp-28h] BYREF
char v15; // [xsp+2Fh] [xbp-11h]
v2 = FMODAudioEngine::sharedEngine();
sub_100009900(__p, "chestOpen01.ogg");
FMODAudioEngine::playEffect_1(v2, (__int64)__p);
if ( v15 < 0 )
operator delete(__p[0]);
GJChestSprite::switchToState(*(_QWORD *)(a1 + 688), 3, 0);
v3 = cocos2d::CCDelayTime::create(0.3);
v4 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, (__int64)RewardUnlockLayer::step3, 0);
v12 = sub_10021D420((__int64)v3, v5, v6, v7, v8, v9, v10, v11, v4);
*(_QWORD *)&result = cocos2d::CCNode::runAction(a1, v12).n128_u64[0];
return result;
}