//
// cocos2d::CCCallFuncO::initWithTarget from 0x1001ae070 to 0x1001ae0bc (76 bytes)
//
// 2 xrefs:
// > cocos2d::CCCallFuncO::create @ 0x1001ae01c
// > ??> @ 0x1007aeee8
//
// 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
//
bool __fastcall cocos2d::CCCallFuncO::initWithTarget(
cocos2d::CCCallFuncO *a1,
cocos2d::CCObject *a2,
cocos2d::SEL_MenuHandler a3,
cocos2d::CCObject *a4)
{
size_t adj; // x19
void (__cdecl *ptr)(cocos2d::CCObject *); // x20
adj = a3.adj;
ptr = a3.ptr;
cocos2d::CCCallFunc::initWithTarget(a1, a2);
*(_QWORD *)&a1[1].m_uIndexInArray = a4;
if ( a4 )
cocos2d::CCObject::retain(a4);
*(_QWORD *)&a1[1].m_uID = ptr;
*(_QWORD *)&a1[1].cocos2d::CCCallFunc::cocos2d::CCActionInstant::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = adj;
return 1;
}