//
// cocos2d::CCTextFieldTTF::attachWithIME from 0x1800b5140 to 0x1800b5175 (53 bytes)
//
// 3 xrefs:
// > ??> @ 0x180106cb0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8a48
//
// 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
//
__int64 __fastcall cocos2d::CCTextFieldTTF::attachWithIME(cocos2d::CCTextFieldTTF *this)
{
__int64 result; // rax
unsigned __int8 v2; // bl
__int64 v3; // rdx
cocos2d::CCEGLView *m_pobOpenGLView; // rcx
result = cocos2d::CCIMEDelegate::attachWithIME((cocos2d::CCIMEDelegate *)this);
v2 = result;
if ( (_BYTE)result )
{
m_pobOpenGLView = cocos2d::CCDirector::sharedDirector()->m_pobOpenGLView;
if ( m_pobOpenGLView )
{
LOBYTE(v3) = 1;
((void (__fastcall *)(cocos2d::CCEGLView *, __int64))m_pobOpenGLView->setIMEKeyboardState)(m_pobOpenGLView, v3);
}
return v2;
}
return result;
}