//
// cocos2d::CCIMEDispatcher::dispatchInsertText from 0x1800b4ae0 to 0x1800b4b03 (35 bytes)
//
// 6 xrefs:
// > cocos2d::CCEGLView::onGLFWCharCallback @ 0x180077598
// > sub_1800775B0 @ 0x1800775f0
// > cocos2d::CCEGLView::performSafeClipboardPaste @ 0x180077f03
// > cocos2d::CCEGLView::performSafeClipboardPaste @ 0x180077fdf
// > cocos2d::CCEGLView::pumpRawInput @ 0x18007844d
// > ??> @ 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
//
__int64 __fastcall cocos2d::CCIMEDispatcher::dispatchInsertText(
cocos2d::CCIMEDispatcher *this,
const char *a2,
__int64 a3,
__int64 a4)
{
cocos2d::CCIMEDispatcher::Impl *m_pImpl; // rcx
__int64 v5; // rcx
__int64 result; // rax
m_pImpl = this->m_pImpl;
if ( m_pImpl && a2 && (int)a3 > 0 )
{
v5 = *((_QWORD *)m_pImpl + 2);
if ( v5 )
return (*(__int64 (__fastcall **)(__int64, const char *, __int64, __int64))(*(_QWORD *)v5 + 56LL))(v5, a2, a3, a4);
}
return result;
}