//
// cocos2d::CCMouseDispatcher::removeDelegate from 0xdb4340 to 0xdb4384 (68 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayer::setMouseEnabled @ 0xd5c824
// > cocos2d::CCLayer::onExit @ 0xd5e264
// > ??> @ 0xd1fe0
//
// This function is hookable on this platform (idp: arm, 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 13:08:41 +0000
//
cocos2d::CCMouseDelegate *__fastcall cocos2d::CCMouseDispatcher::removeDelegate(
cocos2d::CCMouseDelegate *this,
cocos2d::CCMouseDelegate *a2)
{
cocos2d::CCMouseDelegate *v2; // x19
if ( a2 )
{
if ( *((_BYTE *)this + 64) )
{
v2 = this;
cocos2d::ccCArrayAppendValue(*((_QWORD *)this + 10), (__int64)a2);
this = (cocos2d::CCMouseDelegate *)((char *)&dword_0 + 1);
*((_BYTE *)v2 + 66) = (unsigned __int8)&dword_0 + 1;
}
else
{
return cocos2d::CCMouseDispatcher::forceRemoveDelegate(this, a2);
}
}
return this;
}