//
// cocos2d::CCIMEDispatcher::sharedDispatcher from 0x10026b828 to 0x10026b8a8 (128 bytes)
//
// 8 xrefs:
// > cocos2d::CCIMEDelegate::CCIMEDelegate @ 0x10026b804
// > cocos2d::CCIMEDelegate::dCCIMEDelegate @ 0x10026b944
// > cocos2d::CCIMEDelegate::attachWithIME @ 0x10026b9ec
// > cocos2d::CCIMEDelegate::detachWithIME @ 0x10026baf0
// > -[EAGLView insertText:] @ 0x10049d7e8
// > -[EAGLView deleteBackward] @ 0x10049d840
// > -[EAGLView unmarkText] @ 0x10049d990
// > -[EAGLView onUIKeyboardNotification:] @ 0x10049de64
//
// This function is hookable on this platform (idp: arm, 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:01:44 +0000
//
__int64 *cocos2d::CCIMEDispatcher::sharedDispatcher()
{
unsigned __int8 v0; // w8
_QWORD *v2; // x0
v0 = atomic_load((unsigned __int8 *)&byte_1009F5698);
if ( (v0 & 1) == 0 && __cxa_guard_acquire((__guard *)&byte_1009F5698) )
{
v2 = operator new(0x20u);
*v2 = v2;
v2[1] = v2;
v2[2] = 0;
v2[3] = 0;
qword_1009F5690 = (__int64)v2;
__cxa_atexit(
(void (__fastcall *)(void *))j_cocos2d::CCIMEDispatcher::dCCIMEDispatcher,
&qword_1009F5690,
(void *)&_mh_execute_header);
__cxa_guard_release((__guard *)&byte_1009F5698);
}
return &qword_1009F5690;
}