//
// FRequestProfilePage::untoggleAll from 0x140211e70 to 0x140211f0e (158 bytes)
//
// 4 xrefs:
// > FRequestProfilePage::onMarkRead @ 0x140211991
// > FRequestProfilePage::onClose @ 0x140211e17
// > FRequestProfilePage::loadPage @ 0x140212459
// > ??> @ 0x14091b56c
//
// 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 11:28:19 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall FRequestProfilePage::untoggleAll(__int64 a1)
{
_QWORD *v1; // rbx
__int64 v2; // rcx
_QWORD *result; // rax
__int64 v4; // rcx
_QWORD *i; // rdx
void *v6; // [rsp+30h] [rbp+8h]
v1 = (_QWORD *)(a1 + 712);
if ( *(_QWORD *)(a1 + 736) > 0xFu )
v1 = (_QWORD *)*v1;
v2 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v6 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v6);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v2 = *(_QWORD *)&qword_14090BFB0;
}
result = (_QWORD *)GameLevelManager::getStoredOnlineLevels(v2, v1);
if ( result )
{
result = (_QWORD *)result[7];
v4 = *(unsigned int *)result;
if ( (_DWORD)v4 )
{
result = (_QWORD *)result[2];
for ( i = &result[v4 - 1]; result <= i; ++result )
{
if ( !*result )
break;
*(_BYTE *)(*result + 797LL) = 0;
}
}
}
return result;
}