//
// cocos2d::CCTouchDispatcher::findHandler from 0x1004c7cb0 to 0x1004c7d0d (93 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:31:08 +0000
//
__int64 __fastcall cocos2d::CCTouchDispatcher::findHandler(__int64 a1, __int64 a2, __int64 a3)
{
unsigned int *v3; // rax
__int64 *v5; // r15
unsigned __int64 v6; // r12
__int64 v7; // r14
if ( a2 )
{
v3 = *(unsigned int **)(a2 + 56);
if ( *v3 )
{
v5 = *((__int64 **)v3 + 2);
v6 = (unsigned __int64)&v5[*v3 - 1];
do
{
v7 = *v5;
if ( !*v5 )
break;
if ( cocos2d::CCTouchHandler::getDelegate(*v5) == a3 )
return v7;
++v5;
}
while ( (unsigned __int64)v5 <= v6 );
}
}
return 0;
}