//
// GJWorldNode::playStep1 from 0xaa701c to 0xaa7154 (312 bytes)
//
// 2 xrefs:
// > WorldLevelPage::onPlay @ 0xaa7160
// > ??> @ 0x63f40
//
// 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:51 +0000
//
__int64 __fastcall GJWorldNode::playStep1(GJWorldNode *this)
{
GameManager *v2; // x0
FMODAudioEngine *v4; // x0
FMODAudioEngine *v5; // x0
FMODAudioEngine *v6; // x0
__int64 v7; // x22
cocos2d::CCDelayTime *v8; // x0
cocos2d::CCSequence *v9; // x21
cocos2d::CCFiniteTimeAction *v10; // x0
cocos2d::CCAction *v11; // x0
cocos2d::CCDelayTime *v12[2]; // [xsp+40h] [xbp+40h] BYREF
void *v13; // [xsp+50h] [xbp+50h]
v2 = *((GameManager **)this + 43);
if ( !*((_BYTE *)v2 + 449) && !*((_BYTE *)v2 + 464) )
{
*((_BYTE *)v2 + 449) = 1;
v4 = (FMODAudioEngine *)GameManager::sharedState(v2);
*((_DWORD *)v4 + 272) = *((_DWORD *)this + 92);
v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v4);
v6 = (FMODAudioEngine *)FMODAudioEngine::stopAllMusic(v5, 1);
v7 = FMODAudioEngine::sharedEngine(v6);
v12[0] = nullptr;
v12[1] = nullptr;
v13 = nullptr;
std::string::__init((__int64 *)v12, "playSound_01.ogg", 0x10u);
FMODAudioEngine::playEffect(v7, (char *)v12, 1.0, 0.0, 0.3);
v8 = (cocos2d::CCDelayTime *)LOBYTE(v12[0]);
if ( ((__int64)v12[0] & 1) != 0 )
operator delete(v13);
v9 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v8, 0.0);
v10 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, GJWorldNode::playStep2, 0);
v11 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v9, v10, 0);
cocos2d::CCNode::runAction(this, v11);
}
return _stack_chk_guard;
}