//
// sub_10049C1B0 from 0x10049c1b0 to 0x10049c242 (146 bytes)
//
// 1 xrefs:
// > ??> @ 0x100945460
//
// 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_10049C1B0(__int64 a1)
{
__int64 v1; // rbx
unsigned __int8 v2; // r15
cocos2d::CCDirector *v3; // rax
cocos2d::CCTouchDispatcher *v4; // rax
void (__fastcall ***v5)(_QWORD, __int64, _QWORD); // rdi
v1 = a1 - 336;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 336) + 1056LL))(a1 - 336, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 336) + 1072LL))(a1 - 336, 0);
v2 = *(_BYTE *)(a1 + 232);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, (cocos2d::CCObject *)(a1 - 336));
v5 = *(void (__fastcall ****)(_QWORD, __int64, _QWORD))(a1 + 216);
if ( v5 )
(**v5)(v5, v1, v2);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 512LL))(v1, 1);
}