//
// cocos2d::CCIMEDispatcher::dispatchInsertText from 0x1800b8810 to 0x1800b8833 (35 bytes)
//
// 5 xrefs:
// > cocos2d::CCEGLView::onGLFWCharCallback @ 0x18007a34e
// > cocos2d::CCEGLView::performSafeClipboardPaste @ 0x18007ab61
// > cocos2d::CCEGLView::performSafeClipboardPaste @ 0x18007ac51
// > cocos2d::CCEGLView::pumpRawInput @ 0x18007b218
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:22:22 +0000
//
__int64 __fastcall cocos2d::CCIMEDispatcher::dispatchInsertText(__int64 *a1, __int64 a2, int a3)
{
__int64 v3; // rcx
__int64 v4; // rcx
__int64 result; // rax
v3 = *a1;
if ( v3 && a2 && a3 > 0 )
{
v4 = *(_QWORD *)(v3 + 16);
if ( v4 )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 56LL))(v4);
}
return result;
}