//
// cocos2d::CCTouchDispatcher::findHandler from 0x80816c to 0x8081a4 (56 bytes)
//
// 1 xrefs:
// > cocos2d::CCTouchDispatcher::removeDelegate @ 0x8081be
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:26 +0000
//
cocos2d::CCTouchHandler *__fastcall cocos2d::CCTouchDispatcher::findHandler(
cocos2d::CCTouchDispatcher *this,
cocos2d::CCArray *a2,
cocos2d::CCTouchDelegate *a3)
{
_DWORD *v5; // r1
cocos2d::CCTouchHandler **v6; // r6
cocos2d::CCTouchHandler **v7; // r4
cocos2d::CCTouchHandler *v8; // r5
cocos2d::CCTouchHandler *v9; // t1
if ( a2 )
{
v5 = *((_DWORD **)a2 + 13);
if ( *v5 )
{
v6 = (cocos2d::CCTouchHandler **)v5[3];
v7 = &v6[*v5] + 0x3FFFFFFF;
while ( v6 <= v7 )
{
v9 = *v6++;
v8 = v9;
if ( !v9 )
break;
if ( a3 == (cocos2d::CCTouchDelegate *)cocos2d::CCTouchHandler::getDelegate(v8) )
return v8;
}
}
}
return nullptr;
}