// // CCTextInputNode::scrollToCursor from 0x3dc72c to 0x3dc7ee (194 bytes) // // 2 xrefs: // > CCTextInputNode::setTextScrollViewSize @ 0x3dc864 // > CCTextInputNode::updateBlinkLabelToChar @ 0x3e1f32 // // 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:46:48 +0000 // float *__fastcall CCTextInputNode::scrollToCursor(float *this) { float *v1; // r4 float v2; // s16 float v3; // s16 float v4; // s17 float v5; // s16 float v6; // s15 float v7; // s15 _BYTE v8[4]; // [sp+4h] [bp-10h] BYREF float v9; // [sp+8h] [bp-Ch] v1 = this; if ( *((_DWORD *)this + 113) ) { if ( *((_DWORD *)this + 103) ) { this = *((float **)this + 109); if ( this ) { v2 = *(this + 136); v3 = v2 * COERCE_FLOAT((*(int (__fastcall **)(float *))(*(_DWORD *)this + 84))(this)); v4 = (*(float (__fastcall **)(_DWORD))(**((_DWORD **)v1 + 103) + 120))(*((_DWORD *)v1 + 103)) + 2.0; v5 = (float)(v4 - v3) - 4.0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v8, (const cocos2d::CCSize *)(*((_DWORD *)v1 + 113) + 324)); this = *((float **)v1 + 113); v6 = -*(this + 84); if ( v4 <= v6 ) { if ( v5 >= (float)(v6 - v9) ) return this; v7 = (float)-v5 - v9; } else { v7 = -v4; } return (float *)ScrollableContentLayer::scrollTo((ScrollableContentLayer *)this, v7); } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source