//
// sub_100302B00 from 0x100302b00 to 0x100302ba3 (163 bytes)
//
// 1 xrefs:
// > ??> @ 0x10090ae58
//
// 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
//
void __fastcall sub_100302B00(__int64 a1)
{
cocos2d::CCDirector *v1; // rax
cocos2d::CCTouchDispatcher *v2; // rax
__int64 v3; // rax
__int16 v4; // [rsp-1Ch] [rbp-1Ch] BYREF
char v5; // [rsp-1Ah] [rbp-1Ah]
if ( !*(_BYTE *)(a1 + 324) )
{
v1 = cocos2d::CCDirector::sharedDirector();
v2 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v1->getTouchDispatcher)(v1);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v2, (cocos2d::CCObject *)(a1 - 336));
cocos2d::CCNode::stopAllActions((cocos2d::CCNode *)(a1 - 336));
cocos2d::CCNode::unscheduleAllSelectors((cocos2d::CCNode *)(a1 - 336));
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 336) + 1056LL))(a1 - 336, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 - 336) + 512LL))(a1 - 336, 1);
v3 = *(_QWORD *)(a1 + 312);
v5 = -1;
v4 = -1;
(*(void (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(v3 + 640) + 944LL))(*(_QWORD *)(v3 + 640), &v4);
}
}