//
// sub_10024CA00 from 0x10024ca00 to 0x10024cb60 (352 bytes)
//
// 2 xrefs:
// > FRequestProfilePage::FLAlert_Clicked @ 0x10024cc74
// > sub_10024CC84 @ 0x10024ccbc
//
// 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
//
__int64 __fastcall sub_10024CA00(__int64 a1)
{
__int64 v2; // x0
char *v3; // x1
__int64 result; // x0
__int64 v5; // x20
__int64 v6; // x21
unsigned int *v7; // x9
__int64 v8; // x8
__int64 v9; // x20
_QWORD *v10; // x23
unsigned __int64 v11; // x24
__int64 v12; // x22
__int64 v13; // x0
__int64 v14; // x0
char *v15; // x1
__int64 v16; // x0
void *__p[2]; // [xsp+8h] [xbp-48h] BYREF
char v18; // [xsp+1Fh] [xbp-31h]
v2 = GameLevelManager::sharedState();
v3 = (char *)(a1 + 712);
if ( *(char *)(a1 + 735) < 0 )
v3 = *(char **)v3;
result = GameLevelManager::getStoredOnlineLevels(v2, v3);
if ( result )
{
v5 = result;
v6 = sub_1002E736C(result);
v7 = *(unsigned int **)(v5 + 56);
v8 = *v7;
if ( (_DWORD)v8 )
{
v9 = 0;
v10 = *((_QWORD **)v7 + 2);
v11 = (unsigned __int64)&v10[v8 - 1];
do
{
v12 = *v10;
if ( !*v10 )
break;
if ( *(_BYTE *)(v12 + 725) == 1 )
{
sub_1002E74E0(v6, *v10);
if ( (*(_BYTE *)(a1 + 704) & 1) == 0 && *(_BYTE *)(v12 + 724) == 1 )
{
*(_BYTE *)(v12 + 724) = 0;
v9 = (unsigned int)(v9 + 1);
}
}
++v10;
}
while ( (unsigned __int64)v10 <= v11 );
}
else
{
v9 = 0;
}
result = sub_1002E757C(v6);
if ( (_DWORD)result )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1376) = a1 + 688;
*(_QWORD *)(GameLevelManager::sharedState() + 1360) = a1 + 672;
v13 = GameLevelManager::sharedState();
v14 = sub_1000C9D68(v13, 0, v6, *(unsigned __int8 *)(a1 + 704));
if ( (_DWORD)v14 )
{
if ( *(_BYTE *)(a1 + 704) )
v15 = "Deleting Requests...";
else
v15 = "Ignoring Requests...";
sub_100009900(__p, v15);
v16 = UploadActionPopup::create(a1 + 680, __p);
*(_QWORD *)(a1 + 800) = v16;
if ( v18 < 0 )
{
operator delete(__p[0]);
v16 = *(_QWORD *)(a1 + 800);
}
v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 1312LL))(v16);
}
return sub_10024CB7C(v14, v9);
}
}
return result;
}