//
// PlayerObject::playerDestroyed from 0x759098 to 0x759180 (232 bytes)
//
// 4 xrefs:
// > PlayLayer::destroyPlayer @ 0x6ff2d4
// > PlayLayer::destroyPlayer @ 0x6ff83c
// > LevelEditorLayer::postUpdate @ 0x79b0bc
// > ??> @ 0x54e50
//
// 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 12:52:59 +0000
//
__int64 __fastcall PlayerObject::playerDestroyed(cocos2d::CCNode **this, unsigned __int8 a2)
{
unsigned int v2; // w20
__int64 v4; // x0
cocos2d::CCNode *v5; // x0
v2 = a2;
if ( *((_BYTE *)this + 2420) )
PlayerObject::fadeOutStreak2(this, 0.2);
PlayerObject::stopDashing((PlayerObject *)this);
*((_BYTE *)this + 2424) = 1;
PlayerObject::stopRotation((PlayerObject *)this);
PlayerObject::stopParticles(this);
v4 = (*((__int64 (__fastcall **)(cocos2d::CCNode **))*this + 24))(this);
cocos2d::CCPoint::operator=(this + 153, v4);
v5 = *(this + 375);
if ( v5 )
{
cocos2d::CCNode::stopAllActions(v5);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 375) + 344LL))(*(this + 375), 0);
}
PlayerObject::toggleGhostEffect((__int64)this, 0);
PlayerObject::disableSwingFire((PlayerObject *)this);
if ( *((unsigned __int8 *)this + 1972) <= v2 || *((_BYTE *)this + 1787) )
return (*((__int64 (__fastcall **)(cocos2d::CCNode **, _QWORD))*this + 114))(this, 0);
else
return PlayerObject::playDeathEffect((PlayerObject *)this);
}