//
// cocos2d::CCTouchDispatcher::findHandler from 0x8080f8 to 0x80816c (116 bytes)
//
// 4 xrefs:
// > BoomScrollLayer::claimTouch @ 0x3c2082
// > TableView::claimTouch @ 0x3c9d8c
// > CCTextInputNode::isCoveredByPopup @ 0x3dcb7c
// > cocos2d::CCTouchDispatcher::setPriority @ 0x8085a0
//
// 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::CCTouchDelegate *a2)
{
int v3; // r3
int v5; // r3
_DWORD *v6; // r3
cocos2d::CCTouchHandler **v7; // r7
cocos2d::CCTouchHandler **v8; // r5
cocos2d::CCTouchHandler *v9; // r4
cocos2d::CCTouchHandler *v10; // t1
_DWORD *v11; // r3
cocos2d::CCTouchHandler **v12; // r7
cocos2d::CCTouchHandler **v13; // r5
cocos2d::CCTouchHandler *v15; // t1
v3 = *((_DWORD *)this + 14);
if ( v3 )
{
v6 = *(_DWORD **)(v3 + 52);
if ( *v6 )
{
v7 = (cocos2d::CCTouchHandler **)v6[3];
v8 = &v7[*v6] + 0x3FFFFFFF;
while ( v7 <= v8 )
{
v10 = *v7++;
v9 = v10;
if ( !v10 )
break;
if ( a2 == (cocos2d::CCTouchDelegate *)cocos2d::CCTouchHandler::getDelegate(v9) )
return v9;
}
}
}
v5 = *((_DWORD *)this + 15);
if ( v5 )
{
v11 = *(_DWORD **)(v5 + 52);
if ( *v11 )
{
v12 = (cocos2d::CCTouchHandler **)v11[3];
v13 = &v12[*v11] + 0x3FFFFFFF;
while ( v12 <= v13 )
{
v15 = *v12++;
v9 = v15;
if ( !v15 )
break;
if ( a2 == (cocos2d::CCTouchDelegate *)cocos2d::CCTouchHandler::getDelegate(v9) )
return v9;
}
}
}
return nullptr;
}