//
// sub_100517A70 from 0x100517a70 to 0x100517b18 (168 bytes)
//
// 1 xrefs:
// > ??> @ 0x10095fcc8
//
// 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_100517A70(__int64 a1)
{
cocos2d::CCDirector *v1; // rax
cocos2d::CCTouchDispatcher *v2; // rax
*(_QWORD *)a1 = off_10095FCC0;
*(_QWORD *)(a1 + 320) = off_100960228;
*(_QWORD *)(a1 + 328) = &off_100960298;
*(_QWORD *)(a1 + 336) = off_1009602B0;
*(_QWORD *)(a1 + 344) = off_1009602D0;
*(_QWORD *)(a1 + 352) = off_1009602F0;
*(_QWORD *)(a1 + 408) = off_100960318;
*(_QWORD *)(a1 + 432) = off_100960398;
if ( *(_BYTE *)(a1 + 545) == 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((_QWORD *)a1);
}