// // GJCompactUserCell::buildUserRow from 0x744844 to 0x745120 (2268 bytes) // // 9 xrefs: // > GJCompactUserCell::loadFromScore @ 0x745210 // > GJRequestCell::loadFromScore @ 0x7453f0 // > FriendsProfilePage::mountVirtualRow @ 0xa4ff24 // > FriendPickerPopup::mountVirtualRow @ 0xc63c8c // > FriendPickerPopup::mountVirtualRow @ 0xc63e1c // > FriendPickerPopup::mountVirtualRow @ 0xc63f4c // > MemberListPopup::buildRows @ 0xc67560 // > MemberListPopup::buildRows @ 0xc676fc // > @ 0x703f0 // // 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:46 +0000 // cocos2d::CCLabelBMFont *__fastcall GJCompactUserCell::buildUserRow( __int64 a1, GJUserScore *a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, unsigned __int8 a7, unsigned __int8 a8, float a9) { unsigned int v14; // w27 __int64 v16; // x20 void (__fastcall *v17)(__int64, __int16 *); // x22 __int64 (__fastcall *v18)(__int64, __int16 *); // x22 GameManager *v19; // x0 int v20; // w0 GameManager *v21; // x0 GameManager *v22; // x0 unsigned __int64 v23; // x0 char v24; // w0 __int64 *v25; // x22 char v26; // w0 __int64 v27; // x0 size_t v28; // x1 size_t v29; // x20 char v30; // w0 __int64 v31; // x0 size_t v32; // x1 cocos2d::CCLabelBMFont *v33; // x2 cocos2d::CCLabelBMFont *v34; // x0 cocos2d::CCLabelBMFont *v35; // x20 float v36; // s9 float v37; // s0 __int64 v38; // x25 float v39; // s9 float v40; // s8 GameLevelManager *v41; // x0 const char *v42; // x1 const char *v43; // x2 float v44; // s0 int v45; // w24 int v46; // w25 float v47; // s8 GameToolbox *v48; // x0 char *v49; // x25 cocos2d::CCLabelBMFont *v50; // x3 cocos2d::CCString *v51; // x0 size_t v52; // x0 char v53; // w0 __int64 v54; // x0 __int64 v55; // x1 __int64 v56; // x22 __int64 v57; // x0 float v58; // s9 __int64 v59; // x0 float v60; // s9 __int64 v61; // x0 __int64 v62; // x22 void (__fastcall *v63)(__int64, __int16 *); // x23 void (__fastcall *v64)(__int64, __int16 *); // x23 __int64 v66; // x24 float v67; // s9 float v68; // s9 void (__fastcall *v69)(cocos2d::CCLabelBMFont *, __int16 *); // x3 size_t v70; // x2 cocos2d::CCLabelBMFont *v71; // x1 GameLevelManager *v72; // x0 __int64 v73; // x0 int v74; // [xsp+8Ch] [xbp+8Ch] GameToolbox *v75; // [xsp+90h] [xbp+90h] char *v77; // [xsp+98h] [xbp+98h] char *CString; // [xsp+98h] [xbp+98h] char *v79; // [xsp+98h] [xbp+98h] float v80; // [xsp+A0h] [xbp+A0h] BYREF float v81; // [xsp+A4h] [xbp+A4h] __int16 v82; // [xsp+A8h] [xbp+A8h] BYREF char v83; // [xsp+AAh] [xbp+AAh] __int64 v84; // [xsp+B0h] [xbp+B0h] BYREF size_t v85; // [xsp+B8h] [xbp+B8h] void *v86; // [xsp+C0h] [xbp+C0h] __int64 v87; // [xsp+C8h] [xbp+C8h] BYREF __int64 v88; // [xsp+D0h] [xbp+D0h] void *v89; // [xsp+D8h] [xbp+D8h] __int64 v90; // [xsp+E0h] [xbp+E0h] BYREF size_t v91; // [xsp+E8h] [xbp+E8h] cocos2d::CCLabelBMFont *v92; // [xsp+F0h] [xbp+F0h] v14 = a7; v74 = a8; v16 = SimplePlayer::create((SimplePlayer *)((char *)&dword_0 + 1), _stack_chk_guard); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 160LL))(v16, 0.8); v17 = *(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v16 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v82, 22.0, a9); v17(v16, &v82); v18 = *(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v16 + 960LL); v19 = (GameManager *)GameManager::sharedState(*(GameManager **)v16); v20 = GameManager::colorForIdx(v19, *(_DWORD *)(a1 + 416)); v82 = v20; v83 = BYTE2(v20); v21 = (GameManager *)v18(v16, &v82); v22 = (GameManager *)GameManager::sharedState(v21); v23 = GameManager::colorForIdx(v22, *(_DWORD *)(a1 + 420)); v82 = v23; v83 = BYTE2(v23); SimplePlayer::setSecondColor(v16, &v82); SimplePlayer::tryEnableCustomGlowColor((SimplePlayer *)v16, *(_DWORD *)(a1 + 424)); if ( *(_DWORD *)(a1 + 428) == 2 ) v24 = 1; else v24 = *(_BYTE *)(a1 + 672); *(_BYTE *)(v16 + 660) = v24; SimplePlayer::updatePlayerFrame(v16, *(unsigned int *)(a1 + 412), *(unsigned int *)(a1 + 432)); SimplePlayer::updateColors((SimplePlayer *)v16); if ( v14 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 912LL))(v16, 110); v25 = (__int64 *)(a1 + 320); (*(void (__fastcall **)(GJUserScore *, __int64, __int64))(*(_QWORD *)a2 + 464LL))(a2, v16, 1); v90 = 0; v26 = *(_BYTE *)(a1 + 320); v91 = 0; v92 = nullptr; if ( (v26 & 1) != 0 ) { std::string::__init(&v90, *(void **)(a1 + 336), *(_QWORD *)(a1 + 328)); } else { v27 = *v25; v28 = *(_QWORD *)(a1 + 328); v92 = *(cocos2d::CCLabelBMFont **)(a1 + 336); v90 = v27; v91 = v28; } v29 = (unsigned __int8)v90 >> 1; if ( (v90 & 1) != 0 ) { v29 = v91; operator delete(v92); } if ( !v29 ) { v90 = 0; v91 = 0; v92 = nullptr; std::string::__init(&v90, &byte_1191DE0, 1u); if ( v25 != &v90 ) { if ( (v90 & 1) != 0 ) { v71 = v92; v70 = v91; } else { v70 = (unsigned __int8)v90 >> 1; v71 = (cocos2d::CCLabelBMFont *)((char *)&v90 + 1); } std::string::assign((__int64 *)(a1 + 320), v71, v70); } if ( (v90 & 1) != 0 ) operator delete(v92); } v30 = *(_BYTE *)(a1 + 320); v90 = 0; v91 = 0; v92 = nullptr; if ( (v30 & 1) != 0 ) { std::string::__init(&v90, *(void **)(a1 + 336), *(_QWORD *)(a1 + 328)); } else { v31 = *v25; v32 = *(_QWORD *)(a1 + 328); v33 = *(cocos2d::CCLabelBMFont **)(a1 + 336); v92 = v33; v90 = v31; v91 = v32; } v34 = (cocos2d::CCLabelBMFont *)((char *)&v90 + 1); if ( (v90 & 1) != 0 ) v34 = v92; v35 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v34, "goldFont.fnt", (const char *)v33); if ( (v90 & 1) != 0 ) operator delete(v92); cocos2d::CCLabelBMFont::limitLabelWidth(v35, 150.0, 0.6, 0.0); if ( v14 ) { v69 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int16 *))(*(_QWORD *)v35 + 1072LL); v82 = -32126; v83 = -126; v69(v35, &v82); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v35 + 1024LL))(v35, 4294967190LL); } v36 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v35 + 328LL))(v35); v37 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v35 + 168LL))(v35); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v80, (float)((float)(v36 * 0.5) * v37) + 46.0, a9 + 9.5); v38 = CCMenuItemSpriteExtra::create((__int64)v35, 0, a4, a5, a6); CCMenuItemSpriteExtra::setSizeMult(v38, 1.4); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v38 + 648LL))(v38, a1); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v38 + 184LL))(v38, &v80); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a3 + 464LL))(a3, v38, 2); v39 = v80; v40 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v35 + 328LL))(v35) * 0.5; v44 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v35 + 168LL))(v35); v45 = *(_DWORD *)(a1 + 688); v46 = *(_DWORD *)(a1 + 456); v47 = v39 + (float)(v40 * v44); if ( v45 == 1 || v46 > 0 ) { LABEL_20: if ( v74 ) { v66 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_sFriendsIcon_001.png", v42); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v66 + 160LL))(v66, 0.7); v67 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v66 + 328LL))(v66); v68 = v67 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v66 + 168LL))(v66); v79 = *(char **)(*(_QWORD *)v66 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v82, (float)(v47 + 5.0) + (float)(v68 * 0.5), v81 - 1.0); ((void (__fastcall *)(__int64, __int16 *))v79)(v66, &v82); if ( v14 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v66 + 912LL))(v66, 110); (*(void (__fastcall **)(GJUserScore *, __int64, __int64))(*(_QWORD *)a2 + 464LL))(a2, v66, 2); v47 = v47 + (float)(v68 + 5.0); } goto LABEL_21; } if ( !v45 ) { v72 = (GameLevelManager *)GameLevelManager::sharedState(v41); v73 = GameLevelManager::storedFriendForAccountID(v72, *(_DWORD *)(a1 + 376)); if ( !v73 ) goto LABEL_44; v46 = *(_DWORD *)(v73 + 456); goto LABEL_20; } LABEL_21: if ( v46 > 0 ) { if ( *(_BYTE *)(a1 + 720) ) v77 = "Following"; else v77 = "Friends"; v48 = (GameToolbox *)v46; v75 = (GameToolbox *)v46; v49 = (char *)&v87 + 1; GameToolbox::timestampToDayString(v48, &v87); if ( (v87 & 1) != 0 ) v49 = (char *)v89; GameToolbox::timestampToHumanReadable(v75, &v90); v50 = (cocos2d::CCLabelBMFont *)((char *)&v90 + 1); if ( (v90 & 1) != 0 ) v50 = v92; v51 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s since %s\n(%s)", v77, v49, v50); CString = (char *)cocos2d::CCString::getCString(v51); v84 = 0; v85 = 0; v86 = nullptr; v52 = strlen(CString); std::string::__init(&v84, CString, v52); if ( (v90 & 1) != 0 ) operator delete(v92); if ( (v87 & 1) != 0 ) operator delete(v89); v53 = *(_BYTE *)(a1 + 320); v87 = 0; v88 = 0; v89 = nullptr; if ( (v53 & 1) != 0 ) { std::string::__init(&v87, *(void **)(a1 + 336), *(_QWORD *)(a1 + 328)); } else { v54 = *v25; v55 = *(_QWORD *)(a1 + 328); v89 = *(void **)(a1 + 336); v87 = v54; v88 = v55; } v90 = 0; v91 = 0; v92 = nullptr; if ( (v84 & 1) != 0 ) { std::string::__init(&v90, v86, v85); } else { v90 = v84; v91 = v85; v92 = (cocos2d::CCLabelBMFont *)v86; } v56 = InfoAlertButton::create(&v87, &v90, 0.4); if ( (v90 & 1) != 0 ) operator delete(v92); if ( (v87 & 1) != 0 ) operator delete(v89); v57 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v56 + 1072LL))(v56); v58 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v57 + 328LL))(v57); v59 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v56 + 1072LL))(v56); v60 = v58 * (*(float (__fastcall **)(__int64))(*(_QWORD *)v59 + 168LL))(v59); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v82, (float)(v47 + 5.0) + (float)(v60 * 0.5), v81 - 1.0); (*(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v56 + 184LL))(v56, &v82); if ( v14 ) { v61 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v56 + 1072LL))(v56); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v61 + 912LL))(v61, 110); } (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a3 + 464LL))(a3, v56, 2); v47 = v47 + (float)(v60 + 5.0); if ( (v84 & 1) != 0 ) operator delete(v86); } LABEL_44: if ( *(_BYTE *)(a1 + 724) ) { v62 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"New!", "goldFont.fnt", v43); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v62 + 160LL))(v62, 0.45); v63 = *(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v62 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v82, 0.0, 0.5); v63(v62, &v82); v64 = *(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v62 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v82, v47 + 8.0, v81); v64(v62, &v82); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v62 + 72LL))(v62, 100); (*(void (__fastcall **)(GJUserScore *, __int64, __int64))(*(_QWORD *)a2 + 464LL))(a2, v62, 10); } GJCompactUserCell::createStatStrip((GJCompactUserCell *)a1, a2, (cocos2d::CCNode *)v14, 46.0, a9 - 8.0); return v35; }
GD Web Decomp Icon

GD Web Decomp

Raw Source