//
// cocos2d::CCMenu::setHandlerPriority from 0x18005b9c0 to 0x18005ba05 (69 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bce2c
//
// 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:21:49 +0000
//
void __fastcall cocos2d::CCMenu::setHandlerPriority(cocos2d::CCMenu *this, int a2)
{
struct cocos2d::CCDirector *v4; // rax
cocos2d::CCTouchDispatcher *v5; // rax
struct cocos2d::CCTouchDelegate *v6; // r8
v4 = cocos2d::CCDirector::sharedDirector();
v5 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v4 + 144LL))(v4);
v6 = (cocos2d::CCMenu *)((char *)this + 320);
if ( !this )
v6 = nullptr;
cocos2d::CCTouchDispatcher::setPriority(v5, a2, v6);
}