//
// sub_10049B040 from 0x10049b040 to 0x10049b0e2 (162 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009453e0
//
// 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_10049B040(__int64 a1)
{
cocos2d::CCObject *v1; // rbx
cocos2d::CCDirector *v2; // rax
cocos2d::CCTouchDispatcher *v3; // rax
v1 = (cocos2d::CCObject *)(a1 - 320);
*(_QWORD *)(a1 - 320) = off_100944EB8;
*(_QWORD *)a1 = off_1009453D8;
*(_QWORD *)(a1 + 8) = &off_100945448;
*(_QWORD *)(a1 + 16) = off_100945460;
*(_QWORD *)(a1 + 24) = off_100945480;
*(_QWORD *)(a1 + 32) = off_1009454A0;
*(_QWORD *)(a1 + 88) = off_1009454C8;
*(_QWORD *)(a1 + 112) = off_100945548;
if ( *(_BYTE *)(a1 + 308) == 1 )
{
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getTouchDispatcher)(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, v1);
}
cocos2d::CCLayerColor::dCCLayerColor(v1);
operator delete(v1);
}