//
// sub_10024C070 from 0x10024c070 to 0x10024c220 (432 bytes)
//
// 1 xrefs:
// > FRequestProfilePage::init @ 0x10024b554
//
// 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_10024C070(_BYTE *a1)
{
__int64 v2; // x0
char *v3; // x1
__int64 StoredOnlineLevels; // x0
unsigned int *v5; // x8
__int64 v6; // x9
unsigned __int64 v7; // x8
unsigned __int64 v8; // x9
__int64 *v9; // x19
void **v10; // x8
_QWORD v12[2]; // [xsp+8h] [xbp-58h] BYREF
char v13; // [xsp+1Fh] [xbp-41h]
_QWORD v14[2]; // [xsp+20h] [xbp-40h] BYREF
char v15; // [xsp+37h] [xbp-29h]
void *v16[2]; // [xsp+38h] [xbp-28h] BYREF
char v17; // [xsp+4Fh] [xbp-11h]
v2 = GameLevelManager::sharedState();
v3 = a1 + 712;
if ( (char)a1[735] < 0 )
v3 = *(char **)v3;
StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v2, v3);
if ( StoredOnlineLevels )
{
v5 = *(unsigned int **)(StoredOnlineLevels + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((_QWORD *)v5 + 2);
v8 = v7 + 8 * v6 - 8;
while ( 1 )
{
if ( !*(_QWORD *)v7 )
goto LABEL_9;
if ( (*(_BYTE *)(*(_QWORD *)v7 + 725LL) & 1) != 0 )
break;
v7 += 8LL;
if ( v7 > v8 )
goto LABEL_9;
}
if ( a1[704] == 1 )
{
sub_100009900(v14, "Are you sure you want to delete the selected requests?");
v9 = (__int64 *)FLAlertLayer::create(a1 + 664, "Delete", v14, "Back", "Delete", 0, 380.0, 0.0, 1.0);
if ( v15 < 0 )
{
v10 = (void **)v14;
LABEL_16:
operator delete(*v10);
}
}
else
{
sub_100009900(
v12,
"Ignore the selected requests?\nThey won't be notified.\nChange your mind under Ignored.");
v9 = (__int64 *)FLAlertLayer::create(a1 + 664, "Ignore", v12, "Back", "Ignore", 0, 380.0, 0.0, 1.0);
if ( v13 < 0 )
{
v10 = (void **)v12;
goto LABEL_16;
}
}
ButtonSprite::updateBGImage(v9[77], (__int64)"GJ_button_06.png");
(*(void (__fastcall **)(__int64 *, __int64))(*v9 + 72))(v9, 3);
return (*(__int64 (__fastcall **)(__int64 *))(*v9 + 1312))(v9);
}
}
LABEL_9:
sub_100009900(v16, "No requests selected.");
v9 = (__int64 *)sub_10034A8F8(0, "Nothing here...", v16, "OK", 0);
if ( v17 < 0 )
operator delete(v16[0]);
return (*(__int64 (__fastcall **)(__int64 *))(*v9 + 1312))(v9);
}