//
// CCAnimatedSprite::cleanupSprite from 0x2e3d3a to 0x2e3d9c (98 bytes)
//
// 1 xrefs:
// > CCAnimatedSprite::loadType @ 0x2e3de2
//
// 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
//
void CCAnimatedSprite::cleanupSprite(CCAnimatedSprite *a1)
{
CCPartAnimSprite *m_paSprite; // r0
cocos2d::CCSprite *m_fbfSprite; // r0
SpriteAnimationManager *m_animationManager; // r0
cocos2d::CCSprite *v5; // r0
CCPartAnimSprite *v6; // r0
m_paSprite = a1->m_paSprite;
if ( m_paSprite )
m_paSprite->cleanup(m_paSprite);
m_fbfSprite = a1->m_fbfSprite;
if ( m_fbfSprite )
m_fbfSprite->cleanup(m_fbfSprite);
m_animationManager = a1->m_animationManager;
if ( m_animationManager )
SpriteAnimationManager::doCleanup(m_animationManager);
v5 = a1->m_fbfSprite;
if ( v5 )
v5->removeFromParentAndCleanup(v5, 1);
v6 = a1->m_paSprite;
if ( v6 )
v6->removeFromParentAndCleanup(v6, 1);
a1->m_spriteMode = 0;
a1->m_animationManager = nullptr;
a1->m_fbfSprite = nullptr;
a1->m_paSprite = nullptr;
a1->m_sprite = nullptr;
}