//
// sub_1005490A8 from 0x1005490a8 to 0x100549540 (1176 bytes)
//
// 1 xrefs:
// > sub_1005452FC @ 0x100546428
//
// 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 11:07:49 +0000
//
void __fastcall sub_1005490A8(__int64 a1, __int64 a2, float a3)
{
float v6; // s9
void *v7; // x21
void *v8; // x22
__int64 v9; // x0
void *v10; // x0
const std::string::value_type *CString; // x0
std::string *v12; // x0
void *v13; // x21
unsigned int v14; // w0
const char *v15; // x0
void *v16; // x22
float v17; // s10
void *v18; // x21
__int64 v19; // [xsp+8h] [xbp-68h] BYREF
float v20; // [xsp+10h] [xbp-60h] BYREF
std::string v21; // [xsp+18h] [xbp-58h] BYREF
v6 = a3 + 10.0;
sub_1000262CC((float *)&v21, 0.0, 0.0, 40.0, 40.0);
v7 = cocos2d::extension::CCScale9Sprite::create((__int64)"square02_small.png", (__int64)&v21);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v7 + 912LL))(v7, 60);
v21.__r_.__value_.__s.__data_[2] = 0;
LOWORD(v21.__r_.__value_.__l.__data_) = 0;
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v7 + 960LL))(v7, &v21);
sub_1000262C4((float *)&v21, *(float *)(a1 + 704) + -8.0, 40.0);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v7 + 320LL))(v7, &v21);
sub_1000262BC((float *)&v21, *(float *)(a1 + 704) * 0.5, a3);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v7 + 184LL))(v7, &v21);
(*(void (__fastcall **)(__int64, void *, _QWORD))(*(_QWORD *)a2 + 464LL))(a2, v7, 0);
v8 = cocos2d::CCLabelBMFont::create_1("Account", "bigFont.fnt");
sub_1000262BC((float *)&v21, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v8 + 296LL))(v8, &v21);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v8 + 160LL))(v8, 0.32);
v9 = sub_10051FB44(0);
LOWORD(v21.__r_.__value_.__l.__data_) = v9;
v21.__r_.__value_.__s.__data_[2] = BYTE2(v9);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v8 + 1072LL))(v8, &v21);
sub_1000262BC((float *)&v21, 32.0, v6);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v8 + 184LL))(v8, &v21);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a2 + 464LL))(a2, v8, 1);
sub_100544550(*(_DWORD *)(a1 + 1368), "report", &v21);
if ( *(int *)(a1 + 1372) >= 1 )
{
v10 = sub_1003065B0(" +%i anonymous", *(_DWORD *)(a1 + 1372));
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v10);
std::string::append(&v21, CString);
}
if ( (v21.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v12 = &v21;
else
v12 = (std::string *)v21.__r_.__value_.__r.__words[0];
v13 = cocos2d::CCLabelBMFont::create_1((const char *)v12, "chatFont.fnt");
sub_1000262BC(&v20, 0.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v13 + 296LL))(v13, &v20);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v13 + 160LL))(v13, 0.45);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v13 + 1024LL))(v13, 180);
(*(void (__fastcall **)(__int64 *__return_ptr, void *))(*(_QWORD *)v8 + 336LL))(&v19, v8);
sub_1000262BC(&v20, (float)(*(float *)&v19 + 32.0) + 8.0, v6);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v13 + 184LL))(v13, &v20);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a2 + 464LL))(a2, v13, 1);
v14 = *(_DWORD *)(a1 + 1376);
if ( (v14 & 0x80000000) == 0 )
{
v15 = sub_10051F9C4(v14);
v16 = cocos2d::CCLabelBMFont::create_1(v15, "chatFont.fnt");
sub_1000262BC(&v20, 0.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v16 + 296LL))(v16, &v20);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v16 + 160LL))(v16, 0.4);
BYTE2(v20) = 60;
LOWORD(v20) = -11521;
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v16 + 1072LL))(v16, &v20);
v17 = (*(float (__fastcall **)(void *))(*(_QWORD *)v13 + 224LL))(v13);
(*(void (__fastcall **)(__int64 *__return_ptr, void *))(*(_QWORD *)v13 + 336LL))(&v19, v13);
sub_1000262BC(&v20, (float)(v17 + *(float *)&v19) + 8.0, v6);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v16 + 184LL))(v16, &v20);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a2 + 464LL))(a2, v16, 1);
}
v18 = cocos2d::CCLabelBMFont::create_1(
"Reported from the profile page, no content attached. Clear removes these.",
"chatFont.fnt");
sub_1000262BC(&v20, 0.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v18 + 296LL))(v18, &v20);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v18, *(float *)(a1 + 704) + -50.0, 0.5, 0.2);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v18 + 1024LL))(v18, 150);
sub_1000262BC(&v20, 32.0, a3 + -10.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v18 + 184LL))(v18, &v20);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a2 + 464LL))(a2, v18, 1);
if ( SHIBYTE(v21.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v21.__r_.__value_.__l.__data_);
}