//
// CCCircleWave::followObject from 0x3e5650 to 0x3e56b0 (96 bytes)
//
// 10 xrefs:
// > PlayerObject::spawnCircle @ 0x434890
// > PlayerObject::spawnPortalCircle @ 0x435c6c
// > PlayerObject::spawnScaleCircle @ 0x435d3e
// > PlayerObject::spawnDualCircle @ 0x435e08
// > PlayerObject::playBumpEffect @ 0x438a3a
// > PlayerObject::ringJump @ 0x449fdc
// > GameObject::playShineEffect @ 0x4550e8
// > RingObject::spawnCircle @ 0x4e7d68
// > GJBaseGameLayer::playExitDualEffect @ 0x58f64c
// > GJBaseGameLayer::checkRepellPlayer @ 0x5961f0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:47:04 +0000
//
int __fastcall CCCircleWave::followObject(CCCircleWave *this, cocos2d::CCNode *a2, int a3)
{
cocos2d::CCObject *v4; // r0
int (__fastcall *v7)(CCCircleWave *, int); // r5
int v8; // r0
v4 = *((cocos2d::CCObject **)this + 66);
if ( v4 )
cocos2d::CCObject::release(v4);
*((_DWORD *)this + 66) = a2;
cocos2d::CCObject::retain(a2);
cocos2d::CCNode::unschedule(this, CCCircleWave::updatePosition, 0);
if ( !a3 )
cocos2d::CCNode::schedule(this, CCCircleWave::updatePosition, 0);
v7 = *(int (__fastcall **)(CCCircleWave *, int))(*(_DWORD *)this + 92);
v8 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 66) + 96))(*((_DWORD *)this + 66));
return v7(this, v8);
}