// // CCTextInputNode::enableTextScroll from 0x6c396c to 0x6c3bb0 (580 bytes) // // 4 xrefs: // > SetTextPopup::init @ 0xa2fee4 // > NewThreadPopup::init @ 0xc7e288 // > ThreadViewPopup::init @ 0xc877e0 // > @ 0xe7b98 // // 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::enableTextScroll(CCTextInputNode *this) { const cocos2d::CCSize *v3; // x0 __int64 v4; // x23 float v5; // s0 void (__fastcall *v6)(__int64, _BYTE *); // x24 __int64 v7; // x23 void (__fastcall *v8)(__int64, _BYTE *); // x24 __int64 v9; // x23 void (__fastcall *v10)(__int64, _BYTE *); // x24 const char *v11; // x0 size_t v12; // x0 char *v13; // [xsp+48h] [xbp+48h] _DWORD v14[2]; // [xsp+50h] [xbp+50h] BYREF _BYTE v15[8]; // [xsp+58h] [xbp+58h] BYREF __int64 v16[2]; // [xsp+60h] [xbp+60h] BYREF void *v17; // [xsp+70h] [xbp+70h] if ( !*((_QWORD *)this + 80) ) { if ( *((_QWORD *)this + 77) ) { v3 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v14, v3); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v15, (const cocos2d::CCSize *)v14); v4 = ScrollableContentLayer::create(v15); v5 = *(float *)v14; *((_QWORD *)this + 80) = v4; v6 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (float)-v5 * 0.5, (float)-*(float *)&v14[1] * 0.5); v6(v4, v15); (*(void (__fastcall **)(CCTextInputNode *, _QWORD, __int64))(*(_QWORD *)this + 464LL))( this, *((_QWORD *)this + 80), 5); cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 77)); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 77) + 528LL))(*((_QWORD *)this + 77), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 80) + 416LL) + 456LL))( *(_QWORD *)(*((_QWORD *)this + 80) + 416LL), *((_QWORD *)this + 77)); cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 77)); v7 = *((_QWORD *)this + 77); v8 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 0.0, 1.0); v8(v7, v15); v9 = *((_QWORD *)this + 77); v10 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 4.0, -2.0); v10(v9, v15); cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 71)); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 71) + 528LL))(*((_QWORD *)this + 71), 0); (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(*((_QWORD *)this + 80) + 416LL) + 464LL))( *(_QWORD *)(*((_QWORD *)this + 80) + 416LL), *((_QWORD *)this + 71), 10); cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 71)); v11 = (const char *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 72) + 1248LL))(*((_QWORD *)this + 72)); v16[0] = 0; v13 = (char *)v11; v16[1] = 0; v17 = nullptr; v12 = strlen(v11); std::string::__init(v16, v13, v12); CCTextInputNode::updateLabel((__int64)this, (__int64)v16); if ( (v16[0] & 1) != 0 ) operator delete(v17); } } return _stack_chk_guard; }