// // cocos2d::extension::CCControl::getHandleOfControlEvent from 0x180004d50 to 0x180004d95 (69 bytes) // // 2 xrefs: // > cocos2d::extension::CCControl::sendActionsForControlEvents @ 0x1800044bf // > @ 0x18002fdf8 // // 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 // __int64 __fastcall cocos2d::extension::CCControl::getHandleOfControlEvent(cocos2d::extension::CCControl *this, int a2) { __int64 *v2; // r8 __int64 *v3; // rcx __int64 *v4; // rax v2 = *((__int64 **)this + 57); v3 = v2; v4 = (__int64 *)v2[1]; while ( !*((_BYTE *)v4 + 25) ) { if ( *((_DWORD *)v4 + 7) >= a2 ) { v3 = v4; v4 = (__int64 *)*v4; } else { v4 = (__int64 *)v4[2]; } } if ( *((_BYTE *)v3 + 25) || a2 < *((_DWORD *)v3 + 7) || v2 == v3 ) return 0xFFFFFFFFLL; else return *((unsigned int *)v3 + 8); }