//
// PlayerObject::playSpawnEffect from 0x100400480 to 0x1004005e6 (358 bytes)
//
// 2 xrefs:
// > PlayLayer::resetLevel @ 0x10008cfb3
// > PlayLayer::resetLevel @ 0x10008cfc8
//
// 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:30:02 +0000
//
__int64 __fastcall PlayerObject::playSpawnEffect(__int64 a1)
{
_OWORD *v1; // r14
__int64 v2; // rax
__int64 v3; // r14
__int64 result; // rax
_OWORD *v5; // r15
__int64 v6; // rax
__int64 v7; // rax
_OWORD *v8; // r15
__int64 v9; // rax
__int64 v10; // rax
_OWORD *v11; // r15
__int64 v12; // rax
__int64 v13; // rax
_OWORD *v14; // r15
__int64 v15; // rax
__int64 v16; // rax
if ( !*(_BYTE *)(a1 + 2632) )
{
cocos2d::CCNode::stopActionByTag(a1, 11);
v1 = cocos2d::CCBlink::create(4, (__m128)0x3ECCCCCDu);
v2 = cocos2d::CCShow::create(4);
v3 = sub_10039EB60((__int64)v1, v2, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 11);
cocos2d::CCNode::runAction(a1, v3);
result = GameManager::sharedState();
if ( !*(_BYTE *)(result + 925) )
{
v5 = cocos2d::CCDelayTime::create((__m128)0LL);
v6 = cocos2d::CCCallFunc::create(a1, PlayerObject::spawnCircle, 0);
v7 = sub_10039EB60((__int64)v5, v6, 0);
cocos2d::CCNode::runAction(a1, v7);
v8 = cocos2d::CCDelayTime::create((__m128)0x3DCCCCCDu);
v9 = cocos2d::CCCallFunc::create(a1, PlayerObject::spawnCircle, 0);
v10 = sub_10039EB60((__int64)v8, v9, 0);
cocos2d::CCNode::runAction(a1, v10);
v11 = cocos2d::CCDelayTime::create((__m128)0x3E4CCCCDu);
v12 = cocos2d::CCCallFunc::create(a1, PlayerObject::spawnCircle, 0);
v13 = sub_10039EB60((__int64)v11, v12, 0);
cocos2d::CCNode::runAction(a1, v13);
v14 = cocos2d::CCDelayTime::create((__m128)0x3E99999Au);
v15 = cocos2d::CCCallFunc::create(a1, PlayerObject::spawnCircle, 0);
v16 = sub_10039EB60((__int64)v14, v15, 0);
return cocos2d::CCNode::runAction(a1, v16);
}
}
return result;
}