// // CCTextInputNode::moveCursorVertical from 0x6c1c60 to 0x6c1ea4 (580 bytes) // // 2 xrefs: // > CCTextInputNode::onTextFieldInsertText @ 0x6c4fd4 // > @ 0x675d0 // // 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:19 +0000 // __int64 __fastcall CCTextInputNode::moveCursorVertical(CCTextInputNode *this, int a2) { __int64 v4; // x0 __int64 v5; // x0 cocos2d::CCArray *v6; // x20 __int64 v7; // x0 __int64 v8; // x24 __int64 v9; // x19 float v10; // s9 signed int v11; // w19 float v12; // s8 signed int v13; // w25 cocos2d::CCNode *v14; // x26 const cocos2d::CCPoint *v15; // x0 float v16; // s11 float v17; // s10 float v18; // s9 __int64 v19; // x0 float v20; // s0 float v21; // s0 float v22; // s8 __int64 v23; // x0 float v24; // s0 signed int v26; // [xsp+78h] [xbp+78h] __int64 v27; // [xsp+88h] [xbp+88h] BYREF float v28; // [xsp+90h] [xbp+90h] BYREF _BYTE v29[16]; // [xsp+98h] [xbp+98h] BYREF v4 = *((_QWORD *)this + 77); if ( v4 ) { if ( *((_QWORD *)this + 71) ) { v5 = *(_QWORD *)(v4 + 608); v6 = *(cocos2d::CCArray **)(v5 + 648); if ( v6 ) { if ( (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(v5 + 648)) > 1 ) { v7 = cocos2d::CCArray::objectAtIndex(v6, 0); v8 = v7; if ( v7 ) { v9 = v7; v10 = 1.0; do { v10 = v10 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v9 + 152LL))(v9); v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 512LL))(v9); } while ( v9 ); } else { v10 = 1.0; } v11 = 0; v12 = -1.0; v13 = 0; v14 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 71) + 512LL))(*((_QWORD *)this + 71)); v15 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 71) + 192LL))(*((_QWORD *)this + 71)); cocos2d::CCNode::convertToWorldSpace(&v27, v14, v15); v16 = *((float *)&v27 + 1); v17 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 71) + 304LL))(*((_QWORD *)this + 71)) + 4); v18 = v16 + (float)((float)((float)(0.5 - v17) * *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8) + 4)) * v10); if ( (int)cocos2d::CCArray::count(v6) > 0 ) { do { v19 = cocos2d::CCArray::objectAtIndex(v6, v11); sub_6B77E8(v19); v21 = vabds_f32(v20, v18); if ( v12 < 0.0 || v12 > v21 ) { v12 = v21; v13 = v11; } ++v11; } while ( v11 < (int)cocos2d::CCArray::count(v6) ); } v26 = a2 + v13; if ( a2 + v13 >= 0 && v26 < (int)cocos2d::CCArray::count(v6) ) { v22 = *((float *)this + 162); if ( v22 < 0.0 ) v22 = *(float *)&v27; v23 = cocos2d::CCArray::objectAtIndex(v6, v26); sub_6B77E8(v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, v22, v24); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v29, (const cocos2d::CCRect *)&unk_155C0E8); CCTextInputNode::updateCursorPosition((__int64)this, &v28); *((float *)this + 162) = v22; } } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source