// // GJCompactUserCell::buildUserRow from 0x140157e90 to 0x140158983 (2803 bytes) // // 8 xrefs: // > FriendPickerPopup::mountVirtualRow @ 0x1400e8622 // > MemberListPopup::buildRows @ 0x1400ec88a // > MemberListPopup::buildRows @ 0x1400ecb9f // > GJCompactUserCell::loadFromScore @ 0x140157d3c // > GJRequestCell::loadFromScore @ 0x140158e33 // > FriendsProfilePage::mountVirtualRow @ 0x14021490e // > @ 0x1409179c0 // > @ 0x1409179cc // // This function is hookable on this platform (idp: pc, 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 11:27:21 +0000 // // Hidden C++ exception states: #wind=10 struct cocos2d::CCLabelBMFont *__fastcall GJCompactUserCell::buildUserRow( __int64 a1, __int64 a2, __int64 a3, __time64_t a4, __int64 a5, float a6, char a7, char a8) { __int64 v10; // rdi __int64 v11; // rbx __int64 v12; // rax __int64 v13; // rcx void (__fastcall **v14)(__int64, __int64); // rbx __int64 v15; // rax __int64 v16; // rcx __int64 v17; // rax bool v18; // al __int64 v19; // rdx bool v20; // bl char *v21; // rcx struct cocos2d::CCLabelBMFont *v22; // r12 __int64 v23; // rdx float v24; // xmm6_4 double v25; // xmm0_8 cocos2d::CCObject *v26; // rbx float v27; // xmm6_4 double v28; // xmm0_8 float v29; // xmm9_4 int v30; // r14d int v31; // eax char v32; // di __int64 v33; // rcx int v34; // ebx __int64 StoredUserList; // rax unsigned int *v36; // rcx __int64 v37; // rax __int64 *v38; // rcx __int64 *i; // rdx __int64 v40; // rax struct cocos2d::CCSprite *v41; // rdi float v42; // xmm6_4 double v43; // xmm0_8 float v44; // xmm7_4 __int64 v45; // rbx __int64 v46; // rax __int64 v47; // rdx char v48; // r12 __time64_t v49; // rbx __int64 v50; // r14 size_t v51; // rdi unsigned __int64 v52; // rcx struct tm *v53; // rax size_t v54; // r8 void **v55; // r8 const char *v56; // rdx cocos2d::CCString *v57; // rax const char *CString; // rax void *v59; // rcx __int64 v60; // rcx char *v61; // r12 char *v62; // r14 __int64 v63; // rbx unsigned __int64 v64; // rdi __int64 v65; // r12 __int64 v66; // rbx __int64 v67; // rdi float *v68; // rbx double v69; // xmm0_8 float v70; // xmm6_4 __int64 v71; // rax __int64 v72; // rdx char *v73; // rax struct cocos2d::CCLabelBMFont *v74; // rdi __int64 v75; // rbx __int64 v76; // rax __int64 v77; // rbx __int64 v78; // rax __int64 v79; // rcx int v81; // [rsp+30h] [rbp-D8h] int v82; // [rsp+30h] [rbp-D8h] int v83; // [rsp+30h] [rbp-D8h] __int16 v84; // [rsp+38h] [rbp-D0h] BYREF char v85; // [rsp+3Ah] [rbp-CEh] struct cocos2d::CCLabelBMFont *v86; // [rsp+40h] [rbp-C8h] BYREF _QWORD v87[2]; // [rsp+48h] [rbp-C0h] BYREF float v88; // [rsp+58h] [rbp-B0h] BYREF float v89; // [rsp+5Ch] [rbp-ACh] __time64_t Time; // [rsp+60h] [rbp-A8h] BYREF __int64 v91; // [rsp+68h] [rbp-A0h] BYREF _QWORD Src[5]; // [rsp+70h] [rbp-98h] BYREF __int128 v93; // [rsp+98h] [rbp-70h] BYREF unsigned __int64 v94; // [rsp+A8h] [rbp-60h] __int64 v95; // [rsp+B0h] [rbp-58h] _BYTE v96[32]; // [rsp+B8h] [rbp-50h] BYREF void *Block[2]; // [rsp+D8h] [rbp-30h] BYREF __int64 v98; // [rsp+E8h] [rbp-20h] unsigned __int64 v99; // [rsp+F0h] [rbp-18h] char v100[32]; // [rsp+F8h] [rbp-10h] BYREF char Buffer[16]; // [rsp+118h] [rbp+10h] BYREF unsigned __int64 v102; // [rsp+128h] [rbp+20h] unsigned __int64 v103; // [rsp+130h] [rbp+28h] Time = a4; Src[0] = a3; v91 = a5; v10 = SimplePlayer::create(1); (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 160LL))(v10); v11 = *(_QWORD *)v10; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, 22.0, a6); (*(void (__fastcall **)(__int64, __int64))(v11 + 184))(v10, v12); v13 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v87[0] = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v87[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v13 = qword_14090BFD0; } v14 = *(void (__fastcall ***)(__int64, __int64))(v10 + 320); v15 = GameManager::colorForIdx(v13, &v84, *(unsigned int *)(a1 + 432)); (*v14)(v10 + 320, v15); v16 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v87[0] = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v87[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v16 = qword_14090BFD0; } v17 = GameManager::colorForIdx(v16, &v86, *(unsigned int *)(a1 + 436)); (**(void (__fastcall ***)(__int64, __int64))(*(_QWORD *)(v10 + 608) + 320LL))(*(_QWORD *)(v10 + 608) + 320LL, v17); SimplePlayer::updateColors(v10); SimplePlayer::tryEnableCustomGlowColor(v10, *(unsigned int *)(a1 + 440)); v18 = *(_DWORD *)(a1 + 444) == 2 || *(_BYTE *)(a1 + 744); *(_BYTE *)(v10 + 660) = v18; SimplePlayer::updatePlayerFrame(v10, *(unsigned int *)(a1 + 428), *(unsigned int *)(a1 + 448)); SimplePlayer::updateColors(v10); if ( a7 ) { LOBYTE(v19) = 110; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(v10 + 320) + 40LL))(v10 + 320, v19); } (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a2 + 456LL))(a2, v10, 1); sub_14003F4F0((__int64)Buffer, a1 + 320); v20 = v102 == 0; sub_14003D310((__int64)Buffer); if ( v20 ) { *(_OWORD *)&Src[1] = 0; Src[3] = 1; Src[4] = 15; LOWORD(Src[1]) = 45; v87[0] = &Src[1]; if ( (_QWORD *)(a1 + 320) != &Src[1] ) sub_1400405A0((void **)(a1 + 320), &Src[1], 1u); sub_14003D310((__int64)&Src[1]); } sub_14003F4F0((__int64)Buffer, a1 + 320); v21 = Buffer; if ( v103 > 0xF ) v21 = *(char **)Buffer; v22 = cocos2d::CCLabelBMFont::create(v21, "goldFont.fnt"); v86 = v22; sub_14003D310((__int64)Buffer); cocos2d::CCLabelBMFont::limitLabelWidth(v22, 150.0, 0.60000002, 0.0); if ( a7 ) { v84 = -32126; v85 = -126; (**((void (__fastcall ***)(__int64, __int16 *))v22 + 46))((__int64)v22 + 368, &v84); LOBYTE(v23) = -106; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v22 + 46) + 40LL))((__int64)v22 + 368, v23); } v24 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 320LL))(v22) * 0.5; v25 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 168LL))(v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v88, (float)(*(float *)&v25 * v24) + 46.0, a6 + 9.5); v26 = CCMenuItemSpriteExtra::create((int)v22, 0, Time, v91); *((_DWORD *)v26 + 93) = 1068708659; (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v26 + 640LL))(v26, a1); (*(void (__fastcall **)(cocos2d::CCObject *, float *))(*(_QWORD *)v26 + 184LL))(v26, &v88); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(*(_QWORD *)Src[0] + 456LL))(Src[0], v26, 2); v27 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 320LL))(v22) * 0.5; v28 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v22 + 168LL))(v22); v29 = (float)(*(float *)&v28 * v27) + v88; v30 = *(_DWORD *)(a1 + 472); v31 = *(_DWORD *)(a1 + 760); if ( v31 == 1 || v30 > 0 ) { v32 = 1; if ( v30 > 0 ) goto LABEL_35; } else { v32 = 0; } if ( !v31 ) { v33 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v87[0] = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v87[0]); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v33 = *(_QWORD *)&qword_14090BFB0; } v34 = *(_DWORD *)(a1 + 392); StoredUserList = GameLevelManager::getStoredUserList(v33, 0); if ( StoredUserList ) { if ( v34 > 0 ) { v36 = *(unsigned int **)(StoredUserList + 56); v37 = *v36; if ( (_DWORD)v37 ) { v38 = *((__int64 **)v36 + 2); for ( i = &v38[v37 - 1]; v38 <= i; ++v38 ) { v40 = *v38; if ( !*v38 ) break; if ( *(_DWORD *)(v40 + 392) == v34 ) { v30 = *(_DWORD *)(v40 + 472); v32 = 1; break; } } } } } } LABEL_35: if ( a8 && v32 ) { v41 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_sFriendsIcon_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v41 + 160LL))(v41); v42 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v41 + 320LL))(v41); v43 = (*(double (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v41 + 168LL))(v41); v44 = *(float *)&v43 * v42; v45 = *(_QWORD *)v41; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v87, (float)((float)(*(float *)&v43 * v42) * 0.5) + (float)(v29 + 5.0), v89 - 1.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v45 + 184))(v41, v46); if ( a7 ) { LOBYTE(v47) = 110; (*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v41 + 40) + 40LL))((__int64)v41 + 320, v47); } (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)a2 + 456LL))(a2, v41, 2); v29 = v29 + (float)(v44 + 5.0); } if ( v30 > 0 ) { v48 = *(_BYTE *)(a1 + 792); v49 = v30; v50 = GameToolbox::timestampToHumanReadable((__int64)v100, v30); Time = v49; v51 = -1; v53 = localtime64(&Time); if ( v53 ) { strftime(Buffer, 0x20u, "%b %d, %Y", v53); *(_OWORD *)Block = 0; v98 = 0; v99 = 0; v54 = -1; do ++v54; while ( Buffer[v54] ); sub_14003D230(Block, Buffer, v54); v52 = v99; } else { *(_OWORD *)Block = 0; v98 = 2; v52 = 15; v99 = 15; strcpy((char *)Block, "NA"); } if ( *(_QWORD *)(v50 + 24) > 0xFu ) v50 = *(_QWORD *)v50; v55 = Block; if ( v52 > 0xF ) v55 = (void **)Block[0]; v56 = "Friends"; if ( v48 ) v56 = "Following"; v57 = cocos2d::CCString::createWithFormat("%s since %s\n(%s)", v56, (const char *)v55, (const char *)v50); CString = cocos2d::CCString::getCString(v57); *(_OWORD *)Buffer = 0; v102 = 0; v103 = 0; do ++v51; while ( CString[v51] ); sub_14003D230(Buffer, CString, v51); if ( v99 > 0xF ) { v59 = Block[0]; if ( v99 + 1 >= 0x1000 ) { v59 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v59 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v59); } v98 = 0; v99 = 15; LOBYTE(Block[0]) = 0; sub_14003D310((__int64)v100); v87[0] = &v93; v93 = 0; v94 = 0; v95 = 0; v61 = Buffer; v62 = *(char **)Buffer; if ( v103 > 0xF ) v61 = *(char **)Buffer; v63 = 0x7FFFFFFFFFFFFFFFLL; v64 = v102; if ( v102 > 0x7FFFFFFFFFFFFFFFLL ) sub_140009D90(v60); if ( v102 > 0xF ) { if ( (v102 | 0xF) <= 0x7FFFFFFFFFFFFFFFLL ) { v63 = v102 | 0xF; if ( (v102 | 0xF) < 0x16 ) v63 = 22; } *(_QWORD *)&v93 = sub_14003D460(v63 + 1); v94 = v64; v95 = v63; memcpy((void *)v93, v61, v64 + 1); } else { v94 = v102; v95 = 15; v93 = *(_OWORD *)v61; } sub_14003F4F0((__int64)v96, a1 + 320); v65 = InfoAlertButton::create(v96, &v93); v66 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v65 + 952LL))(v65); v67 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v65 + 952LL))(v65); v68 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v66 + 320LL))(v66); v69 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v67 + 168LL))(v67); v70 = *(float *)&v69 * *v68; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v91, (float)(v70 * 0.5) + (float)(v29 + 5.0), v89 - 1.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v65 + 184LL))(v65, &v91); if ( a7 ) { v71 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v65 + 952LL))(v65); LOBYTE(v72) = 110; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(v71 + 320) + 40LL))(v71 + 320, v72); } (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)Src[0] + 456LL))(Src[0], v65, 2); v29 = v29 + (float)(v70 + 5.0); if ( v103 > 0xF ) { v73 = v62; if ( v103 + 1 >= 0x1000 ) { v62 = *((char **)v62 - 1); if ( (unsigned __int64)(v73 - v62 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v62); } v22 = v86; } if ( *(_BYTE *)(a1 + 796) ) { v74 = cocos2d::CCLabelBMFont::create("New!", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v74 + 160LL))(v74); v75 = *(_QWORD *)v74; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v87, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v75 + 288))(v74, v76); v77 = *(_QWORD *)v74; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v87, v29 + 8.0, v89); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v77 + 184))(v74, v78); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v74 + 64LL))(v74, 100); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a2 + 456LL))(a2, v74, 10); } LODWORD(v86) = 1110966272; GJCompactUserCell::addStat(*(unsigned int *)(a1 + 396), "GJ_starsIcon_001.png", a2, &v86, a6 - 8.0, a7); LOBYTE(v81) = a7; GJCompactUserCell::addStat(*(unsigned int *)(a1 + 400), &xmmword_14073A060, a2, &v86, a6 - 8.0, v81); LOBYTE(v82) = a7; GJCompactUserCell::addStat(*(unsigned int *)(a1 + 408), &xmmword_14073A1F8, a2, &v86, a6 - 8.0, v82); v79 = *(unsigned int *)(a1 + 416); if ( (int)v79 > 0 ) { LOBYTE(v83) = a7; GJCompactUserCell::addStat(v79, "GJ_hammerIcon_001.png", a2, &v86, a6 - 8.0, v83); } return v22; }