//
// sub_1002D4FAC from 0x1002d4fac to 0x1002d5020 (116 bytes)
//
// 4 xrefs:
// > sub_1002D5024 @ 0x1002d5024
// > sub_1002D5028 @ 0x1002d502c
// > sub_1002D5030 @ 0x1002d5038
// > sub_1002D5044 @ 0x1002d5050
//
// 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_1002D4FAC(__int64 a1)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCTouchDispatcher *v3; // x0
*(_QWORD *)a1 = off_1007D9328;
*(_QWORD *)(a1 + 320) = off_1007D9840;
*(_QWORD *)(a1 + 328) = &off_1007D98B0;
*(_QWORD *)(a1 + 336) = off_1007D98C8;
*(_QWORD *)(a1 + 344) = &off_1007D98E8;
*(_QWORD *)(a1 + 352) = off_1007D9908;
*(_QWORD *)(a1 + 408) = off_1007D9930;
*(_QWORD *)(a1 + 432) = off_1007D99B0;
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getTouchDispatcher)(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v3, (cocos2d::CCObject *)a1);
return cocos2d::CCLayerColor::dCCLayerColor((_QWORD *)a1);
}