//
// LevelSettingsLayer::registerWithTouchDispatcher from 0x14045a4d0 to 0x14045a553 (131 bytes)
//
// 2 xrefs:
// > ??> @ 0x140797d60
// > ??> @ 0x140927c20
//
// 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:32:31 +0000
//
void __fastcall LevelSettingsLayer::registerWithTouchDispatcher(__int64 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 = (struct cocos2d::CCTouchDelegate *)(a1 + 320);
v7 = *(_DWORD *)(v5 + 128);
if ( !a1 )
v6 = nullptr;
v8 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 144LL))(v4);
cocos2d::CCTouchDispatcher::addTargetedDelegate(v8, v6, v7 - 1, 1);
}