//
// AccountReviewPopup::viewedByLabel from 0x1400af3a0 to 0x1400af47b (219 bytes)
//
// 2 xrefs:
// > AccountReviewPopup::updateCard @ 0x1400b2980
// > ??> @ 0x1409134f0
//
// 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:26:11 +0000
//
struct cocos2d::CCLabelBMFont *__fastcall AccountReviewPopup::viewedByLabel(const char *a1, const char *a2, float a3)
{
cocos2d::CCString *v3; // rax
const char *CString; // rax
struct cocos2d::CCLabelBMFont *v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
void (__fastcall **v8)(__int64, __int16 *); // rax
__int16 v10; // [rsp+40h] [rbp+8h] BYREF
char v11; // [rsp+42h] [rbp+Ah]
if ( *((_QWORD *)a1 + 2) )
{
if ( *((_QWORD *)a1 + 3) > 0xFu )
a1 = *(const char **)a1;
}
else
{
a1 = "?";
}
if ( *((_QWORD *)a2 + 3) > 0xFu )
a2 = *(const char **)a2;
v3 = cocos2d::CCString::createWithFormat("Viewed by %s %s ago", a1, a2);
CString = cocos2d::CCString::getCString(v3);
v5 = cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt");
v6 = *(_QWORD *)v5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, 1.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v6 + 288))(v5, v7);
cocos2d::CCLabelBMFont::limitLabelWidth(v5, 150.0, a3, 0.2);
v10 = -9066;
v8 = *((void (__fastcall ***)(__int64, __int16 *))v5 + 46);
v11 = -1;
(*v8)((__int64)v5 + 368, &v10);
return v5;
}