//
// cocos2d::CCTextFieldTTF::attachWithIME from 0xda1dc0 to 0xda1e1c (92 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'cocos2d::CCTextFieldTTF::attachWithIME @ 0xda1e20
// > ??> @ 0x91c60
// > ??> @ 0x1530048
//
// 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:30 +0000
//
__int64 __fastcall cocos2d::CCTextFieldTTF::attachWithIME(cocos2d::CCTextFieldTTF *this)
{
cocos2d::CCDirector *v1; // x0
unsigned int v2; // w19
__int64 v4; // x0
v1 = (cocos2d::CCDirector *)(unsigned __int8)cocos2d::CCIMEDelegate::attachWithIME((cocos2d::CCTextFieldTTF *)((char *)this + 696));
v2 = (unsigned __int8)v1;
if ( !(_BYTE)v1 )
return v2;
v4 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v1) + 192);
if ( !v4 )
return v2;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 40LL))(v4, 1);
return v2;
}