// // cocos2d::CCIMEDispatcher::removeDelegate from 0x1800b4d00 to 0x1800b4d72 (114 bytes) // // 1 xrefs: // > @ 0x1801438a8 // // 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 __fastcall cocos2d::CCIMEDispatcher::removeDelegate( cocos2d::CCIMEDispatcher *this, struct cocos2d::CCIMEDelegate *a2) { cocos2d::CCIMEDispatcher::Impl *m_pImpl; // r8 void **v4; // rax struct cocos2d::CCIMEDelegate *v5; // rcx cocos2d::CCIMEDelegate_vtbl *v6; // rax cocos2d::CCIMEDispatcher::Impl *v7; // r8 if ( a2 ) { m_pImpl = this->m_pImpl; if ( this->m_pImpl ) { v4 = *(void ***)m_pImpl; v5 = **(struct cocos2d::CCIMEDelegate ***)m_pImpl; if ( v5 != *(struct cocos2d::CCIMEDelegate **)m_pImpl ) { while ( a2 != (struct cocos2d::CCIMEDelegate *)v5[2].__vftable ) { v5 = (struct cocos2d::CCIMEDelegate *)v5->__vftable; if ( v5 == (struct cocos2d::CCIMEDelegate *)v4 ) return; } if ( v4 != (void **)v5 ) { v6 = *((cocos2d::CCIMEDelegate_vtbl **)m_pImpl + 2); if ( v6 ) { if ( v5[2].__vftable == v6 ) *((_QWORD *)m_pImpl + 2) = 0; } v7 = this->m_pImpl; v5[1].~CCIMEDelegate = (void (__stdcall *)(cocos2d::CCIMEDelegate *__hidden))v5->__vftable; v5->attachWithIME = (bool (__stdcall *)(cocos2d::CCIMEDelegate *__hidden))v5[1].__vftable; --*((_QWORD *)v7 + 1); j_j_free_0(v5); } } } } }