//
// ProfilePage::toggleMainPageVisibility from 0x5f67e6 to 0x5f6890 (170 bytes)
//
// 0 xrefs:
//
// 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:31 +0000
//
int __fastcall ProfilePage::toggleMainPageVisibility(ProfilePage *this, int a2)
{
int v3; // r3
int v5; // r3
_DWORD *v6; // r2
int *v7; // r7
int *v8; // r4
int v9; // r0
int v10; // t1
_DWORD *v11; // r2
int *v12; // r7
int *v13; // r4
int v14; // r0
int v15; // r0
int v16; // t1
v3 = *((_DWORD *)this + 153);
if ( v3 )
{
v6 = *(_DWORD **)(v3 + 52);
if ( *v6 )
{
v7 = (int *)v6[3];
v8 = &v7[*v6 - 1];
while ( v7 <= v8 )
{
v10 = *v7++;
v9 = v10;
if ( !v10 )
break;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 172))(v9, a2);
}
}
}
v5 = *((_DWORD *)this + 152);
if ( v5 )
{
v11 = *(_DWORD **)(v5 + 52);
if ( *v11 )
{
v12 = (int *)v11[3];
v13 = &v12[*v11 - 1];
while ( v12 <= v13 )
{
v16 = *v12++;
v15 = v16;
if ( !v16 )
break;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 172))(v15, a2);
}
}
}
v14 = *((_DWORD *)this + 146);
if ( v14 )
(*(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 172))(v14, a2);
if ( a2 )
return ProfilePage::updatePageArrows(this);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 147) + 172))(*((_DWORD *)this + 147), 0);
return (*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 148) + 172))(*((_DWORD *)this + 148), 0);
}