// // StatsCell::loadFromObject from 0x73c6ac to 0x73c9ac (768 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x74d5a0 // > @ 0x447b8 // // 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:52:41 +0000 // __int64 __fastcall StatsCell::loadFromObject(StatsCell *this, StatsObject *a2) { unsigned int v4; // w21 cocos2d::CCLabelBMFont *TitleFromKey; // x0 const char *v6; // x2 __int64 v7; // x20 float v8; // s0 cocos2d::CCString *v9; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v11; // x2 __int64 v12; // x19 float v13; // s0 void (__fastcall *v14)(__int64); // x21 float v15; // s8 void (__fastcall *v16)(__int64, float); // x24 void (__fastcall *v17)(__int64, _BYTE *); // x24 void (__fastcall *v18)(__int64, _BYTE *); // x24 void (__fastcall *v19)(__int64, _BYTE *); // x24 void (__fastcall *v20)(__int64, _BYTE *); // x20 void (__fastcall *v22)(__int64); // x21 void (__fastcall *v23)(__int64); // x24 _BYTE v24[8]; // [xsp+50h] [xbp+50h] BYREF (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 66) + 1168LL))(*((_QWORD *)this + 66), 0xFFFFFFFFLL); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1); v4 = *((_DWORD *)a2 + 16); TitleFromKey = (cocos2d::CCLabelBMFont *)StatsCell::getTitleFromKey(this, *((char **)a2 + 7)); v7 = cocos2d::CCLabelBMFont::create(TitleFromKey, "goldFont.fnt", v6); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v7); v8 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 328LL))(v7); if ( v8 > 200.0 ) { v23 = *(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 160LL); if ( (float)(200.0 / *(float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 328LL))(v7, v8)) < 1.0 ) (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 328LL))(v7); v23(v7); } v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v4); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v9); v12 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v11); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v12); v13 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 328LL))(v12); if ( v13 > 100.0 ) { v22 = *(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 160LL); if ( (float)(100.0 / *(float *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 328LL))(v12, v13)) < 1.0 ) (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 328LL))(v12); v22(v12); } v14 = *(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 160LL); v15 = 0.7; if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v7 + 168LL))(v7) <= 0.7 ) (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 168LL))(v7, 0.7); v14(v7); v16 = *(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 160LL); if ( (*(float (__fastcall **)(__int64))(*(_QWORD *)v12 + 168LL))(v12) <= 0.7 ) v15 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v12 + 168LL))(v12); v16(v12, v15); v17 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 0.0, 0.5); v17(v7, v24); v18 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v12 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 1.0, 0.5); v18(v12, v24); v19 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 20.0, (float)(*((float *)this + 131) * 0.5) + -1.0); v19(v7, v24); v20 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v12 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 330.0, (float)(*((float *)this + 131) * 0.5) + -1.0); v20(v12, v24); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source