//
// LevelBrowserLayer::registerWithTouchDispatcher from 0x1403eb5d0 to 0x1403eb639 (105 bytes)
//
// 5 xrefs:
// > ??> @ 0x140789e38
// > ??> @ 0x14078f800
// > ??> @ 0x1408c5240
// > ??> @ 0x1408c5250
// > ??> @ 0x1409251cc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:31:45 +0000
//
void __fastcall LevelBrowserLayer::registerWithTouchDispatcher(_BYTE *a1)
{
__int64 v2; // rax
struct cocos2d::CCTouchDelegate *v3; // rbx
cocos2d::CCTouchDispatcher *v4; // rax
if ( a1[748] )
{
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = (struct cocos2d::CCTouchDelegate *)(a1 + 320);
if ( !a1 )
v3 = nullptr;
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);
cocos2d::CCTouchDispatcher::addTargetedDelegate(v4, v3, -500, 1);
}
else
{
cocos2d::CCLayer::registerWithTouchDispatcher((cocos2d::CCLayer *)a1);
}
}