//
// FriendsProfilePage::onToggleSort from 0x5f4d40 to 0x5f4d7e (62 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:30 +0000
//
void __fastcall FriendsProfilePage::onToggleSort(FriendsProfilePage *this, cocos2d::CCObject *a2)
{
int v3; // r3
int v4; // r3
*((_BYTE *)this + 680) ^= 1u;
FriendsProfilePage::updateSortLabel((int)this);
FriendsProfilePage::sortUsers(this);
v3 = *((unsigned __int8 *)this + 648);
if ( (v3 & 1) != 0 )
v4 = *((_DWORD *)this + 163);
else
v4 = v3 >> 1;
if ( v4 )
FriendsProfilePage::filterUsersWithQuery((int)this, (unsigned __int8 *)this + 648);
FriendsProfilePage::rebuildList((cocos2d::CCArray **)this);
}