//
// cocos2d::CCIMEDispatcher::sharedDispatcher from 0xda0ee0 to 0xda0f60 (128 bytes)
//
// 10 xrefs:
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInsertText @ 0xd8074c
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeDeleteBackward @ 0xd807b0
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeGetContentText @ 0xd80814
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeTextClosed @ 0xd80868
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeKeyboardWillShow @ 0xd80990
// > cocos2d::CCIMEDelegate::detachWithIME @ 0xda0f6c
// > cocos2d::CCIMEDelegate::attachWithIME @ 0xda0f88
// > cocos2d::CCIMEDelegate::~CCIMEDelegate @ 0xda0fb8
// > cocos2d::CCIMEDelegate::CCIMEDelegate @ 0xda100c
// > ??> @ 0xe21b0
//
// 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 13:08:29 +0000
//
void *__fastcall cocos2d::CCIMEDispatcher::sharedDispatcher(cocos2d::CCIMEDispatcher *this)
{
unsigned __int8 v1; // w0
v1 = atomic_load((unsigned __int8 *)byte_1562170);
if ( (v1 & 1) != 0 || !_cxa_guard_acquire(byte_1562170) )
return &unk_1562178;
cocos2d::CCIMEDispatcher::CCIMEDispatcher((cocos2d::CCIMEDispatcher *)&unk_1562178);
_cxa_guard_release(byte_1562170);
__cxa_atexit((void (*)(void *))cocos2d::CCIMEDispatcher::~CCIMEDispatcher, &unk_1562178, &unk_1548000);
return &unk_1562178;
}