//
// sub_100610920 from 0x100610920 to 0x1006109b6 (150 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009813d0
//
// 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_100610920(__int64 a1)
{
cocos2d::CCDirector *v2; // rax
cocos2d::CCTouchDispatcher *v3; // rax
void (__fastcall ***v4)(_QWORD, __int64, __int64); // rdi
__int64 v5; // rbx
if ( *(_QWORD *)(a1 + 312) )
{
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getTouchDispatcher)(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, *(cocos2d::CCObject **)(a1 + 312));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 312) + 520LL))(*(_QWORD *)(a1 + 312));
*(_QWORD *)(a1 + 312) = 0;
}
v4 = *(void (__fastcall ****)(_QWORD, __int64, __int64))(a1 + 216);
v5 = a1 - 336;
if ( v4 )
(**v4)(v4, v5, 1);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1056LL))(v5, 0);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 512LL))(v5, 1);
}