//
// cocos2d::CCTouchDispatcher::addStandardDelegate from 0xdb17fc to 0xdb1898 (156 bytes)
//
// 2 xrefs:
// > cocos2d::CCLayer::registerWithTouchDispatcher @ 0xd5bec8
// > ??> @ 0xa60f0
//
// 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 13:08:39 +0000
//
unsigned int *__fastcall cocos2d::CCTouchDispatcher::addStandardDelegate(
cocos2d::CCTouchDispatcher *this,
cocos2d::CCTouchDelegate *a2,
cocos2d::CCTouchDelegate *a3)
{
cocos2d::CCTouchHandler *v5; // x21
v5 = (cocos2d::CCTouchHandler *)cocos2d::CCStandardTouchHandler::handlerWithDelegate(
a2,
(cocos2d::CCTouchDelegate *)(unsigned int)a3,
(int)a3);
if ( !*((_BYTE *)this + 80) )
return (unsigned int *)cocos2d::CCTouchDispatcher::forceAddHandler(this, v5, *((cocos2d::CCArray **)this + 9));
if ( cocos2d::ccCArrayContainsValue(*((int **)this + 12), (__int64)a2) )
return cocos2d::ccCArrayRemoveValue(*((int **)this + 12), (__int64)a2);
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 11), v5);
*((_BYTE *)this + 81) = 1;
return (unsigned int *)(&dword_0 + 1);
}