//
// cocos2d::CCIMEDispatcher::sharedDispatcher from 0x1001d3858 to 0x1001d38d8 (128 bytes)
//
// 8 xrefs:
// > cocos2d::CCIMEDelegate::CCIMEDelegate @ 0x1001d3834
// > cocos2d::CCIMEDelegate::dCCIMEDelegate @ 0x1001d3974
// > cocos2d::CCIMEDelegate::attachWithIME @ 0x1001d3a1c
// > cocos2d::CCIMEDelegate::detachWithIME @ 0x1001d3b20
// > -[EAGLView insertText:] @ 0x10041b874
// > -[EAGLView deleteBackward] @ 0x10041b8cc
// > -[EAGLView unmarkText] @ 0x10041b9cc
// > -[EAGLView onUIKeyboardNotification:] @ 0x10041bea0
//
// 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
//
cocos2d::CCIMEDispatcher *__fastcall cocos2d::CCIMEDispatcher::sharedDispatcher()
{
unsigned __int8 v0; // w8
_QWORD *v2; // x0
v0 = atomic_load((unsigned __int8 *)&byte_10086C818);
if ( (v0 & 1) == 0 && __cxa_guard_acquire((__guard *)&byte_10086C818) )
{
v2 = operator new(0x20u);
*v2 = v2;
v2[1] = v2;
v2[2] = 0;
v2[3] = 0;
qword_10086C810 = (__int64)v2;
__cxa_atexit(
(void (__fastcall *)(void *))j_cocos2d::CCIMEDispatcher::dCCIMEDispatcher,
&qword_10086C810,
(void *)&_mh_execute_header);
__cxa_guard_release((__guard *)&byte_10086C818);
}
return (cocos2d::CCIMEDispatcher *)&qword_10086C810;
}