//
// cocos2d::CCCallFuncO::initWithTarget from 0x1800304c0 to 0x18003052b (107 bytes)
//
// 5 xrefs:
// > cocos2d::CCCallFuncO::create @ 0x18002fdb1
// > cocos2d::CCCallFuncO::create @ 0x18002fd99
// > ??> @ 0x1800e9350
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0174
//
// 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
//
char __fastcall cocos2d::CCCallFuncO::initWithTarget(
_QWORD *a1,
cocos2d::CCObject *a2,
__int64 a3,
cocos2d::CCObject *a4)
{
cocos2d::CCObject *v8; // rcx
if ( a2 )
cocos2d::CCObject::retain(a2);
v8 = (cocos2d::CCObject *)a1[11];
if ( v8 )
cocos2d::CCObject::release(v8);
a1[11] = a2;
a1[15] = a4;
if ( a4 )
cocos2d::CCObject::retain(a4);
a1[13] = a3;
return 1;
}