//
// GJCompactUserCell::buildUserRow from 0x42e128 to 0x42e688 (1376 bytes)
//
// 6 xrefs:
// > GJCompactUserCell::loadFromScore @ 0x42e73e
// > GJRequestCell::loadFromScore @ 0x42e8a8
// > FriendsProfilePage::mountVirtualRow @ 0x5f3600
// > FriendPickerPopup::mountVirtualRow @ 0x7461d6
// > MemberListPopup::buildRows @ 0x747e16
// > MemberListPopup::buildRows @ 0x747f52
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:48:12 +0000
//
cocos2d::CCLabelBMFont *__fastcall GJCompactUserCell::buildUserRow(
int a1,
GJUserScore *a2,
int a3,
int a4,
int a5,
int a6,
float a7,
char a8,
char a9)
{
SimplePlayer *v12; // r4
int (__fastcall *v13)(SimplePlayer *, __int16 *); // r7
GameManager *v14; // r0
int (__fastcall *v15)(SimplePlayer *, __int16 *); // r7
GameManager *v16; // r0
int v17; // r0
GameManager *v18; // r0
GameManager *v19; // r0
int v20; // r0
char v21; // r3
int v22; // r7
const char *v23; // r2
cocos2d::CCLabelBMFont *v24; // r0
cocos2d::CCLabelBMFont *v25; // r4
void (__fastcall *v26)(cocos2d::CCLabelBMFont *, __int16 *); // r2
float v27; // s16
float v28; // r0
int v29; // r8
float v30; // s16
float v31; // s18
float v32; // r0
const char *v33; // r1
const char *v34; // r2
int v35; // r3
time_t v36; // r9
float v37; // s16
GameLevelManager *v38; // r0
int v39; // r0
int v40; // r7
float v41; // s18
float v42; // r0
void (__fastcall *v43)(int, __int16 *); // r8
float v44; // s18
const char *v45; // r10
char *v46; // r3
cocos2d::CCLabelBMFont *v47; // r3
cocos2d::CCString *v48; // r0
const char *CString; // r9
size_t v50; // r0
int v51; // r9
int v52; // r0
float v53; // s18
int v54; // r0
float v55; // s18
int v56; // r0
int v57; // r7
void (__fastcall *v58)(int, __int16 *); // r9
void (__fastcall *v59)(int, __int16 *); // r9
bool v61; // [sp+4h] [bp-50h]
char *v63; // [sp+10h] [bp-44h]
float v64; // [sp+18h] [bp-3Ch] BYREF
float v65; // [sp+1Ch] [bp-38h]
__int16 v66; // [sp+20h] [bp-34h] BYREF
char v67; // [sp+22h] [bp-32h]
int v68[3]; // [sp+28h] [bp-2Ch] BYREF
int v69[3]; // [sp+34h] [bp-20h] BYREF
int v70; // [sp+40h] [bp-14h] BYREF
int v71; // [sp+44h] [bp-10h]
cocos2d::CCLabelBMFont *v72; // [sp+48h] [bp-Ch]
v12 = (SimplePlayer *)SimplePlayer::create((SimplePlayer *)((char *)&dword_0 + 1), (int)a2);
(*(void (__fastcall **)(SimplePlayer *, int))(*(_DWORD *)v12 + 80))(v12, 1061997773);
v13 = *(int (__fastcall **)(SimplePlayer *, __int16 *))(*(_DWORD *)v12 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v66, 22.0, a7);
v14 = (GameManager *)v13(v12, &v66);
v15 = *(int (__fastcall **)(SimplePlayer *, __int16 *))(*(_DWORD *)v12 + 480);
v16 = (GameManager *)GameManager::sharedState(v14);
v17 = GameManager::colorForIdx(v16, *(_DWORD *)(a1 + 336));
v66 = v17;
v67 = BYTE2(v17);
v18 = (GameManager *)v15(v12, &v66);
v19 = (GameManager *)GameManager::sharedState(v18);
v20 = GameManager::colorForIdx(v19, *(_DWORD *)(a1 + 340));
v66 = v20;
v67 = BYTE2(v20);
SimplePlayer::setSecondColor(v12, &v66);
SimplePlayer::tryEnableCustomGlowColor(v12, *(_DWORD *)(a1 + 344));
if ( *(_DWORD *)(a1 + 348) == 2 )
v21 = 1;
else
v21 = *(_BYTE *)(a1 + 504);
*((_BYTE *)v12 + 540) = v21;
SimplePlayer::updatePlayerFrame(v12, *(_DWORD *)(a1 + 332), *(_DWORD *)(a1 + 352));
SimplePlayer::updateColors(v12);
if ( a8 )
(*(void (__fastcall **)(SimplePlayer *, int))(*(_DWORD *)v12 + 456))(v12, 110);
(*(void (__fastcall **)(GJUserScore *, SimplePlayer *, int))(*(_DWORD *)a2 + 232))(a2, v12, 1);
std::string::basic_string(&v70, a1 + 264);
if ( (v70 & 1) != 0 )
v22 = v71;
else
v22 = (int)(unsigned __int8)v70 >> 1;
std::string::~string((int)&v70);
if ( !v22 )
{
v70 = 0;
v71 = 0;
v72 = nullptr;
std::string::__init(&v70, "-", 1u);
std::string::operator=((unsigned __int8 *)(a1 + 264), (unsigned __int8 *)&v70);
std::string::~string((int)&v70);
}
std::string::basic_string(&v70, a1 + 264);
if ( (v70 & 1) != 0 )
v24 = v72;
else
v24 = (cocos2d::CCLabelBMFont *)((char *)&v70 + 1);
v25 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v24, "goldFont.fnt", v23);
std::string::~string((int)&v70);
cocos2d::CCLabelBMFont::limitLabelWidth(v25, 150.0, 0.6, 0.0);
if ( a8 )
{
v26 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int16 *))(*(_DWORD *)v25 + 536);
v66 = -32126;
v67 = -126;
v26(v25, &v66);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v25 + 512))(v25, 150);
}
v27 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v25 + 164))(v25);
v28 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v25 + 84))(v25);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v64, (float)((float)(v27 * 0.5) * v28) + 46.0, a7 + 9.5);
v29 = CCMenuItemSpriteExtra::create((int)v25, 0, a4, a5, a6);
CCMenuItemSpriteExtra::setSizeMult(v29, 1.4);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v29 + 324))(v29, a1);
(*(void (__fastcall **)(int, float *))(*(_DWORD *)v29 + 92))(v29, &v64);
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)a3 + 232))(a3, v29, 2);
v30 = v64;
v31 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v25 + 164))(v25);
v32 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v25 + 84))(v25);
v35 = *(_DWORD *)(a1 + 520);
v36 = *(_DWORD *)(a1 + 376);
v37 = v30 + (float)((float)(v31 * 0.5) * v32);
if ( v35 == 1 || v36 > 0 )
{
LABEL_21:
if ( a9 )
{
v40 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_sFriendsIcon_001.png", v33);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v40 + 80))(v40, 1060320051);
v41 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v40 + 164))(v40);
v42 = (*(float (__fastcall **)(int))(*(_DWORD *)v40 + 84))(v40);
v43 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v40 + 92);
v44 = v41 * v42;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v66, (float)(v37 + 5.0) + (float)(v44 * 0.5), v65 - 1.0);
v43(v40, &v66);
if ( a8 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v40 + 456))(v40, 110);
(*(void (__fastcall **)(GJUserScore *, int, int))(*(_DWORD *)a2 + 232))(a2, v40, 2);
v37 = v37 + (float)(v44 + 5.0);
}
goto LABEL_25;
}
if ( !v35 )
{
v38 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)LODWORD(v32));
v39 = GameLevelManager::storedFriendForAccountID(v38, *(_DWORD *)(a1 + 296));
if ( !v39 )
goto LABEL_38;
v36 = *(_DWORD *)(v39 + 376);
goto LABEL_21;
}
LABEL_25:
if ( v36 > 0 )
{
if ( *(_BYTE *)(a1 + 552) )
v45 = "Following";
else
v45 = "Friends";
GameToolbox::timestampToDayString((GameToolbox *)v69, v36);
if ( (v69[0] & 1) != 0 )
v46 = (char *)v69[2];
else
v46 = (char *)v69 + 1;
v63 = v46;
GameToolbox::timestampToHumanReadable((GameToolbox *)&v70, v36);
if ( (v70 & 1) != 0 )
v47 = v72;
else
v47 = (cocos2d::CCLabelBMFont *)((char *)&v70 + 1);
v48 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s since %s\n(%s)",
v45,
v63,
v47);
CString = (const char *)cocos2d::CCString::getCString(v48);
memset(v68, 0, sizeof(v68));
v50 = strlen(CString);
std::string::__init(v68, CString, v50);
std::string::~string((int)&v70);
std::string::~string((int)v69);
std::string::basic_string(v69, a1 + 264);
std::string::basic_string(&v70, (int)v68);
v51 = InfoAlertButton::create(v69, &v70, 1053609165);
std::string::~string((int)&v70);
std::string::~string((int)v69);
v52 = (*(int (__fastcall **)(int))(*(_DWORD *)v51 + 536))(v51);
v53 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v52 + 164))(v52);
v54 = (*(int (__fastcall **)(int))(*(_DWORD *)v51 + 536))(v51);
v55 = v53 * (*(float (__fastcall **)(int))(*(_DWORD *)v54 + 84))(v54);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v66, (float)(v37 + 5.0) + (float)(v55 * 0.5), v65 - 1.0);
(*(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v51 + 92))(v51, &v66);
if ( a8 )
{
v56 = (*(int (__fastcall **)(int))(*(_DWORD *)v51 + 536))(v51);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v56 + 456))(v56, 110);
}
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)a3 + 232))(a3, v51, 2);
v37 = v37 + (float)(v55 + 5.0);
std::string::~string((int)v68);
}
LABEL_38:
if ( *(_BYTE *)(a1 + 556) )
{
v57 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"New!", "goldFont.fnt", v34);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v57 + 80))(v57, 1055286886);
v58 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v57 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v66, 0.0, 0.5);
v58(v57, &v66);
v59 = *(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v57 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v66, v37 + 8.0, v65);
v59(v57, &v66);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v57 + 36))(v57, 100);
(*(void (__fastcall **)(GJUserScore *, int, int))(*(_DWORD *)a2 + 232))(a2, v57, 10);
}
GJCompactUserCell::createStatStrip(
(GJCompactUserCell **)a1,
a2,
(cocos2d::CCNode *)0x42380000,
COERCE_FLOAT_(a7 - 8.0),
COERCE_FLOAT(a8),
v61);
return v25;
}