//
// PlayerObject::playerDestroyed from 0x43bc38 to 0x43bcc4 (140 bytes)
//
// 3 xrefs:
// > PlayLayer::destroyPlayer @ 0x4059f0
// > PlayLayer::destroyPlayer @ 0x405a10
// > LevelEditorLayer::postUpdate @ 0x46ade2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:22 +0000
//
int __fastcall PlayerObject::playerDestroyed(cocos2d::CCNode **this, int a2)
{
int v4; // r0
cocos2d::CCNode *v5; // r0
if ( *((_BYTE *)this + 1956) )
PlayerObject::fadeOutStreak2(this, (cocos2d::CCFadeOut *)0x3E4CCCCD);
PlayerObject::stopDashing((char *)this);
*((_BYTE *)this + 1960) = 1;
PlayerObject::stopRotation((PlayerObject *)this, 1, 5);
PlayerObject::stopParticles(this);
v4 = (*((int (__fastcall **)(cocos2d::CCNode **))*this + 24))(this);
cocos2d::CCPoint::operator=(this + 265, v4);
v5 = *(this + 608);
if ( v5 )
{
cocos2d::CCNode::stopAllActions(v5);
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 608) + 172))(*(this + 608), 0);
}
PlayerObject::toggleGhostEffect((GhostTrailEffect *)this, 0);
PlayerObject::disableSwingFire((PlayerObject *)this);
if ( !*((_BYTE *)this + 1604) || a2 || *((_BYTE *)this + 1483) )
return (*((int (__fastcall **)(cocos2d::CCNode **, _DWORD))*this + 114))(this, 0);
else
return PlayerObject::playDeathEffect((PlayerObject *)this);
}