//
// sub_10049AE20 from 0x10049ae20 to 0x10049aec8 (168 bytes)
//
// 1 xrefs:
// > ??> @ 0x100944ec0
//
// 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_10049AE20(__int64 a1)
{
cocos2d::CCDirector *v1; // rax
cocos2d::CCTouchDispatcher *v2; // rax
*(_QWORD *)a1 = off_100944EB8;
*(_QWORD *)(a1 + 320) = off_1009453D8;
*(_QWORD *)(a1 + 328) = &off_100945448;
*(_QWORD *)(a1 + 336) = off_100945460;
*(_QWORD *)(a1 + 344) = off_100945480;
*(_QWORD *)(a1 + 352) = off_1009454A0;
*(_QWORD *)(a1 + 408) = off_1009454C8;
*(_QWORD *)(a1 + 432) = off_100945548;
if ( *(_BYTE *)(a1 + 628) == 1 )
{
v1 = cocos2d::CCDirector::sharedDirector();
v2 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v1->getTouchDispatcher)(v1);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v2, (cocos2d::CCObject *)a1);
}
return cocos2d::CCLayerColor::dCCLayerColor(a1);
}