//
// LevelSettingsLayer::registerWithTouchDispatcher from 0x1403212e0 to 0x14032135d (125 bytes)
//
// 2 xrefs:
// > ??> @ 0x14058eaa8
// > ??> @ 0x1406d4c1c
//
// 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 LevelSettingsLayer::registerWithTouchDispatcher(LevelSettingsLayer *a1)
{
__int64 v2; // rbx
__int64 v3; // rcx
__int64 v4; // rsi
__int64 v5; // rax
struct cocos2d::CCTouchDelegate *v6; // rbx
int v7; // edi
cocos2d::CCTouchDispatcher *v8; // rax
v2 = cocos2d::CCDirector::sharedDirector(a1);
v4 = cocos2d::CCDirector::sharedDirector(v3);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);
v6 = &a1->cocos2d::CCTouchDelegate;
v7 = *(_DWORD *)(v5 + 124);
if ( !a1 )
v6 = nullptr;
v8 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);
cocos2d::CCTouchDispatcher::addTargetedDelegate(v8, v6, v7 - 1, 1);
}