//
// sub_1800775B0 from 0x1800775b0 to 0x1800775fa (74 bytes)
//
// 2 xrefs:
// > cocos2d::CCEGLView::setupWindow @ 0x180078b10
// > ??> @ 0x1801b4974
//
// 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 sub_1800775B0(__int64 a1, int a2)
{
cocos2d::CCIMEDispatcher *v2; // rax
cocos2d::CCIMEDispatcher *v3; // rax
int v4; // [rsp+40h] [rbp+18h] BYREF
if ( qword_1801A8500 )
{
v4 = a2;
if ( a2 == 8 )
{
v2 = cocos2d::CCIMEDispatcher::sharedDispatcher();
cocos2d::CCIMEDispatcher::dispatchDeleteBackward(v2);
}
else
{
v3 = cocos2d::CCIMEDispatcher::sharedDispatcher();
cocos2d::CCIMEDispatcher::dispatchInsertText(v3, (const char *)&v4, 1, KEY_Unknown);
}
}
}