// // ColorChannelSprite::updateCopyLabel from 0x9f86bc to 0x9f888c (464 bytes) // // 3 xrefs: // > ColorChannelSprite::updateValues @ 0x9f8b80 // > ColorChannelSprite::updateValues @ 0x9f8c34 // > @ 0x104878 // // 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:59:15 +0000 // __int64 __fastcall ColorChannelSprite::updateCopyLabel(ColorChannelSprite *this, char *a2, const char *a3) { int v4; // w21 int v5; // w22 __int64 v6; // x0 __int64 CString; // x0 __int64 *v9; // x1 cocos2d::CCString *v10; // x0 __int64 v11; // x0 __int64 v12; // x24 void (__fastcall *v13)(__int64, _BYTE *); // x25 __int64 v14; // x0 float v15; // [xsp+50h] [xbp+50h] _BYTE v16[8]; // [xsp+70h] [xbp+70h] BYREF v4 = (int)a2; v5 = (unsigned __int8)a3; v6 = *((_QWORD *)this + 75); if ( (_DWORD)a2 ) { if ( !v6 ) { v11 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", a3); *((_QWORD *)this + 75) = v11; (*(void (__fastcall **)(ColorChannelSprite *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v11, 1); v12 = *((_QWORD *)this + 75); v13 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v12 + 184LL); v15 = *(float *)(*(__int64 (__fastcall **)(ColorChannelSprite *))(*(_QWORD *)this + 328LL))(this) * 0.5; v14 = (*(__int64 (__fastcall **)(ColorChannelSprite *))(*(_QWORD *)this + 328LL))(this); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v15, (float)(*(float *)(v14 + 4) * 0.5) + 3.0); v13(v12, v16); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 75) + 160LL))(*((_QWORD *)this + 75), 0.5); } if ( v4 <= 999 ) { v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)v4); CString = cocos2d::CCString::getCString(v10); } else { CString = GJSpecialColorSelect::textForColorIdx((GJSpecialColorSelect *)(unsigned int)v4, (int)a2); } (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 75) + 928LL))(*((_QWORD *)this + 75), CString); cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 75), 28.0, 0.5, 0.0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 75) + 344LL))(*((_QWORD *)this + 75), 1); v9 = (__int64 *)&unk_116D738; if ( !v5 ) v9 = &qword_116D740; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 75) + 1072LL))(*((_QWORD *)this + 75), v9); } else if ( v6 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source