//
// FRequestProfilePage::untoggleAll from 0x100871780 to 0x1008717ef (111 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:36:51 +0000
//
_QWORD *__fastcall FRequestProfilePage::untoggleAll(__int64 a1)
{
__int64 v1; // rax
const char *v2; // rbx
_QWORD *result; // rax
__int64 v4; // rcx
unsigned __int64 v5; // rcx
v1 = GameLevelManager::sharedState();
if ( (*(_BYTE *)(a1 + 712) & 1) != 0 )
v2 = *(const char **)(a1 + 728);
else
v2 = (const char *)(a1 + 713);
result = (_QWORD *)GameLevelManager::getStoredOnlineLevels(v1, v2);
if ( result )
{
result = (_QWORD *)result[7];
v4 = *(unsigned int *)result;
if ( *(_DWORD *)result )
{
result = (_QWORD *)result[2];
v5 = (unsigned __int64)&result[v4 - 1];
do
{
if ( !*result )
break;
*(_BYTE *)(*result++ + 725LL) = 0;
}
while ( (unsigned __int64)result <= v5 );
}
}
return result;
}