//
// PlayerObject::playSpawnEffect from 0x140397480 to 0x1403975ab (299 bytes)
//
// 3 xrefs:
// > PlayLayer::resetLevel @ 0x1403b96b9
// > PlayLayer::resetLevel @ 0x1403b96ce
// > ??> @ 0x1406d6440
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void PlayerObject::playSpawnEffect(PlayerObject *a1)
{
float v1; // xmm3_4
struct cocos2d::CCBlink *v3; // rbx
__int64 v4; // rax
struct cocos2d::CCSequence *v5; // rbx
cocos2d::ccColor3B *v6; // r8
__int64 v7; // rax
int i; // edi
__int64 v9; // rbx
struct cocos2d::CCDelayTime *v10; // rax
struct cocos2d::CCSequence *v11; // rax
cocos2d::ccColor3B *v12; // r8
float v13; // [rsp+20h] [rbp-18h]
float v14; // [rsp+20h] [rbp-18h]
void *v15; // [rsp+40h] [rbp+8h]
if ( !a1->m_isBeingSpawnedByDualPortal )
{
cocos2d::CCNode::stopActionByTag(a1, 11);
v3 = cocos2d::CCBlink::create(0.40000001, 4u);
v4 = cocos2d::CCShow::create();
v5 = cocos2d::CCSequence::create(v3, v4, 0);
v5->setTag(v5, 11);
cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v5, v6, v1, v13);
v7 = qword_1406C2ED8;
if ( !qword_1406C2ED8 )
{
v15 = operator new(0x668u);
qword_1406C2ED8 = sub_14017AB00((__int64)v15);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);
v7 = qword_1406C2ED8;
}
if ( !*(_BYTE *)(v7 + 917) )
{
for ( i = 0; i < 4; ++i )
{
v9 = cocos2d::CCCallFunc::create(a1, PlayerObject::spawnCircle);
v10 = cocos2d::CCDelayTime::create((float)i * 0.1);
v11 = cocos2d::CCSequence::create(v10, v9, 0);
cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v11, v12, v1, v14);
}
}
}
}