//
// sub_1002ED7E0 from 0x1002ed7e0 to 0x1002ed883 (163 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b12718
//
// 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:28:24 +0000
//
void __fastcall sub_1002ED7E0(__int64 a1, __int64 a2)
{
__int64 v2; // rax
__int64 v3; // rax
__int64 v4; // rax
__int16 v5; // [rsp-1Ch] [rbp-1Ch] BYREF
char v6; // [rsp-1Ah] [rbp-1Ah]
if ( !*(_BYTE *)(a1 + 356) )
{
v2 = cocos2d::CCDirector::sharedDirector(a1, a2);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, a1 - 336);
cocos2d::CCNode::stopAllActions(a1 - 336);
cocos2d::CCNode::unscheduleAllSelectors(a1 - 336);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 336) + 1072LL))(a1 - 336, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(a1 - 336) + 528LL))(a1 - 336, 1);
v4 = *(_QWORD *)(a1 + 344);
v6 = -1;
v5 = -1;
(*(void (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(v4 + 672) + 960LL))(*(_QWORD *)(v4 + 672), &v5);
}
}