//
// cocos2d::CCMouseHandler::initWithDelegate from 0x10008e868 to 0x10008e8b0 (72 bytes)
//
// 2 xrefs:
// > cocos2d::CCMouseHandler::handlerWithDelegate @ 0x10008e8e4
// > ??> @ 0x1008cabd8
//
// 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 10:58:22 +0000
//
__int64 __fastcall cocos2d::CCMouseHandler::initWithDelegate(__int64 a1, void *lpsrc)
{
void *v2; // x0
*(_QWORD *)(a1 + 56) = lpsrc;
if ( lpsrc )
v2 = __dynamic_cast(
lpsrc,
(const struct __class_type_info *)&off_1008CABE0,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
else
v2 = nullptr;
cocos2d::CCObject::retain(v2);
return 1;
}