//
// FRequestProfilePage::untoggleAll from 0x5f1288 to 0x5f12cc (68 bytes)
//
// 3 xrefs:
// > FRequestProfilePage::onClose @ 0x5f12fc
// > FRequestProfilePage::loadPage @ 0x5f21d2
// > FRequestProfilePage::onMarkRead @ 0x5f3154
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:27 +0000
//
int __fastcall FRequestProfilePage::untoggleAll(FRequestProfilePage *this)
{
GameLevelManager *v2; // r0
const char *v3; // r1
int result; // r0
_DWORD *v5; // r2
int v6; // r3
int *v7; // r2
int *v8; // r3
int v9; // r1
int v10; // t1
v2 = (GameLevelManager *)GameLevelManager::sharedState(this);
if ( (*((_BYTE *)this + 544) & 1) != 0 )
v3 = *((const char **)this + 138);
else
v3 = (char *)this + 545;
result = GameLevelManager::getStoredOnlineLevels(v2, v3);
if ( result )
{
v5 = *(_DWORD **)(result + 52);
if ( *v5 )
{
v6 = *v5 + 0x40000000;
v7 = (int *)v5[3];
result = 0;
v8 = &v7[v6 - 1];
while ( v7 <= v8 )
{
v10 = *v7++;
v9 = v10;
if ( !v10 )
break;
*(_BYTE *)(v9 + 557) = 0;
}
}
}
return result;
}