//
// sub_10024BE00 from 0x10024be00 to 0x10024c018 (536 bytes)
//
// 1 xrefs:
// > FRequestProfilePage::init @ 0x10024b524
//
// 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:01:29 +0000
//
void __fastcall sub_10024BE00(__int64 a1)
{
__int64 v2; // x0
char *v3; // x1
__int64 StoredOnlineLevels; // x0
unsigned int *v5; // x9
__int64 v6; // x8
int v7; // w20
__int64 *v8; // x24
unsigned __int64 v9; // x25
__int64 v10; // x27
__int64 v11; // x0
__int64 v12; // x23
std::string::size_type size; // x8
__int64 v14; // x0
const std::string::value_type *CString; // x0
std::string::size_type v16; // x8
__int64 v17; // x0
__int64 v18; // x20
__int64 v19; // x0
void *__p[2]; // [xsp+8h] [xbp-98h] BYREF
char v21; // [xsp+1Fh] [xbp-81h]
void *v22[2]; // [xsp+20h] [xbp-80h] BYREF
char v23; // [xsp+37h] [xbp-69h]
std::string v24; // [xsp+38h] [xbp-68h] BYREF
if ( (*(_BYTE *)(a1 + 880) & 1) == 0 && (*(_BYTE *)(a1 + 704) & 1) == 0 )
{
v2 = GameLevelManager::sharedState();
v3 = (char *)(a1 + 712);
if ( *(char *)(a1 + 735) < 0 )
v3 = *(char **)v3;
StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, v3);
if ( StoredOnlineLevels )
{
memset(&v24, 0, sizeof(v24));
v5 = *(unsigned int **)(StoredOnlineLevels + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = 0;
v8 = *((__int64 **)v5 + 2);
v9 = (unsigned __int64)&v8[v6 - 1];
do
{
v10 = *v8;
if ( !*v8 )
break;
if ( *(_BYTE *)(v10 + 725) == 1 && *(_BYTE *)(v10 + 724) == 1 )
{
v11 = GameLevelManager::sharedState();
v12 = GameLevelManager::friendRequestFromAccountID(v11, *(_DWORD *)(v10 + 376));
if ( v12 )
{
size = HIBYTE(v24.__r_.__value_.__r.__words[2]);
if ( (v24.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
size = v24.__r_.__value_.__l.__size_;
if ( size )
std::string::append(&v24, ",");
v14 = sub_1003065B0("%i", *(_DWORD *)(v12 + 316));
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v14);
std::string::append(&v24, CString);
*(_BYTE *)(v12 + 376) = 1;
*(_BYTE *)(v10 + 724) = 0;
++v7;
}
}
++v8;
}
while ( (unsigned __int64)v8 <= v9 );
v16 = HIBYTE(v24.__r_.__value_.__r.__words[2]);
if ( (v24.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v16 = v24.__r_.__value_.__l.__size_;
if ( v16 )
{
v17 = GameLevelManager::sharedState();
sub_1000CA608(v17, (const char *)&v24);
}
}
sub_10024CB7C();
v18 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
sub_100009900(v22, "Marked as read");
sub_100009900(__p, "");
v19 = TextAlertPopup::create(v22, 150, __p, 0.5, 0.6);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v18 + 464LL))(v18, v19, 1000);
if ( v21 < 0 )
operator delete(__p[0]);
if ( v23 < 0 )
operator delete(v22[0]);
sub_10024CBD4(a1);
sub_10024C268(a1);
CustomListView::reloadAll(*(_QWORD *)(*(_QWORD *)(a1 + 784) + 544LL));
if ( SHIBYTE(v24.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v24.__r_.__value_.__l.__data_);
}
}
}