//
// cocos2d::CCCallFunc::initWithTarget from 0x100242ad0 to 0x100242b10 (64 bytes)
//
// 8 xrefs:
// > cocos2d::CCCallFunc::create @ 0x100242a7c
// > sub_100242D00 @ 0x100242d1c
// > cocos2d::CCCallFuncND::create @ 0x100242db0
// > sub_100242DF0 @ 0x100242e10
// > cocos2d::CCCallFuncO::initWithTarget @ 0x1002430c8
// > ??> @ 0x100906240
// > ??> @ 0x1009062d8
// > ??> @ 0x100906540
//
// This function is hookable on this platform (idp: arm, 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:01:25 +0000
//
__int64 __fastcall cocos2d::CCCallFunc::initWithTarget(__int64 a1, __int64 a2)
{
_DWORD *v4; // x0
if ( a2 )
cocos2d::CCObject::retain(a2);
v4 = *(_DWORD **)(a1 + 88);
if ( v4 )
cocos2d::CCObject::release(v4);
*(_QWORD *)(a1 + 88) = a2;
return 1;
}