//
// cocos2d::CCIMEDispatcher::sharedDispatcher from 0x7fe578 to 0x7fe5b6 (62 bytes)
//
// 9 xrefs:
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInsertText @ 0x7ed614
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeDeleteBackward @ 0x7ed65a
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeGetContentText @ 0x7ed6a0
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeTextClosed @ 0x7ed6c6
// > Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeKeyboardWillShow @ 0x7ed7b2
// > cocos2d::CCIMEDelegate::detachWithIME @ 0x7fe5cc
// > cocos2d::CCIMEDelegate::attachWithIME @ 0x7fe5de
// > cocos2d::CCIMEDelegate::~CCIMEDelegate @ 0x7fe5fa
// > cocos2d::CCIMEDelegate::CCIMEDelegate @ 0x7fe62e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:17 +0000
//
void *__fastcall cocos2d::CCIMEDispatcher::sharedDispatcher(cocos2d::CCIMEDispatcher *this)
{
char v1; // r3
v1 = byte_D310C0;
__dmb(0xFu);
if ( (v1 & 1) == 0 && _cxa_guard_acquire((__guard *)&byte_D310C0) )
{
cocos2d::CCIMEDispatcher::CCIMEDispatcher((cocos2d::CCIMEDispatcher *)&unk_D310C4);
_cxa_guard_release((__guard *)&byte_D310C0);
_aeabi_atexit();
}
return &unk_D310C4;
}