//
// cocos2d::CCCallFuncO::initWithTarget from 0x180030bf0 to 0x180030c5b (107 bytes)
//
// 5 xrefs:
// > cocos2d::CCCallFuncO::create @ 0x1800304f1
// > cocos2d::CCCallFuncO::create @ 0x1800304d9
// > ??> @ 0x1800ef3b8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba288
//
// This function is hookable on this platform (idp: pc, 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 11:21:33 +0000
//
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;
}