//
// cocos2d::CCFollow::create from 0x5b025c to 0x5b02c2 (102 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCFollow *cocos2d::CCFollow::create(cocos2d::CCNode *a1, const cocos2d::CCRect *a2)
{
int v4; // r4
v4 = operator new(0x6Cu);
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v4);
*(_DWORD *)v4 = &off_A9ED68;
*(_DWORD *)(v4 + 68) = 0;
*(_BYTE *)(v4 + 72) = 0;
*(_BYTE *)(v4 + 73) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 76));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 84));
*(_DWORD *)(v4 + 92) = 0;
*(_DWORD *)(v4 + 96) = 0;
*(_DWORD *)(v4 + 100) = 0;
*(_DWORD *)(v4 + 104) = 0;
if ( cocos2d::CCFollow::initWithTarget((cocos2d::CCFollow *)v4, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return (cocos2d::CCFollow *)v4;
}
else
{
(*(void (__fastcall **)(int))(*(_DWORD *)v4 + 8))(v4);
return nullptr;
}
}