//
// FriendsProfilePage::updateSortLabel from 0x5f346c to 0x5f34a4 (56 bytes)
//
// 2 xrefs:
// > FriendsProfilePage::onToggleSort @ 0x5f4d50
// > FriendsProfilePage::onToggleSortDir @ 0x5f4dbc
//
// 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:29 +0000
//
int __fastcall FriendsProfilePage::updateSortLabel(int this)
{
int v1; // r3
const char *v2; // r1
v1 = *(_DWORD *)(this + 676);
if ( v1 )
{
if ( *(_BYTE *)(this + 680) )
{
if ( *(_BYTE *)(this + 692) )
v2 = "Old";
else
v2 = "New";
}
else if ( *(_BYTE *)(this + 692) )
{
v2 = "Z-A";
}
else
{
v2 = "A-Z";
}
return (*(int (__fastcall **)(_DWORD, const char *, _DWORD))(**(_DWORD **)(v1 + 536) + 464))(
*(_DWORD *)(v1 + 536),
v2,
*(unsigned __int8 *)(this + 692));
}
return this;
}