//
// AccountReviewPopup::viewedByLabel from 0xc3fc34 to 0xc3fd58 (292 bytes)
//
// 3 xrefs:
// > AccountReviewPopup::updateCard @ 0xc4aa44
// > ReportQueuePopup::buildRows @ 0xc50e60
// > ??> @ 0xff028
//
// 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 13:04:56 +0000
//
cocos2d::CCLabelBMFont *__fastcall AccountReviewPopup::viewedByLabel(unsigned __int8 *a1, __int64 a2, float a3)
{
int v3; // w2
const char *v5; // x0
__int64 v6; // x2
cocos2d::CCString *v7; // x0
cocos2d::CCLabelBMFont *CString; // x0
const char *v9; // x2
cocos2d::CCLabelBMFont *v10; // x19
void (__fastcall *v11)(cocos2d::CCLabelBMFont *, _BYTE *); // x22
void (__fastcall *v12)(cocos2d::CCLabelBMFont *, _BYTE *); // x2
_BYTE v14[8]; // [xsp+40h] [xbp+40h] BYREF
v3 = *a1;
if ( (v3 & 1) != 0 )
{
if ( !*((_QWORD *)a1 + 1) )
{
LABEL_3:
v5 = "?";
goto LABEL_4;
}
v5 = *((const char **)a1 + 2);
}
else
{
if ( !(v3 >> 1) )
goto LABEL_3;
v5 = (const char *)(a1 + 1);
}
LABEL_4:
v6 = a2 + 1;
if ( (*(_BYTE *)a2 & 1) != 0 )
v6 = *(_QWORD *)(a2 + 16);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Viewed by %s %s ago", v5, v6);
CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v7);
v10 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt", v9);
v11 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v10 + 296LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 1.0, 0.5);
v11(v10, v14);
cocos2d::CCLabelBMFont::limitLabelWidth(v10, 150.0, a3, 0.2);
v12 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v10 + 1072LL);
v14[0] = -106;
v14[1] = -36;
v14[2] = -1;
v12(v10, v14);
return v10;
}