// // cocos2d::CCLayer::registerWithTouchDispatcher from 0x180052730 to 0x1800527ae (126 bytes) // // 7 xrefs: // > @ 0x1800f33b8 // > @ 0x1800f3898 // > @ 0x1800f3df0 // > @ 0x1800f4378 // > @ 0x1800f4970 // > @ 0x18014cf68 // > @ 0x1801bc2c8 // // 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:21:45 +0000 // void __fastcall cocos2d::CCLayer::registerWithTouchDispatcher(cocos2d::CCLayer *this) { struct cocos2d::CCDirector *v2; // rax cocos2d::CCTouchDispatcher *v3; // rax __int64 v4; // r8 struct cocos2d::CCTouchDelegate *v5; // rdx char v6; // r9 int v7; // r8d v2 = cocos2d::CCDirector::sharedDirector(); v3 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(struct cocos2d::CCDirector *))(*(_QWORD *)v2 + 144LL))(v2); v4 = *((_QWORD *)this + 46); v5 = (cocos2d::CCLayer *)((char *)this + 320); if ( v4 ) { if ( !*(_BYTE *)(v4 + 64) ) { v6 = *(_BYTE *)(v4 + 72); v7 = *(_DWORD *)(v4 + 68); LABEL_9: if ( !this ) v5 = nullptr; cocos2d::CCTouchDispatcher::addTargetedDelegate(v3, v5, v7, v6); return; } } else if ( *((_DWORD *)this + 99) ) { v7 = *((_DWORD *)this + 98); v6 = 1; goto LABEL_9; } if ( !this ) v5 = nullptr; cocos2d::CCTouchDispatcher::addStandardDelegate(v3, v5, 0); }