//
// CCCircleWave::followObject from 0x6c6d80 to 0x6c6e18 (152 bytes)
//
// 11 xrefs:
// > PlayerObject::spawnCircle @ 0x74deac
// > PlayerObject::spawnPortalCircle @ 0x74f978
// > PlayerObject::spawnScaleCircle @ 0x74fab8
// > PlayerObject::spawnDualCircle @ 0x74fbe8
// > PlayerObject::playBumpEffect @ 0x753600
// > PlayerObject::ringJump @ 0x76a388
// > GameObject::playShineEffect @ 0x7788e0
// > RingObject::spawnCircle @ 0x872710
// > GJBaseGameLayer::playExitDualEffect @ 0x99ed48
// > GJBaseGameLayer::checkRepellPlayer @ 0x9a8b48
// > ??> @ 0x8c950
//
// 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:51:21 +0000
//
__int64 __fastcall CCCircleWave::followObject(CCCircleWave *this, cocos2d::CCNode *a2, unsigned __int8 a3)
{
int v4; // w21
cocos2d::CCObject *v5; // x0
__int64 (__fastcall *v6)(CCCircleWave *, __int64); // x20
__int64 v7; // x0
cocos2d::CCNode *v9; // [xsp+38h] [xbp+38h]
v4 = a3;
v5 = *((cocos2d::CCObject **)this + 40);
if ( v5 )
{
v9 = a2;
cocos2d::CCObject::release(v5);
a2 = v9;
}
*((_QWORD *)this + 40) = a2;
cocos2d::CCObject::retain(a2);
cocos2d::CCNode::unschedule(this, CCCircleWave::updatePosition, 0);
if ( !v4 )
cocos2d::CCNode::schedule(this, CCCircleWave::updatePosition, 0);
v6 = *(__int64 (__fastcall **)(CCCircleWave *, __int64))(*(_QWORD *)this + 184LL);
v7 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 40) + 192LL))(*((_QWORD *)this + 40));
return v6(this, v7);
}