//
// GJWorldNode::playStep1 from 0x1003ae0f0 to 0x1003ae1ce (222 bytes)
//
// 1 xrefs:
// > WorldLevelPage::onPlay @ 0x1003afc31
//
// 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 12:29:24 +0000
//
__int64 __fastcall GJWorldNode::playStep1(__int64 a1, double a2)
{
__int64 result; // rax
__int64 v3; // rax
__int64 v4; // rax
_OWORD *v5; // r14
__int64 v6; // rax
__int64 v7; // rax
void *v8[5]; // [rsp+8h] [rbp-28h] BYREF
result = *(_QWORD *)(a1 + 344);
if ( !*(_BYTE *)(result + 449) && !*(_BYTE *)(result + 464) )
{
*(_BYTE *)(result + 449) = 1;
*(_DWORD *)(GameManager::sharedState() + 1088) = *(_DWORD *)(a1 + 368);
v3 = FMODAudioEngine::sharedEngine(a2);
FMODAudioEngine::stopAllMusic(v3, 1);
v4 = FMODAudioEngine::sharedEngine(a2);
strcpy((char *)v8, " playSound_01.ogg");
FMODAudioEngine::playEffect(v4, v8, 1.0, 0.0, 0.30000001);
if ( ((__int64)v8[0] & 1) != 0 )
operator delete(v8[2]);
v5 = cocos2d::CCDelayTime::create((__m128)0LL);
v6 = cocos2d::CCCallFunc::create(a1, sub_1003AE1F0, 0);
v7 = sub_10039EB60((__int64)v5, v6, 0);
return cocos2d::CCNode::runAction(a1, v7);
}
return result;
}