//
// sub_1400493F0 from 0x1400493f0 to 0x1400494e2 (242 bytes)
//
// 4 xrefs:
// > sub_14005161C @ 0x140051623
// > sub_140051628 @ 0x14005162f
// > ??> @ 0x140531f20
// > ??> @ 0x1406c4c38
//
// 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
//
// Hidden C++ exception states: #wind=1
cocos2d::CCIMEDelegate *__fastcall sub_1400493F0(cocos2d::CCIMEDelegate *Block, char a2)
{
Block->__vftable = (cocos2d::CCIMEDelegate_vtbl *)&CCTextInputNode::`vftable';
Block[40].__vftable = (cocos2d::CCIMEDelegate_vtbl *)&CCTextInputNode::`vftable';
Block[41].__vftable = (cocos2d::CCIMEDelegate_vtbl *)&CCTextInputNode::`vftable';
Block[42].__vftable = (cocos2d::CCIMEDelegate_vtbl *)&CCTextInputNode::`vftable';
Block[43].__vftable = (cocos2d::CCIMEDelegate_vtbl *)&CCTextInputNode::`vftable';
Block[44].__vftable = (cocos2d::CCIMEDelegate_vtbl *)&CCTextInputNode::`vftable';
Block[51].__vftable = (cocos2d::CCIMEDelegate_vtbl *)&CCTextInputNode::`vftable';
Block[52].__vftable = (cocos2d::CCIMEDelegate_vtbl *)&CCTextInputNode::`vftable';
if ( BYTE4(Block[58].__vftable) )
(*((void (__fastcall **)(void (__fastcall **)(cocos2d::CCIMEDelegate *__hidden, cocos2d::CCIMEKeyboardNotificationInfo *)))Block[69].__vftable[5].keyboardDidHide
+ 2))(&Block[69].__vftable[5].keyboardDidHide);
sub_14003A830((__int64)&Block[61]);
sub_14003A830((__int64)&Block[54]);
cocos2d::CCIMEDelegate::~CCIMEDelegate(Block + 51);
cocos2d::CCLayer::~CCLayer((cocos2d::CCLayer *)Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}