//
// MessagesProfilePage::untoggleAll from 0xa4a064 to 0xa4a0d8 (116 bytes)
//
// 3 xrefs:
// > MessagesProfilePage::loadPage @ 0xa4b18c
// > MessagesProfilePage::onClose @ 0xa4be44
// > ??> @ 0xfa0a8
//
// 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:01 +0000
//
unsigned __int64 __fastcall MessagesProfilePage::untoggleAll(MessagesProfilePage *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 + 705;
if ( (*((_BYTE *)this + 704) & 1) != 0 )
v3 = *((const char **)this + 90);
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 + 426) = 0 )
{
v7 = *(_QWORD *)result;
if ( !*(_QWORD *)result )
break;
result += 8LL;
}
}
}
return result;
}