// // GJScaleControl::updateLabelX from 0xbcf748 to 0xbcf878 (304 bytes) // // 5 xrefs: // > GJScaleControl::ccTouchMoved @ 0xbcfc14 // > GJScaleControl::onApplyScale @ 0xbcffc8 // > GJScaleControl::onApplyScale @ 0xbd0050 // > GJScaleControl::loadValues @ 0xbd33cc // > @ 0xb4460 // // 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 13:03:36 +0000 // __int64 __fastcall GJScaleControl::updateLabelX(GJScaleControl *this, float a2, const char *a3) { __int64 v3; // x20 cocos2d::CCString *v5; // x0 const char *CString; // x24 size_t v7; // x0 size_t v8; // x21 unsigned __int64 v9; // x0 char *v10; // x3 __int64 v11; // [xsp+40h] [xbp+40h] BYREF size_t v12; // [xsp+48h] [xbp+48h] void *v13; // [xsp+50h] [xbp+50h] v3 = *((_QWORD *)this + 61); if ( !v3 || *(_BYTE *)(v3 + 460) ) return _stack_chk_guard; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.2f", a3, a2); v11 = 0; CString = (const char *)cocos2d::CCString::getCString(v5); v12 = 0; v13 = nullptr; v7 = strlen(CString); v8 = v7; if ( v7 > 0xFFFFFFFFFFFFFFEFLL ) sub_62FAFC(); if ( v7 > 0x16 ) { v9 = (v7 + 16) & 0xFFFFFFFFFFFFFFF0LL; v11 = v9 | 1; v10 = (char *)operator new(v9); v13 = v10; v12 = v8; LABEL_7: v10 = (char *)memcpy(v10, CString, v8); goto LABEL_8; } LOBYTE(v11) = 2 * v7; v10 = (char *)&v11 + 1; if ( v7 ) goto LABEL_7; LABEL_8: v10[v8] = 0; CCTextInputNode::setString((_QWORD *)v3, (char *)&v11); if ( (v11 & 1) != 0 ) operator delete(v13); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source