//
// FriendsProfilePage::onToggleSort from 0xa52634 to 0xa5268c (88 bytes)
//
// 3 xrefs:
// > ??> @ 0x44968
// > FriendsProfilePage::init @ 0xa50c70
// > ??> @ 0x1541428
//
// 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:05 +0000
//
ScrollableContentLayer *__fastcall FriendsProfilePage::onToggleSort(FriendsProfilePage *this, cocos2d::CCObject *a2)
{
__int64 v3; // x2
*((_BYTE *)this + 944) ^= 1u;
FriendsProfilePage::updateSortLabel((__int64)this);
FriendsProfilePage::sortUsers(this);
v3 = *((_BYTE *)this + 880) >> 1;
if ( (*((_BYTE *)this + 880) & 1) != 0 )
v3 = *((_QWORD *)this + 111);
if ( v3 )
FriendsProfilePage::filterUsersWithQuery((__int64)this, (__int64)this + 880);
return FriendsProfilePage::rebuildList((cocos2d::CCArray **)this);
}