//
// CCCircleWave::followObject from 0x2fc184 to 0x2fc1e4 (96 bytes)
//
// 10 xrefs:
// > PlayerObject::spawnCircle @ 0x33c2e0
// > PlayerObject::spawnPortalCircle @ 0x33dcb8
// > PlayerObject::spawnScaleCircle @ 0x33dd8a
// > PlayerObject::spawnDualCircle @ 0x33de54
// > PlayerObject::playBumpEffect @ 0x34180a
// > PlayerObject::ringJump @ 0x34e7fc
// > GameObject::playShineEffect @ 0x3555da
// > RingObject::spawnCircle @ 0x3e7958
// > GJBaseGameLayer::playExitDualEffect @ 0x46f978
// > GJBaseGameLayer::checkRepellPlayer @ 0x476bf8
//
// 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 CCCircleWave::followObject(CCCircleWave *a1, cocos2d::CCNode *a2, bool a3)
{
cocos2d::CCNode *m_target; // r0
_BOOL4 v6; // r6
void (__fastcall *setPosition)(CCCircleWave *__hidden, const cocos2d::CCPoint *); // r5
const cocos2d::CCPoint *v8; // r0
m_target = a1->m_target;
v6 = a3;
if ( m_target )
cocos2d::CCObject::release(m_target);
a1->m_target = a2;
cocos2d::CCObject::retain(a2);
cocos2d::CCNode::unschedule(a1, (cocos2d::SEL_SCHEDULE)(unsigned int)CCCircleWave::updatePosition);
if ( !v6 )
cocos2d::CCNode::schedule(a1, CCCircleWave::updatePosition, 0);
setPosition = a1->setPosition;
v8 = a1->m_target->getPosition(a1->m_target);
setPosition(a1, v8);
}