//
// sub_1004F5648 from 0x1004f5648 to 0x1004f5750 (264 bytes)
//
// 1 xrefs:
// > MessageThreadsPage::init @ 0x1004f4c9c
//
// 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:06:47 +0000
//
void __fastcall sub_1004F5648(__int64 a1)
{
__int64 v2; // x0
signed int v3; // w20
__int64 v4; // x23
std::string::size_type size; // x8
void *v6; // x0
const std::string::value_type *CString; // x0
__int64 v8; // x0
std::string v9; // [xsp+8h] [xbp-48h] BYREF
if ( (unsigned int)sub_1004F5EB4(a1) )
{
v2 = *(_QWORD *)(a1 + 800);
if ( v2 )
{
v3 = 0;
memset(&v9, 0, sizeof(v9));
while ( v3 < (int)sub_1002E757C(v2) )
{
v4 = sub_1002E75A0(*(_QWORD *)(a1 + 800), v3);
if ( (*(_BYTE *)(v4 + 304) & 1) != 0 )
{
size = HIBYTE(v9.__r_.__value_.__r.__words[2]);
if ( (v9.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
size = v9.__r_.__value_.__l.__size_;
if ( size )
std::string::append(&v9, ",");
v6 = sub_1003065B0("%i", *(_DWORD *)(v4 + 56));
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v6);
std::string::append(&v9, CString);
}
++v3;
v2 = *(_QWORD *)(a1 + 800);
}
v8 = GameLevelManager::sharedState();
if ( (sub_1000C8838(v8, 0, 3, (__int64)&v9) & 1) != 0 )
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 664;
if ( SHIBYTE(v9.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v9.__r_.__value_.__l.__data_);
}
}
}