//
// cocos2d::CCMenu::giveMenuTouchPriority from 0x7dbd80 to 0x7dbdd0 (80 bytes)
//
// 3 xrefs:
// > ProfilePage::setupCommentsBrowser @ 0x5f64d2
// > MessageThreadsPage::setupThreadBrowser @ 0x746c86
// > cocos2d::CCMenu::giveMenuTouchPriority @ 0x7dbde8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:45 +0000
//
int __fastcall cocos2d::CCMenu::giveMenuTouchPriority(cocos2d::CCMenu *this, int a2)
{
int v4; // r0
if ( *((_DWORD *)this + 83) == 1 )
{
v4 = *((_DWORD *)this + 84);
if ( v4 )
{
(*(void (__fastcall **)(int))(*(_DWORD *)v4 + 512))(v4);
*((_DWORD *)this + 84) = 0;
}
*((_DWORD *)this + 83) = 0;
}
(*(void (__fastcall **)(cocos2d::CCMenu *, _DWORD))(*(_DWORD *)this + 500))(this, 0);
(*(void (__fastcall **)(cocos2d::CCMenu *, int))(*(_DWORD *)this + 512))(this, a2);
return (*(int (__fastcall **)(cocos2d::CCMenu *, int))(*(_DWORD *)this + 500))(this, 1);
}