//
// cocos2d::CCFollow::create from 0x180024140 to 0x1800241c7 (135 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801af124
//
// 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
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCFollow *__fastcall cocos2d::CCFollow::create(
struct cocos2d::CCNode *a1,
const struct cocos2d::CCRect *a2)
{
cocos2d::CCFollow *v4; // rax
cocos2d::CCFollow *v5; // rbx
v4 = (cocos2d::CCFollow *)operator new(0x80u);
if ( v4 )
v5 = cocos2d::CCFollow::CCFollow(v4);
else
v5 = nullptr;
if ( v5 )
{
if ( cocos2d::CCFollow::initWithTarget(v5, a1, a2) )
{
cocos2d::CCObject::autorelease(v5);
return v5;
}
((void (__fastcall *)(cocos2d::CCFollow *, __int64))v5->~CCFollow)(v5, 1);
}
return nullptr;
}