// // cocos2d::CCIMEDispatcher::attachDelegateWithIME from 0x1004bc0e0 to 0x1004bc181 (161 bytes) // // 0 xrefs: // // 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 // bool __fastcall cocos2d::CCIMEDispatcher::attachDelegateWithIME( cocos2d::CCIMEDispatcher *a1, cocos2d::CCIMEDelegate *a2) { cocos2d::CCIMEDispatcher::Impl *m_pImpl; // rax cocos2d::CCIMEDispatcher::Impl *v3; // rbx __int64 v5; // rdi __int64 v6; // rdi m_pImpl = a1->m_pImpl; if ( a1->m_pImpl == nullptr || a2 == nullptr ) return 0; v3 = a1->m_pImpl; do { v3 = *((cocos2d::CCIMEDispatcher::Impl **)v3 + 1); if ( v3 == m_pImpl ) return 0; } while ( *((cocos2d::CCIMEDelegate **)v3 + 2) != a2 ); v5 = *((_QWORD *)m_pImpl + 3); if ( v5 ) { if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v5 + 48LL))(v5) && ((unsigned __int8 (__fastcall *)(cocos2d::CCIMEDelegate *))a2->canAttachWithIME)(a2) ) { v6 = *((_QWORD *)a1->m_pImpl + 3); *((_QWORD *)a1->m_pImpl + 3) = 0; (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 56LL))(v6); LABEL_11: *((_QWORD *)a1->m_pImpl + 3) = *((_QWORD *)v3 + 2); ((void (__fastcall *)(cocos2d::CCIMEDelegate *))a2->didAttachWithIME)(a2); return 1; } } else if ( ((unsigned __int8 (__fastcall *)(cocos2d::CCIMEDelegate *))a2->canAttachWithIME)(a2) ) { goto LABEL_11; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source