// // cocos2d::CCTouchDispatcher::forceRemoveDelegate from 0x80804c to 0x8080d2 (134 bytes) // // 2 xrefs: // > cocos2d::CCTouchDispatcher::removeDelegate @ 0x8081b6 // > cocos2d::CCTouchDispatcher::touches @ 0x8082e4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:01:26 +0000 // cocos2d::CCTouchDelegate *__fastcall cocos2d::CCTouchDispatcher::forceRemoveDelegate( cocos2d::CCTouchDelegate *this, cocos2d::CCTouchDelegate *a2) { cocos2d::CCTouchDelegate *v2; // r5 int v3; // r3 _DWORD *v5; // r2 cocos2d::CCTouchHandler **v6; // r7 cocos2d::CCTouchHandler **v7; // r4 cocos2d::CCTouchHandler *v8; // r8 cocos2d::CCTouchHandler *v9; // t1 int v10; // r3 _DWORD *v11; // r2 cocos2d::CCTouchHandler **v12; // r7 cocos2d::CCTouchHandler **v13; // r4 cocos2d::CCTouchHandler *v14; // r8 cocos2d::CCTouchHandler *v15; // t1 v2 = this; v3 = *((_DWORD *)this + 15); if ( v3 ) { v5 = *(_DWORD **)(v3 + 52); if ( *v5 ) { v6 = (cocos2d::CCTouchHandler **)v5[3]; v7 = &v6[*v5] + 0x3FFFFFFF; while ( v6 <= v7 ) { v9 = *v6++; v8 = v9; if ( !v9 ) break; this = (cocos2d::CCTouchDelegate *)cocos2d::CCTouchHandler::getDelegate(v8); if ( a2 == this ) { this = (cocos2d::CCTouchDelegate *)cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)v2 + 15), v8, 1); break; } } } } v10 = *((_DWORD *)v2 + 14); if ( v10 ) { v11 = *(_DWORD **)(v10 + 52); if ( *v11 ) { v12 = (cocos2d::CCTouchHandler **)v11[3]; v13 = &v12[*v11] + 0x3FFFFFFF; while ( v12 <= v13 ) { v15 = *v12++; v14 = v15; if ( !v15 ) break; this = (cocos2d::CCTouchDelegate *)cocos2d::CCTouchHandler::getDelegate(v14); if ( a2 == this ) return (cocos2d::CCTouchDelegate *)cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)v2 + 14), v14, 1); } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source