//
// cocos2d::CCTouchDispatcher::rearrangeHandlers from 0xdb23c8 to 0xdb2428 (96 bytes)
//
// 3 xrefs:
// > cocos2d::CCTouchDispatcher::setPriority @ 0xdb246c
// > cocos2d::CCTouchDispatcher::setPriority @ 0xdb2484
// > ??> @ 0x5fba8
//
// 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:08:40 +0000
//
__int64 __fastcall cocos2d::CCTouchDispatcher::rearrangeHandlers(
cocos2d::CCTouchDispatcher *this,
cocos2d::CCArray *a2)
{
unsigned int *v2; // x1
__int64 v3; // x0
char *v4; // x1
bool (__fastcall *v6)(cocos2d::CCTouchHandler *, cocos2d::CCTouchHandler *); // [xsp+20h] [xbp+20h] BYREF
v2 = *((unsigned int **)a2 + 7);
v3 = *((_QWORD *)v2 + 2);
v4 = (char *)(v3 + 8LL * *v2);
v6 = sub_DB1264;
std::__sort(
v3,
v4,
(unsigned __int8 (__fastcall **)(__int64, __int64))&v6);
return _stack_chk_guard;
}