//
// cocos2d::CCMenu::giveMenuTouchPriority from 0xd636cc to 0xd63754 (136 bytes)
//
// 4 xrefs:
// > ProfilePage::setupCommentsBrowser @ 0xa5485c
// > MessageThreadsPage::setupThreadBrowser @ 0xc656a8
// > cocos2d::CCMenu::giveMenuTouchPriority @ 0xd63788
// > ??> @ 0xcfee0
//
// 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:07:52 +0000
//
__int64 __fastcall cocos2d::CCMenu::giveMenuTouchPriority(cocos2d::CCMenu *this, unsigned int a2)
{
__int64 v5; // x0
if ( *((_DWORD *)this + 107) == 1 )
{
v5 = *((_QWORD *)this + 54);
if ( v5 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1024LL))(v5);
*((_QWORD *)this + 54) = 0;
}
*((_DWORD *)this + 107) = 0;
}
(*(void (__fastcall **)(cocos2d::CCMenu *, _QWORD))(*(_QWORD *)this + 1000LL))(this, 0);
(*(void (__fastcall **)(cocos2d::CCMenu *, _QWORD))(*(_QWORD *)this + 1024LL))(this, a2);
return (*(__int64 (__fastcall **)(cocos2d::CCMenu *, __int64))(*(_QWORD *)this + 1000LL))(this, 1);
}