//
// cocos2d::CCTouchDispatcher::findHandler from 0x1800b6660 to 0x1800b66d1 (113 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2904
//
// 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 11:22:21 +0000
//
struct cocos2d::CCTouchHandler *__fastcall cocos2d::CCTouchDispatcher::findHandler(
cocos2d::CCTouchDispatcher *this,
struct cocos2d::CCArray *a2,
struct cocos2d::CCTouchDelegate *a3)
{
unsigned int *v4; // rbx
__int64 v5; // rax
cocos2d::CCNotificationObserver **v6; // rbx
cocos2d::CCNotificationObserver **i; // rsi
cocos2d::CCNotificationObserver *v8; // rdi
if ( a2 )
{
v4 = *((unsigned int **)a2 + 7);
v5 = *v4;
if ( (_DWORD)v5 )
{
v6 = *((cocos2d::CCNotificationObserver ***)v4 + 2);
for ( i = &v6[v5 - 1]; v6 <= i; ++v6 )
{
v8 = *v6;
if ( !*v6 )
break;
if ( cocos2d::CCNotificationObserver::getTarget(*v6) == a3 )
return v8;
}
}
}
return nullptr;
}