//
// cocos2d::extension::CCControl::getHandleOfControlEvent from 0xd0bb40 to 0xd0bb9c (92 bytes)
//
// 2 xrefs:
// > cocos2d::extension::CCControl::sendActionsForControlEvents @ 0xd0bc58
// > ??> @ 0xd5a48
//
// This function is hookable on this platform (idp: arm, 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 13:06:59 +0000
//
__int64 __fastcall cocos2d::extension::CCControl::getHandleOfControlEvent(cocos2d::extension::CCControl *this, int a2)
{
char *v2; // x4
char *v3; // x0
char *v4; // x3
__int64 result; // x0
v2 = (char *)this + 456;
v3 = *((char **)this + 57);
if ( !v3 )
return 0xFFFFFFFFLL;
v4 = v2;
do
{
while ( a2 <= *((_DWORD *)v3 + 7) )
{
v4 = v3;
v3 = *(char **)v3;
if ( !v3 )
goto LABEL_5;
}
v3 = *((char **)v3 + 1);
}
while ( v3 );
LABEL_5:
if ( v2 == v4 )
return 0xFFFFFFFFLL;
result = 0xFFFFFFFFLL;
if ( a2 >= *((_DWORD *)v4 + 7) )
return *((unsigned int *)v4 + 8);
return result;
}