//
// cocos2d::CCMenu::giveMenuTouchPriority from 0x100873bd0 to 0x100873c45 (117 bytes)
//
// 2 xrefs:
// > ProfilePage::setupCommentsBrowser @ 0x10089f225
// > sub_10092CE30 @ 0x10092cfc0
//
// 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 12:36:52 +0000
//
__int64 __fastcall cocos2d::CCMenu::giveMenuTouchPriority(__int64 a1, unsigned int a2)
{
__int64 v3; // rdi
if ( *(_DWORD *)(a1 + 428) == 1 )
{
v3 = *(_QWORD *)(a1 + 432);
if ( v3 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1024LL))(v3);
*(_QWORD *)(a1 + 432) = 0;
}
*(_DWORD *)(a1 + 428) = 0;
}
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1000LL))(a1, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1024LL))(a1, a2);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1);
}