// // CCTextInputNode::onTextFieldAttachWithIME from 0x6c3f8c to 0x6c4270 (740 bytes) // // 3 xrefs: // > `non-virtual thunk to'CCTextInputNode::onTextFieldAttachWithIME @ 0x6c4274 // > @ 0x71710 // > @ 0x141ff30 // // 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 12:51:20 +0000 // __int64 __fastcall CCTextInputNode::onTextFieldAttachWithIME(CCTextInputNode *this, cocos2d::CCTextFieldTTF *a2) { __int64 v3; // x0 const char *v4; // x0 size_t v5; // x0 _BOOL4 v6; // w22 __int64 v7; // x0 __int64 v8; // x0 cocos2d::CCDirector *v10; // x0 const cocos2d::CCPoint *v11; // x0 float v12; // s8 float v13; // s0 __int64 v14; // x0 const char *v15; // x0 __int64 *v16; // x22 char *v17; // [xsp+48h] [xbp+48h] __int64 v18; // [xsp+58h] [xbp+58h] BYREF float v19; // [xsp+60h] [xbp+60h] BYREF _BYTE v20[4]; // [xsp+68h] [xbp+68h] BYREF float v21; // [xsp+6Ch] [xbp+6Ch] __int64 v22[2]; // [xsp+78h] [xbp+78h] BYREF void *v23; // [xsp+88h] [xbp+88h] __int64 v24; // [xsp+90h] [xbp+90h] BYREF __int64 v25; // [xsp+98h] [xbp+98h] void *v26; // [xsp+A0h] [xbp+A0h] v3 = *((_QWORD *)this + 71); if ( v3 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 344LL))(v3, 1); *((_BYTE *)this + 460) = (unsigned __int8)&dword_0 + 1; *((_BYTE *)this + 676) = 0; CCTextInputNode::s_activeInput = (__int64)this; PlatformToolbox::setKeyboardState((PlatformToolbox *)((char *)&dword_0 + 1)); if ( *((_BYTE *)this + 424) ) { v15 = (const char *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 72) + 1248LL))(*((_QWORD *)this + 72)); if ( atof(v15) == 0.0 ) { v24 = 0; v25 = 0; v26 = nullptr; std::string::__init(&v24, &byte_11B8890, 0); CCTextInputNode::setString(this, (char *)&v24); if ( (v24 & 1) != 0 ) operator delete(v26); } } v4 = (const char *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 72) + 1248LL))(*((_QWORD *)this + 72)); v22[0] = 0; v17 = (char *)v4; v22[1] = 0; v23 = nullptr; v5 = strlen(v4); std::string::__init(v22, v17, v5); v24 = 0; v25 = 0; v26 = nullptr; std::string::__init(&v24, &byte_11B8890, 0); v6 = sub_6B7640((__int64)v22, (__int64)&v24); if ( (v24 & 1) != 0 ) operator delete(v26); if ( (v22[0] & 1) != 0 ) operator delete(v23); if ( v6 ) { v7 = *((_QWORD *)this + 75); if ( v7 ) { (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v7 + 928LL))(v7, &byte_11E1A70); } else { v16 = *((__int64 **)this + 77); if ( v16 ) { v24 = 0; v25 = 0; v26 = nullptr; std::string::__init(&v24, &byte_11E1A70, 1u); TextArea::setString(v16, (char *)&v24); if ( (v24 & 1) != 0 ) operator delete(v26); } } CCTextInputNode::updateBlinkLabel(this); } v8 = *((_QWORD *)this + 73); if ( v8 ) (*(void (__fastcall **)(__int64, CCTextInputNode *))(*(_QWORD *)v8 + 8LL))(v8, this); if ( *((_BYTE *)this + 610) ) { v10 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)*((unsigned __int8 *)this + 610)); cocos2d::CCDirector::getWinSize(&v18, v10); v11 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 72) + 304LL))(*((_QWORD *)this + 72)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, v11); sub_6B76DC(this, &v19, (cocos2d::CCRect *)v20); v12 = *((float *)&v18 + 1); v21 = v21 - 4.0; cocos2d::CCRect::getMinY((cocos2d::CCRect *)v20); v14 = *((_QWORD *)this + 73); if ( v14 ) (*(void (__fastcall **)(__int64, CCTextInputNode *, float))(*(_QWORD *)v14 + 24LL))( v14, this, -(float)(v13 - (float)(v12 * 0.5))); } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source