//
// sub_1007BF9A0 from 0x1007bf9a0 to 0x1007bfa25 (133 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009943a8
//
// 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
//
__int64 __fastcall sub_1007BF9A0(__int64 a1)
{
cocos2d::CCDirector *v1; // rax
cocos2d::CCTouchDispatcher *v2; // rax
cocos2d::CCDirector *v3; // rax
cocos2d::CCTouchDispatcher *v4; // rax
if ( *(_QWORD *)(a1 + 408) )
{
v1 = cocos2d::CCDirector::sharedDirector();
v2 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v1->getTouchDispatcher)(v1);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v2, *(cocos2d::CCObject **)(a1 + 408));
}
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (cocos2d::CCObject *)(a1 - 336));
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 336) + 1056LL))(a1 - 336, 0);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 - 336) + 512LL))(a1 - 336, 1);
}