//
// cocos2d::CCTouchDispatcher::addStandardDelegate from 0x10014ef54 to 0x10014efe8 (148 bytes)
//
// 1 xrefs:
// > cocos2d::CCLayer::registerWithTouchDispatcher @ 0x100148738
//
// 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
//
void __fastcall cocos2d::CCTouchDispatcher::addStandardDelegate(
cocos2d::CCTouchDispatcher *a1,
cocos2d::CCTouchDelegate *a2,
int a3)
{
cocos2d::CCTouchDispatcher *v5; // x0
cocos2d::CCTouchDispatcher *v6; // x21
v5 = (cocos2d::CCTouchDispatcher *)cocos2d::CCStandardTouchHandler::handlerWithDelegate(a2, a3);
v6 = v5;
if ( a1->m_bLocked )
{
if ( (unsigned int)sub_100353BC8(a1->m_pHandlersToRemove, a2) )
{
sub_100353C58(a1->m_pHandlersToRemove, a2);
}
else
{
sub_10024A2D0(a1->m_pHandlersToAdd, v6);
a1->m_bToAdd = 1;
}
}
else
{
cocos2d::CCTouchDispatcher::forceAddHandler(v5, (cocos2d::CCTouchHandler *)v5, a1->m_pStandardHandlers);
}
}