// // cocos2d::CCIMEDispatcher::addDelegate from 0x1800b4830 to 0x1800b48d8 (168 bytes) // // 3 xrefs: // > cocos2d::CCIMEDelegate::CCIMEDelegate @ 0x1800b45fe // > @ 0x1801438a8 // > @ 0x1801b891c // // 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 // // Hidden C++ exception states: #wind=1 void __fastcall cocos2d::CCIMEDispatcher::addDelegate( cocos2d::CCIMEDispatcher *this, struct cocos2d::CCIMEDelegate *a2) { cocos2d::CCIMEDispatcher::Impl *m_pImpl; // rdi __int64 **v4; // r8 __int64 *v5; // rsi __int64 **v6; // rax __int64 **v7; // rax __int64 *v8; // rcx if ( a2 ) { m_pImpl = this->m_pImpl; if ( this->m_pImpl ) { v4 = *(__int64 ***)m_pImpl; v5 = **(__int64 ***)m_pImpl; v6 = (__int64 **)v5; if ( v5 == *(__int64 **)m_pImpl ) goto LABEL_8; while ( a2 != (struct cocos2d::CCIMEDelegate *)v6[2] ) { v6 = (__int64 **)*v6; if ( v6 == v4 ) goto LABEL_8; } if ( v4 == v6 ) { LABEL_8: if ( *((_QWORD *)m_pImpl + 1) == 0xAAAAAAAAAAAAAAALL ) std::_Xlength_error("list too long"); v7 = (__int64 **)operator new(0x18u); v7[2] = (__int64 *)a2; ++*((_QWORD *)m_pImpl + 1); v8 = (__int64 *)v5[1]; *v7 = v5; v7[1] = v8; v5[1] = (__int64)v7; *v8 = (__int64)v7; } } } }