//
// cocos2d::CCTextFieldTTF::attachWithIME from 0x1800b8e90 to 0x1800b8ec8 (56 bytes)
//
// 3 xrefs:
// > ??> @ 0x18010d398
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2d60
//
// 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 11:22:22 +0000
//
__int64 __fastcall cocos2d::CCTextFieldTTF::attachWithIME(cocos2d::CCTextFieldTTF *this)
{
__int64 result; // rax
unsigned __int8 v2; // bl
__int64 *v3; // rcx
__int64 v4; // rdx
result = cocos2d::CCIMEDelegate::attachWithIME(this);
v2 = result;
if ( (_BYTE)result )
{
v3 = *((__int64 **)cocos2d::CCDirector::sharedDirector() + 24);
if ( v3 )
{
v4 = *v3;
LOBYTE(v4) = 1;
(*(void (__fastcall **)(__int64 *, __int64))(*v3 + 32))(v3, v4);
}
return v2;
}
return result;
}