//
// FRequestProfilePage::untoggleAll from 0xa4c780 to 0xa4c7f4 (116 bytes)
//
// 4 xrefs:
// > FRequestProfilePage::onClose @ 0xa4c844
// > FRequestProfilePage::loadPage @ 0xa4dd98
// > FRequestProfilePage::onMarkRead @ 0xa4f524
// > ??> @ 0xedb68
//
// 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 13:00:03 +0000
//
unsigned __int64 __fastcall FRequestProfilePage::untoggleAll(FRequestProfilePage *this)
{
GameLevelManager *v2; // x0
const char *v3; // x1
unsigned __int64 result; // x0
unsigned int v5; // w1
unsigned __int64 i; // x2
__int64 v7; // x1
v2 = (GameLevelManager *)GameLevelManager::sharedState(this);
v3 = (char *)this + 713;
if ( (*((_BYTE *)this + 712) & 1) != 0 )
v3 = *((const char **)this + 91);
result = GameLevelManager::getStoredOnlineLevels(v2, v3);
if ( result )
{
result = *(_QWORD *)(result + 56);
v5 = *(_DWORD *)result;
if ( *(_DWORD *)result )
{
result = *(_QWORD *)(result + 16);
for ( i = result + 8LL * v5 - 8; i >= result; *(_BYTE *)(v7 + 725) = 0 )
{
v7 = *(_QWORD *)result;
if ( !*(_QWORD *)result )
break;
result += 8LL;
}
}
}
return result;
}