//
// LevelBrowserLayer::registerWithTouchDispatcher from 0x1004199dc to 0x100419a30 (84 bytes)
//
// 2 xrefs:
// > ??> @ 0x1007cb188
// > ??> @ 0x100822fe8
//
// 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 LevelBrowserLayer::registerWithTouchDispatcher(LevelBrowserLayer *a1)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCTouchDispatcher *v3; // x0
if ( a1->m_isOverlay )
{
v2 = cocos2d::CCDirector::sharedDirector();
v3 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v2->getTouchDispatcher)(v2);
cocos2d::CCTouchDispatcher::addTargetedDelegate(v3, &a1->cocos2d::CCTouchDelegate, -500, 1);
}
else
{
cocos2d::CCLayer::registerWithTouchDispatcher(a1);
}
}