//
// cocos2d::CCTextFieldTTF::attachWithIME from 0x1002688e0 to 0x10026891d (61 bytes)
//
// 1 xrefs:
// > ??> @ 0x100af6d20
//
// This function is hookable on this platform (idp: pc, 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 12:27:34 +0000
//
__int64 __fastcall cocos2d::CCTextFieldTTF::attachWithIME(__int64 a1, __int64 a2)
{
__int64 v2; // rdi
unsigned int v3; // ebx
__int64 v4; // rdi
v2 = a1 + 696;
v3 = cocos2d::CCIMEDelegate::attachWithIME(v2);
if ( (_BYTE)v3 )
{
v4 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector(v2, a2) + 192);
if ( v4 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 40LL))(v4, 1);
}
return v3;
}