//
// cocos2d::CCTouchDispatcher::setPriority from 0x1800b31c0 to 0x1800b3243 (131 bytes)
//
// 3 xrefs:
// > cocos2d::CCMenu::setHandlerPriority @ 0x1800599c0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b86dc
//
// 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
//
void __fastcall cocos2d::CCTouchDispatcher::setPriority(
cocos2d::CCTouchDispatcher *this,
int a2,
struct cocos2d::CCObject *a3)
{
cocos2d::CCNotificationObserver *Handler; // rsi
Handler = cocos2d::CCTouchDispatcher::findHandler(this, a3);
if ( (unsigned int)cocos2d::CCNotificationCenter::getScriptHandler((cocos2d::CCNotificationCenter *)Handler) != a2 )
{
cocos2d::CCTouchHandler::setPriority((cocos2d::CCTouchHandler *)Handler, a2);
sub_1800023F0(
(char *)this->m_pTargetedHandlers->data->arr,
(__int64 *)&this->m_pTargetedHandlers->data->arr[this->m_pTargetedHandlers->data->num],
this->m_pTargetedHandlers->data->num,
(unsigned __int8 (__fastcall *)(__int64, __int64))sub_1800B3000);
sub_1800023F0(
(char *)this->m_pStandardHandlers->data->arr,
(__int64 *)&this->m_pStandardHandlers->data->arr[this->m_pStandardHandlers->data->num],
this->m_pStandardHandlers->data->num,
(unsigned __int8 (__fastcall *)(__int64, __int64))sub_1800B3000);
}
}