// // GJLocalLevelScoreCell::loadFromScore from 0x74910c to 0x749414 (776 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x74d234 // > @ 0xf5f98 // // 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:50 +0000 // __int64 __fastcall GJLocalLevelScoreCell::loadFromScore(GJLocalLevelScoreCell *this, GJLocalScore *a2) { __int64 v4; // x0 const char *v5; // x1 size_t v6; // x0 cocos2d::CCSprite *v7; // x0 __int64 v8; // x23 void (__fastcall *v9)(__int64, _BYTE *); // x24 const char *v10; // x2 cocos2d::CCLabelBMFont *v11; // x0 cocos2d::CCLabelBMFont *v12; // x20 void (__fastcall *v13)(cocos2d::CCLabelBMFont *, _BYTE *); // x23 float v14; // s1 void (__fastcall *v15)(cocos2d::CCLabelBMFont *, _BYTE *); // x19 char *v17; // [xsp+48h] [xbp+48h] _BYTE v18[8]; // [xsp+50h] [xbp+50h] BYREF __int64 v19; // [xsp+58h] [xbp+58h] BYREF __int64 v20; // [xsp+60h] [xbp+60h] cocos2d::CCLabelBMFont *v21; // [xsp+68h] [xbp+68h] __int64 v22[3]; // [xsp+70h] [xbp+70h] BYREF unsigned __int64 v23[3]; // [xsp+88h] [xbp+88h] BYREF char *v24[2]; // [xsp+A0h] [xbp+A0h] BYREF cocos2d::CCSprite *v25; // [xsp+B0h] [xbp+B0h] (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1); *((_QWORD *)this + 69) = a2; v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, &byte_11B8890, 0); v4 = *((_QWORD *)this + 69); if ( *(_DWORD *)(v4 + 60) ) { GameToolbox::pointsToString((GameToolbox *)*(unsigned int *)(v4 + 56), v23); if ( (v19 & 1) != 0 ) { *(_BYTE *)v21 = 0; v20 = 0; } else { LOWORD(v19) = 0; } std::string::reserve(&v19, 0); v21 = (cocos2d::CCLabelBMFont *)v23[2]; v19 = v23[0]; v20 = v23[1]; if ( *(_DWORD *)(*((_QWORD *)this + 69) + 60LL) == 1 ) goto LABEL_5; } else { GameToolbox::msToTimeString((GameToolbox *)*(unsigned int *)(v4 + 56), 1, v22); if ( (v19 & 1) != 0 ) { *(_BYTE *)v21 = 0; v20 = 0; } else { LOWORD(v19) = 0; } std::string::reserve(&v19, 0); v21 = (cocos2d::CCLabelBMFont *)v22[2]; v19 = v22[0]; v20 = v22[1]; if ( *(_DWORD *)(*((_QWORD *)this + 69) + 60LL) == 1 ) { LABEL_5: v5 = "GJ_pointsIcon_001.png"; goto LABEL_10; } } v5 = "GJ_timeIcon_001.png"; LABEL_10: v17 = (char *)v5; v24[0] = nullptr; v24[1] = nullptr; v25 = nullptr; v6 = strlen(v5); std::string::__init((__int64 *)v24, v17, v6); v7 = (cocos2d::CCSprite *)((char *)v24 + 1); if ( ((__int64)v24[0] & 1) != 0 ) v7 = v25; v8 = cocos2d::CCSprite::createWithSpriteFrameName(v7, (const char *)LOBYTE(v24[0])); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 0.55); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(*((_QWORD *)this + 67), v8, 20); v9 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 20.0, *((float *)this + 131) * 0.5); v9(v8, v18); v11 = (cocos2d::CCLabelBMFont *)((char *)&v19 + 1); if ( (v19 & 1) != 0 ) v11 = v21; v12 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v11, "bigFont.fnt", v10); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v12, 2); v13 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v12 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.0, 0.5); v13(v12, v18); cocos2d::CCLabelBMFont::limitLabelWidth(v12, 200.0, 0.46, 0.0); v14 = (float)(*((float *)this + 131) * 0.5) + 0.5; v15 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v12 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 40.0, v14); v15(v12, v18); if ( ((__int64)v24[0] & 1) != 0 ) operator delete(v25); if ( (v19 & 1) != 0 ) operator delete(v21); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source