// // GJLevelScoreCell::loadFromScore from 0x749424 to 0x749e30 (2572 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x74d3d0 // > @ 0xb6cf8 // // 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 GJLevelScoreCell::loadFromScore(GJLevelScoreCell *this, GJUserScore *a2) { int v4; // w1 __int64 v5; // x19 void (__fastcall *v6)(__int64, __int64 *); // x20 __int64 (__fastcall *v7)(__int64, __int64 *); // x20 GameManager *v8; // x0 int v9; // w0 GameManager *v10; // x0 GameManager *v11; // x0 unsigned __int64 v12; // x0 __int64 v13; // x0 char v14; // w0 cocos2d::CCMenuItem *v15; // x1 cocos2d::CCNode *v16; // x23 const char *v17; // x1 const char *v18; // x1 cocos2d::CCSprite *v19; // x0 __int64 v20; // x20 __int64 v21; // x0 const char *v22; // x2 __int64 v23; // x1 cocos2d::CCLabelBMFont *v24; // x0 cocos2d::CCLabelBMFont *v25; // x20 __int64 v26; // x27 float v27; // s11 float v28; // s10 __int64 v29; // x19 void (__fastcall *v30)(__int64, __int64 *); // x19 float v31; // s8 float v32; // s0 unsigned int v33; // w20 __int64 v34; // x0 const char *v35; // x2 cocos2d::CCString *v36; // x0 char *v37; // x0 cocos2d::CCLabelBMFont *v38; // x0 cocos2d::CCLabelBMFont *v39; // x23 void (__fastcall *v40)(cocos2d::CCLabelBMFont *, __int64 *); // x19 void (__fastcall *v41)(cocos2d::CCLabelBMFont *, __int64 *); // x19 const char *v42; // x1 __int64 v43; // x0 int v44; // w28 int v45; // w21 int i; // w20 __int64 v47; // x19 void (__fastcall *v48)(__int64, __int64 *); // x26 __int64 v49; // x27 __int64 v50; // x1 cocos2d::CCLabelBMFont *v51; // x1 cocos2d::CCString *v52; // x0 cocos2d::CCLabelBMFont *v53; // x0 const char *v54; // x2 cocos2d::CCLabelBMFont *v55; // x19 void (__fastcall *v56)(cocos2d::CCLabelBMFont *, __int64 *); // x20 void (__fastcall *v57)(cocos2d::CCLabelBMFont *, __int64 *); // x20 __int64 v59; // x0 void (__fastcall *v60)(__int64, __int64 *); // x2 cocos2d::CCString *v61; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v63; // x2 cocos2d::CCLabelBMFont *v64; // x24 void (__fastcall *v65)(cocos2d::CCLabelBMFont *, __int64 *); // x19 void (__fastcall *v66)(cocos2d::CCLabelBMFont *, __int64 *); // x19 _BYTE v67[8]; // [xsp+90h] [xbp+90h] BYREF __int64 v68; // [xsp+98h] [xbp+98h] BYREF _BYTE v69[8]; // [xsp+A0h] [xbp+A0h] BYREF __int64 v70; // [xsp+A8h] [xbp+A8h] BYREF __int64 v71; // [xsp+B0h] [xbp+B0h] BYREF __int64 v72; // [xsp+B8h] [xbp+B8h] BYREF __int64 v73; // [xsp+C0h] [xbp+C0h] cocos2d::CCLabelBMFont *v74; // [xsp+C8h] [xbp+C8h] __int64 v75[3]; // [xsp+D0h] [xbp+D0h] BYREF unsigned __int64 v76[2]; // [xsp+E8h] [xbp+E8h] BYREF cocos2d::CCLabelBMFont *v77; // [xsp+F8h] [xbp+F8h] __int64 v78; // [xsp+100h] [xbp+100h] BYREF __int64 v79; // [xsp+108h] [xbp+108h] cocos2d::CCLabelBMFont *v80; // [xsp+110h] [xbp+110h] (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1); *((_QWORD *)this + 69) = a2; v5 = SimplePlayer::create((SimplePlayer *)((char *)&dword_0 + 1), v4); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(*((_QWORD *)this + 67), v5, 1); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 0.8); v6 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 60.0, (float)(*((float *)this + 131) * 0.5) + 0.0); v6(v5, &v71); v7 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 960LL); v8 = (GameManager *)GameManager::sharedState(*(GameManager **)v5); v9 = GameManager::colorForIdx(v8, *(_DWORD *)(*((_QWORD *)this + 69) + 416LL)); LOWORD(v71) = v9; BYTE2(v71) = BYTE2(v9); v10 = (GameManager *)v7(v5, &v71); v11 = (GameManager *)GameManager::sharedState(v10); v12 = GameManager::colorForIdx(v11, *(_DWORD *)(*((_QWORD *)this + 69) + 420LL)); LOWORD(v71) = v12; BYTE2(v71) = BYTE2(v12); SimplePlayer::setSecondColor(v5, &v71); SimplePlayer::tryEnableCustomGlowColor((SimplePlayer *)v5, *(_DWORD *)(*((_QWORD *)this + 69) + 424LL)); v13 = *((_QWORD *)this + 69); if ( *(_DWORD *)(v13 + 428) == 2 ) v14 = 1; else v14 = *(_BYTE *)(v13 + 672); *(_BYTE *)(v5 + 660) = v14; SimplePlayer::updatePlayerFrame( v5, *(unsigned int *)(*((_QWORD *)this + 69) + 412LL), *(unsigned int *)(*((_QWORD *)this + 69) + 432LL)); SimplePlayer::updateColors((SimplePlayer *)v5); v16 = (cocos2d::CCNode *)cocos2d::CCMenu::create(nullptr, v15); (*(void (__fastcall **)(_QWORD, cocos2d::CCNode *))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v67, 22.0, *((float *)this + 131) * 0.5); v17 = (const char *)*(unsigned int *)(*((_QWORD *)this + 69) + 396LL); if ( (int)v17 > 3 ) { v61 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v17); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v61); v64 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v63); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**((_QWORD **)this + 67) + 456LL))( *((_QWORD *)this + 67), v64); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v64 + 184LL))(v64, v67); cocos2d::CCLabelBMFont::limitLabelWidth(v64, 20.0, 0.75, 0.0); } else { v78 = 0; v79 = 0; v80 = nullptr; if ( (_DWORD)v17 == 1 ) { std::string::assign(&v78, "rankIcon_top10_001.png"); } else if ( (_DWORD)v17 == 2 ) { std::string::assign(&v78, "rankIcon_top50_001.png"); } else { std::string::assign(&v78, "rankIcon_top100_001.png"); } if ( (v78 & 1) != 0 ) v19 = v80; else v19 = (cocos2d::CCSprite *)((char *)&v78 + 1); v20 = cocos2d::CCSprite::createWithSpriteFrameName(v19, v18); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v20); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v20 + 184LL))(v20, v67); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v20 + 160LL))(v20, 0.8); if ( (v78 & 1) != 0 ) operator delete(v80); } v21 = *((_QWORD *)this + 69); v78 = 0; v79 = 0; v22 = (const char *)(v21 + 320); v80 = nullptr; if ( (*(_BYTE *)(v21 + 320) & 1) != 0 ) { std::string::__init(&v78, *(void **)(v21 + 336), *(_QWORD *)(v21 + 328)); } else { v23 = *(_QWORD *)(v21 + 328); v78 = *(_QWORD *)v22; v79 = v23; v80 = *(cocos2d::CCLabelBMFont **)(v21 + 336); } v24 = (cocos2d::CCLabelBMFont *)((char *)&v78 + 1); if ( (v78 & 1) != 0 ) v24 = v80; v25 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v24, "goldFont.fnt", v22); if ( (v78 & 1) != 0 ) { operator delete(v80); if ( *(_DWORD *)(*((_QWORD *)this + 69) + 832LL) != 1 ) goto LABEL_17; } else if ( *(_DWORD *)(*((_QWORD *)this + 69) + 832LL) != 1 ) { LABEL_17: cocos2d::CCLabelBMFont::limitLabelWidth(v25, 130.0, 0.8, 0.0); goto LABEL_18; } cocos2d::CCLabelBMFont::limitLabelWidth(v25, 100.0, 0.7, 0.0); LABEL_18: v26 = CCMenuItemSpriteExtra::create((__int64)v25, 0, (__int64)this, (__int64)GJLevelScoreCell::onViewProfile, 0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v16 + 456LL))(v16, v26); v27 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v25 + 328LL))(v25); v28 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v25 + 168LL))(v25); v29 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 30.0, 0.0); cocos2d::CCPoint::operator+(&v68, v29); v30 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL); v31 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v25 + 328LL))(v25) * 0.5; v32 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v25 + 168LL))(v25); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, v31 * v32, 0.0); cocos2d::CCPoint::operator+(&v70, &v68); cocos2d::CCNode::convertToNodeSpace(&v71, v16, (const cocos2d::CCPoint *)&v70); v30(v26, &v71); if ( (unsigned __int8)GJUserScore::isCurrentUser(*((GJUserScore **)this + 69)) ) { v59 = *((_QWORD *)this + 66); v60 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v59 + 1216LL); LOWORD(v71) = -26906; BYTE2(v71) = 10; v60(v59, &v71); } v33 = *(_DWORD *)(*((_QWORD *)this + 69) + 380LL); v72 = 0; v73 = 0; v74 = nullptr; std::string::__init(&v72, &byte_11B8890, 0); v34 = *((_QWORD *)this + 69); if ( *(_DWORD *)(v34 + 832) == 1 ) { if ( *(_DWORD *)(v34 + 836) ) { GameToolbox::pointsToString((GameToolbox *)v33, v76); if ( (v72 & 1) != 0 ) { *(_BYTE *)v74 = 0; v73 = 0; } else { LOWORD(v72) = 0; } std::string::reserve(&v72, 0); v35 = (const char *)v77; v74 = v77; v72 = v76[0]; v73 = v76[1]; } else { GameToolbox::msToTimeString((GameToolbox *)v33, 1, v75); if ( (v72 & 1) != 0 ) { *(_BYTE *)v74 = 0; v73 = 0; } else { LOWORD(v72) = 0; } std::string::reserve(&v72, 0); v74 = (cocos2d::CCLabelBMFont *)v75[2]; v72 = v75[0]; v73 = v75[1]; } } else { v36 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", (const char *)v33); v37 = (char *)cocos2d::CCString::getCString(v36); std::string::assign(&v72, v37); } v38 = (cocos2d::CCLabelBMFont *)((char *)&v72 + 1); if ( (v72 & 1) != 0 ) v38 = v74; v39 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v38, "bigFont.fnt", v35); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v39, 2); if ( *(_DWORD *)(*((_QWORD *)this + 69) + 832LL) == 1 ) { v65 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v39 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 1.0, 0.5); v65(v39, &v71); cocos2d::CCLabelBMFont::limitLabelWidth(v39, 85.0, 0.5, 0.0); v66 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v39 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, *((float *)this + 130) - 60.0, *((float *)this + 131) * 0.5); v66(v39, &v71); } else { v40 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v39 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 0.0, 0.5); v40(v39, &v71); cocos2d::CCLabelBMFont::limitLabelWidth(v39, 200.0, 0.6, 0.0); v41 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v39 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v70, (float)(v27 * v28) + 6.0, -1.0); cocos2d::CCPoint::operator+(&v71, &v68); v41(v39, &v71); v43 = *((_QWORD *)this + 69); v44 = *(_DWORD *)(v43 + 404); if ( v44 <= 0 ) goto LABEL_33; v45 = 65; for ( i = 0; i != v44; ++i ) { v47 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"usercoin_small01_001.png", v42); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 456LL))(*((_QWORD *)this + 67), v47); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v47 + 160LL))(v47, 0.9); v48 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 184LL); v49 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v39 + 192LL))(v39); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v70, (float)v45, 5.0); cocos2d::CCPoint::operator+(&v71, v49); v48(v47, &v71); v45 += 8; } } v43 = *((_QWORD *)this + 69); LABEL_33: v78 = 0; v79 = 0; v80 = nullptr; if ( (*(_BYTE *)(v43 + 728) & 1) != 0 ) { std::string::__init(&v78, *(void **)(v43 + 744), *(_QWORD *)(v43 + 736)); } else { v50 = *(_QWORD *)(v43 + 736); v78 = *(_QWORD *)(v43 + 728); v79 = v50; v80 = *(cocos2d::CCLabelBMFont **)(v43 + 744); } v51 = (cocos2d::CCLabelBMFont *)((char *)&v78 + 1); if ( (v78 & 1) != 0 ) v51 = v80; v52 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s ago", (const char *)v51); v53 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v52); v55 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v53, "chatFont.fnt", v54); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**((_QWORD **)this + 67) + 464LL))( *((_QWORD *)this + 67), v55, 1); v56 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v55 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 1.0, 0.5); v56(v55, &v71); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v55 + 160LL))(v55, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v55 + 1072LL))(v55, &qword_113C0F0); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v55 + 1024LL))(v55, 125); v57 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v55 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, *((float *)this + 130) - 11.0, 10.0); v57(v55, &v71); if ( *(_DWORD *)(*((_QWORD *)this + 69) + 832LL) == 1 ) cocos2d::CCLabelBMFont::limitLabelWidth(v55, 35.0, 0.5, 0.0); if ( (v78 & 1) != 0 ) operator delete(v80); if ( (v72 & 1) != 0 ) operator delete(v74); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source