//
// CCSpritePlus::addFollower from 0x5a8644 to 0x5a8694 (80 bytes)
//
// 8 xrefs:
// > CCSpritePlus::followSprite @ 0x5a86e8
// > AnimatedGameObject::setupChildSprites @ 0x755fd0
// > AnimatedGameObject::setupChildSprites @ 0x756154
// > AnimatedGameObject::setupChildSprites @ 0x756340
// > AnimatedGameObject::setupChildSprites @ 0x756540
// > GJRobotSprite::init @ 0x8e3964
// > CurrencyRewardLayer::createObjectsFull @ 0x90fc78
// > ??> @ 0x9f000
//
// 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 CCSpritePlus::addFollower(CCSpritePlus *a1, cocos2d::CCNode *a2)
{
cocos2d::CCArray *m_followers; // x0
cocos2d::CCArray *v4; // x0
m_followers = a1->m_followers;
a1->m_hasFollower = 1;
if ( m_followers )
{
cocos2d::CCArray::addObject(m_followers, a2);
}
else
{
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(nullptr);
a1->m_followers = v4;
cocos2d::CCObject::retain(v4);
cocos2d::CCArray::addObject(a1->m_followers, a2);
}
}