//
// cocos2d::CCCallFuncO::create from 0x18002fd20 to 0x18002fe05 (229 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b009c
//
// 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
//
// Hidden C++ exception states: #wind=1
cocos2d::CCCallFuncO *__fastcall cocos2d::CCCallFuncO::create(__int64 a1, __int64 a2, __int64 a3)
{
cocos2d::CCAction *v6; // rax
cocos2d::CCCallFuncO *v7; // rbx
bool (__stdcall *initWithTarget_0)(cocos2d::CCCallFuncO *__hidden, cocos2d::CCObject *, cocos2d::SEL_MenuHandler *__struct_ptr, cocos2d::CCObject *); // r10
char v9; // al
void (__stdcall *v11)(cocos2d::CCCallFuncO *__hidden); // r8
v6 = (cocos2d::CCAction *)operator new(0x80u);
v7 = (cocos2d::CCCallFuncO *)v6;
if ( v6 )
{
cocos2d::CCAction::CCAction(v6);
v7->m_fDuration = 0.0;
v7->cocos2d::TypeInfo::__vftable = nullptr;
LODWORD(v7[1].cocos2d::CCCallFunc::cocos2d::CCActionInstant::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::cocos2d::CCCopying::__vftable) = 0;
*(_QWORD *)&v7[1].m_uID = 0;
v7->cocos2d::CCCallFunc::cocos2d::CCActionInstant::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCCallFuncO_vtbl *)&cocos2d::CCCallFuncO::`vftable'{for `cocos2d::CCCallFunc'};
*(_QWORD *)&v7[1].cocos2d::CCCallFunc::cocos2d::CCActionInstant::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = &cocos2d::CCCallFuncO::`vftable'{for `cocos2d::TypeInfo'};
*(_QWORD *)&v7[1].m_uAutoReleaseCount = 0;
}
else
{
v7 = nullptr;
}
if ( v7 )
{
initWithTarget_0 = v7->initWithTarget_0;
if ( (char *)initWithTarget_0 == (char *)cocos2d::CCCallFuncO::initWithTarget )
v9 = cocos2d::CCCallFuncO::initWithTarget(v7, a1, a2, a3);
else
v9 = ((__int64 (__fastcall *)(cocos2d::CCCallFuncO *, __int64, __int64, __int64))initWithTarget_0)(v7, a1, a2, a3);
if ( v9 )
{
cocos2d::CCObject::autorelease(v7);
return v7;
}
v11 = v7->~CCCallFuncO;
if ( (char *)v11 == (char *)sub_18002EDF0 )
sub_18002EDF0(v7, 1);
else
((void (__fastcall *)(cocos2d::CCCallFuncO *, __int64))v11)(v7, 1);
}
return nullptr;
}