//
// cocos2d::CCStandardTouchHandler::handlerWithDelegate from 0x100481470 to 0x10048150c (156 bytes)
//
// 1 xrefs:
// > cocos2d::CCTouchDispatcher::addStandardDelegate @ 0x1004cbf3c
//
// 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::CCStandardTouchHandler *__fastcall cocos2d::CCStandardTouchHandler::handlerWithDelegate(
cocos2d::CCTouchDelegate *a1,
int a2)
{
cocos2d::CCStandardTouchHandler *v2; // rbx
cocos2d::CCObject *v3; // rdi
v2 = (cocos2d::CCStandardTouchHandler *)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::CCStandardTouchHandler_vtbl *)off_10093C530;
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;
}