//
// cocos2d::CCTouchDispatcher::findHandler from 0x1004cc1f0 to 0x1004cc24d (93 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCTouchHandler *__fastcall cocos2d::CCTouchDispatcher::findHandler(
cocos2d::CCTouchDispatcher *a1,
cocos2d::CCArray *a2,
cocos2d::CCTouchDelegate *a3)
{
cocos2d::ccArray *data; // rax
cocos2d::CCTouchHandler **arr; // r15
unsigned __int64 v6; // r12
cocos2d::CCTouchHandler *v7; // r14
if ( a2 )
{
data = a2->data;
if ( data->num )
{
arr = (cocos2d::CCTouchHandler **)data->arr;
v6 = (unsigned __int64)&arr[data->num - 1];
do
{
v7 = *arr;
if ( !*arr )
break;
if ( cocos2d::CCTouchHandler::getDelegate(*arr) == a3 )
return v7;
++arr;
}
while ( (unsigned __int64)arr <= v6 );
}
}
return nullptr;
}