//
// cocos2d::CCTouchDispatcher::setPriority from 0x1800b6e30 to 0x1800b6eb3 (131 bytes)
//
// 3 xrefs:
// > cocos2d::CCMenu::setHandlerPriority @ 0x18005ba00
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c29d0
//
// 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:22 +0000
//
void __fastcall cocos2d::CCTouchDispatcher::setPriority(
cocos2d::CCTouchDispatcher *this,
int a2,
struct cocos2d::CCTouchDelegate *a3)
{
cocos2d::CCTouchHandler *Handler; // rsi
Handler = cocos2d::CCTouchDispatcher::findHandler(this, a3);
if ( (unsigned int)cocos2d::CCNotificationCenter::getScriptHandler(Handler) != a2 )
{
cocos2d::CCTouchHandler::setPriority(Handler, a2);
sub_1800023B0(
*(char **)(*(_QWORD *)(*((_QWORD *)this + 8) + 56LL) + 16LL),
(__int64 *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 8) + 56LL) + 16LL)
+ 8LL * **(unsigned int **)(*((_QWORD *)this + 8) + 56LL)),
**(unsigned int **)(*((_QWORD *)this + 8) + 56LL),
(unsigned __int8 (__fastcall *)(__int64, __int64))sub_1800B6A80);
sub_1800023B0(
*(char **)(*(_QWORD *)(*((_QWORD *)this + 9) + 56LL) + 16LL),
(__int64 *)(*(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 9) + 56LL) + 16LL)
+ 8LL * **(unsigned int **)(*((_QWORD *)this + 9) + 56LL)),
**(unsigned int **)(*((_QWORD *)this + 9) + 56LL),
(unsigned __int8 (__fastcall *)(__int64, __int64))sub_1800B6A80);
}
}