//
// sub_1002799B0 from 0x1002799b0 to 0x100279a60 (176 bytes)
//
// 1 xrefs:
// > ??> @ 0x100afc6f8
//
// 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:27:40 +0000
//
void __fastcall sub_1002799B0(_QWORD *__p, __int64 a2)
{
__int64 v2; // rax
__int64 v3; // rax
*__p = off_100AFC6E8;
__p[40] = off_100AFCC60;
__p[41] = &off_100AFCCD0;
__p[42] = off_100AFCCE8;
__p[43] = off_100AFCD08;
__p[44] = off_100AFCD30;
__p[51] = off_100AFCD60;
__p[54] = off_100AFCDE0;
if ( *((_BYTE *)__p + 601) == 1 )
{
v2 = cocos2d::CCDirector::sharedDirector(__p, a2);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, __p);
}
sub_1004AB790(__p);
operator delete(__p);
}