//
// cocos2d::CCTouchDispatcher::addStandardDelegate from 0x5fa76e to 0x5fa7b8 (74 bytes)
//
// 1 xrefs:
// > cocos2d::CCLayer::registerWithTouchDispatcher @ 0x5ceda0
//
// 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 cocos2d::CCTouchDispatcher::addStandardDelegate(
cocos2d::CCTouchDispatcher *a1,
cocos2d::CCTouchDelegate *a2,
int a3)
{
cocos2d::CCStandardTouchHandler *v5; // r6
cocos2d::CCObject *v6; // r2
v5 = cocos2d::CCStandardTouchHandler::handlerWithDelegate(a2, a3);
if ( a1->m_bLocked )
{
if ( cocos2d::ccCArrayContainsValue(&a1->m_pHandlersToRemove->num, (int)a2) )
{
cocos2d::ccCArrayRemoveValue(&a1->m_pHandlersToRemove->num, (int)a2);
}
else
{
cocos2d::CCArray::addObject(a1->m_pHandlersToAdd, (cocos2d::_ccArray *)v5, v6);
a1->m_bToAdd = 1;
}
}
else
{
cocos2d::CCTouchDispatcher::forceAddHandler(a1, v5, a1->m_pStandardHandlers);
}
}