//
// cocos2d::CCTouchHandler::handlerWithDelegate from 0x1004811e0 to 0x10048127c (156 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCTouchHandler *__fastcall cocos2d::CCTouchHandler::handlerWithDelegate(cocos2d::CCTouchDelegate *a1, int a2)
{
cocos2d::CCTouchHandler *v2; // rbx
cocos2d::CCObject *v3; // rdi
v2 = (cocos2d::CCTouchHandler *)operator new(0x48u);
*(_OWORD *)&v2->__vftable = 0;
*(_OWORD *)&v2->m_nTag = 0;
*(_OWORD *)&v2->m_uIndexInArray = 0;
*(_OWORD *)&v2->m_uOrderOfArrival = 0;
*(_QWORD *)&v2->m_nPriority = 0;
cocos2d::CCObject::CCObject(v2);
v2->__vftable = (cocos2d::CCTouchHandler_vtbl *)off_10093C448;
v2->m_pDelegate = a1;
if ( a1 )
v3 = (cocos2d::CCObject *)__dynamic_cast(
a1,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
else
v3 = nullptr;
cocos2d::CCObject::retain(v3);
v2->m_nPriority = a2;
v2->m_nEnabledSelectors = 0;
cocos2d::CCObject::autorelease(v2);
return v2;
}