//
// cocos2d::CCIMEDispatcher::sharedDispatcher from 0x1004bbd10 to 0x1004bbd8f (127 bytes)
//
// 4 xrefs:
// > -[EAGLView keyDownExec:] @ 0x100666cd7
// > -[EAGLView keyDownExec:] @ 0x100666de5
// > -[EAGLView keyDownExec:] @ 0x100666e92
// > -[EAGLView keyDownExec:] @ 0x100666edb
//
// 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()
{
_QWORD *v1; // rax
if ( !(_BYTE)byte_1009A1EE0 && __cxa_guard_acquire(&byte_1009A1EE0) )
{
v1 = operator new(0x20u);
*v1 = v1;
v1[1] = v1;
v1[2] = 0;
qword_1009A1ED8 = (__int64)v1;
v1[3] = 0;
__cxa_atexit(func, &qword_1009A1ED8, (void *)&_mh_execute_header);
__cxa_guard_release(&byte_1009A1EE0);
}
return (cocos2d::CCIMEDispatcher *)&qword_1009A1ED8;
}