//
// cocos2d::CCTouchDispatcher::addStandardDelegate from 0x1001cdb00 to 0x1001cdb94 (148 bytes)
//
// 1 xrefs:
// > cocos2d::CCLayer::registerWithTouchDispatcher @ 0x1001c702c
//
// 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 11:00:21 +0000
//
void __fastcall cocos2d::CCTouchDispatcher::addStandardDelegate(__int64 a1, void *a2, int a3)
{
_OWORD *v5; // x0
_OWORD *v6; // x21
v5 = cocos2d::CCStandardTouchHandler::handlerWithDelegate(a2, a3);
v6 = v5;
if ( (*(_BYTE *)(a1 + 80) & 1) != 0 )
{
if ( (unsigned int)sub_1003F34B8(*(_QWORD *)(a1 + 96), a2) )
{
sub_1003F3548(*(_QWORD *)(a1 + 96), a2);
}
else
{
sub_1002E74E0(*(_QWORD *)(a1 + 88), v6);
*(_BYTE *)(a1 + 81) = 1;
}
}
else
{
cocos2d::CCTouchDispatcher::forceAddHandler((__int64)v5, (__int64)v5, *(_QWORD *)(a1 + 72));
}
}