//
// FriendsProfilePage::updateSortLabel from 0xa4fd08 to 0xa4fd74 (108 bytes)
//
// 3 xrefs:
// > FriendsProfilePage::onToggleSort @ 0xa52650
// > FriendsProfilePage::onToggleSortDir @ 0xa526e4
// > ??> @ 0xee180
//
// 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:04 +0000
//
__int64 __fastcall FriendsProfilePage::updateSortLabel(__int64 this)
{
__int64 v1; // x2
int v2; // w1
int v3; // w0
const char *v4; // x1
v1 = *(_QWORD *)(this + 936);
if ( v1 )
{
v2 = *(unsigned __int8 *)(this + 944);
v3 = *(unsigned __int8 *)(this + 968);
if ( v2 )
{
if ( v3 )
v4 = "Old";
else
v4 = "New";
}
else if ( v3 )
{
v4 = "Z-A";
}
else
{
v4 = "A-Z";
}
return (*(__int64 (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(v1 + 624) + 928LL))(
*(_QWORD *)(v1 + 624),
v4);
}
return this;
}