//
// CCCircleWave::followObject from 0x5a69b0 to 0x5a6a48 (152 bytes)
//
// 11 xrefs:
// > PlayerObject::spawnCircle @ 0x621058
// > PlayerObject::spawnPortalCircle @ 0x623ac8
// > PlayerObject::spawnScaleCircle @ 0x623c08
// > PlayerObject::spawnDualCircle @ 0x623d38
// > PlayerObject::playBumpEffect @ 0x628f68
// > PlayerObject::ringJump @ 0x63bf94
// > GameObject::playShineEffect @ 0x644fec
// > RingObject::spawnCircle @ 0x755e10
// > GJBaseGameLayer::playExitDualEffect @ 0x85ace8
// > GJBaseGameLayer::checkRepellPlayer @ 0x866450
// > ??> @ 0x67a10
//
// 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; // x0
_BOOL4 v5; // w21
void (__fastcall *setPosition)(CCCircleWave *__hidden, const cocos2d::CCPoint *); // x20
const cocos2d::CCPoint *v7; // x0
cocos2d::CCNode *v8; // [xsp+38h] [xbp+38h]
cocos2d::SEL_SCHEDULE v9; // 0:x1.16
m_target = a1->m_target;
v5 = a3;
if ( m_target )
{
v8 = a2;
cocos2d::CCObject::release(m_target);
a2 = v8;
}
a1->m_target = a2;
cocos2d::CCObject::retain(a2);
v9.adj = 0;
v9.ptr = (void (__cdecl *)(float))CCCircleWave::updatePosition;
cocos2d::CCNode::unschedule(a1, v9);
if ( !v5 )
cocos2d::CCNode::schedule(a1, CCCircleWave::updatePosition, 0);
setPosition = a1->setPosition;
v7 = a1->m_target->getPosition(a1->m_target);
setPosition(a1, v7);
}