//
// cocos2d::CCTextFieldTTF::detachWithIME from 0x1800b5540 to 0x1800b5575 (53 bytes)
//
// 3 xrefs:
// > ??> @ 0x180106cb8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8a78
//
// 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
//
char __fastcall cocos2d::CCTextFieldTTF::detachWithIME(cocos2d::CCTextFieldTTF *this)
{
char result; // al
char v2; // bl
cocos2d::CCEGLView *m_pobOpenGLView; // rcx
result = cocos2d::CCIMEDelegate::detachWithIME((cocos2d::CCIMEDelegate *)this);
v2 = result;
if ( result )
{
m_pobOpenGLView = cocos2d::CCDirector::sharedDirector()->m_pobOpenGLView;
if ( m_pobOpenGLView )
((void (__fastcall *)(cocos2d::CCEGLView *, _QWORD))m_pobOpenGLView->setIMEKeyboardState)(m_pobOpenGLView, 0);
return v2;
}
return result;
}