// // CCTextInputNode::onTextFieldAttachWithIME from 0x3e364c to 0x3e3806 (442 bytes) // // 1 xrefs: // > `non-virtual thunk to'CCTextInputNode::onTextFieldAttachWithIME @ 0x3e3824 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:47:03 +0000 // int __fastcall CCTextInputNode::onTextFieldAttachWithIME(CCTextInputNode *this, cocos2d::CCTextFieldTTF *a2) { int v3; // r0 const char *v4; // r0 const char *v5; // r0 const char *v6; // r9 size_t v7; // r0 _BOOL4 v8; // r6 int v9; // r1 int v10; // r2 int v11; // r0 int v12; // r6 cocos2d::CCDirector *v13; // r0 const cocos2d::CCPoint *v14; // r0 float v15; // s16 float v16; // s15 int v17; // r0 _BYTE v19[4]; // [sp+4h] [bp-40h] BYREF float v20; // [sp+8h] [bp-3Ch] float v21[2]; // [sp+Ch] [bp-38h] BYREF int v22[3]; // [sp+14h] [bp-30h] BYREF int v23; // [sp+20h] [bp-24h] BYREF int v24; // [sp+24h] [bp-20h] int v25; // [sp+28h] [bp-1Ch] _BYTE v26[4]; // [sp+2Ch] [bp-18h] BYREF float v27; // [sp+30h] [bp-14h] v3 = *((_DWORD *)this + 103); if ( v3 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 172))(v3, 1); *((_BYTE *)this + 344) = (unsigned __int8)&dword_0 + 1; *((_BYTE *)this + 484) = 0; CCTextInputNode::s_activeInput = (int)this; PlatformToolbox::setKeyboardState((PlatformToolbox *)((char *)&dword_0 + 1), (bool)a2); if ( *((_BYTE *)this + 324) ) { v4 = (const char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 104) + 624))(*((_DWORD *)this + 104)); if ( atof(v4) == 0.0 ) { v23 = 0; v24 = 0; v25 = 0; std::string::__init(&v23, &unk_B6B226, 0); CCTextInputNode::setString((int)this, (int)&v23); std::string::~string((int)&v23); } } v5 = (const char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 104) + 624))(*((_DWORD *)this + 104)); memset(v22, 0, sizeof(v22)); v6 = v5; v7 = strlen(v5); std::string::__init(v22, v6, v7); v23 = 0; v24 = 0; v25 = 0; std::string::__init(&v23, &unk_B6B226, 0); v8 = sub_3DC1CE((unsigned __int8 *)v22, (unsigned __int8 *)&v23); std::string::~string((int)&v23); std::string::~string((int)v22); if ( v8 ) { v11 = *((_DWORD *)this + 107); if ( v11 ) { (*(void (__fastcall **)(int, const char *))(*(_DWORD *)v11 + 464))(v11, " "); } else { v12 = *((_DWORD *)this + 109); if ( v12 ) { v23 = *((_DWORD *)this + 107); v24 = 0; v25 = 0; std::string::__init(&v23, " ", 1u); TextArea::setString(v12, &v23); std::string::~string((int)&v23); } } CCTextInputNode::updateBlinkLabel(this, v9, v10); } v13 = *((cocos2d::CCDirector **)this + 105); if ( v13 ) v13 = (cocos2d::CCDirector *)(*(int (__fastcall **)(cocos2d::CCDirector *, CCTextInputNode *))(*(_DWORD *)v13 + 4))( v13, this); if ( *((_BYTE *)this + 434) ) { cocos2d::CCDirector::sharedDirector(v13); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v19); v14 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 104) + 152))(*((_DWORD *)this + 104)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v14); sub_3DC220((cocos2d::CCRect *)v26, this, v21); v15 = v20; v27 = v27 - 4.0; v16 = COERCE_FLOAT(cocos2d::CCRect::getMinY((cocos2d::CCRect *)v26)); v17 = *((_DWORD *)this + 105); if ( v17 ) (*(void (__fastcall **)(int, CCTextInputNode *, _DWORD))(*(_DWORD *)v17 + 12))( v17, this, (float)(v15 * 0.5) - v16); } return 0; }