//
// MessagesProfilePage::untoggleAll from 0x5ef7d2 to 0x5ef816 (68 bytes)
//
// 2 xrefs:
// > MessagesProfilePage::loadPage @ 0x5f0424
// > MessagesProfilePage::onClose @ 0x5f0e1c
//
// 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:26 +0000
//
int __fastcall MessagesProfilePage::untoggleAll(MessagesProfilePage *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 + 540) & 1) != 0 )
v3 = *((const char **)this + 137);
else
v3 = (char *)this + 541;
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 + 326) = 0;
}
}
}
return result;
}