//
// cocos2d::CCMouseHandler::handlerWithDelegate from 0xdb46ec to 0xdb4764 (120 bytes)
//
// 2 xrefs:
// > cocos2d::CCMouseDispatcher::forceAddDelegate @ 0xdb422c
// > ??> @ 0x67198
//
// 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 13:08:41 +0000
//
cocos2d::CCObject *__fastcall cocos2d::CCMouseHandler::handlerWithDelegate(
cocos2d::CCMouseHandler *this,
cocos2d::CCMouseDelegate *a2)
{
cocos2d::CCObject *v2; // x19
v2 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject((__int64)v2);
*(_QWORD *)v2 = &off_1531DB0;
if ( (unsigned __int8)cocos2d::CCMouseHandler::initWithDelegate(v2, this) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
cocos2d::CCObject::release(v2);
return nullptr;
}
}