//
// cocos2d::CCCallFuncO::initWithTarget from 0xabd138 to 0xabd198 (96 bytes)
//
// 2 xrefs:
// > ??> @ 0x38f28
// > ??> @ 0x11fdc90
//
// 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 cocos2d::CCCallFuncO::initWithTarget(
cocos2d::CCCallFuncO *a1,
cocos2d::CCObject *a2,
cocos2d::SEL_MenuHandler a3,
cocos2d::CCObject *a4)
{
void (__cdecl *ptr)(cocos2d::CCObject *); // x22
size_t adj; // x23
bool v7; // w20
unsigned int *p_m_uID; // x19
ptr = a3.ptr;
adj = a3.adj;
v7 = cocos2d::CCCallFunc::initWithTarget(a1, a2);
if ( v7 )
{
*(_QWORD *)&a1[1].m_uIndexInArray = a4;
if ( a4 )
cocos2d::CCObject::retain(a4);
p_m_uID = &a1[1].m_uID;
*(_QWORD *)p_m_uID = ptr;
*((_QWORD *)p_m_uID + 1) = adj;
}
return v7;
}