// // FriendsProfilePage::sortUsers from 0x5f3418 to 0x5f3464 (76 bytes) // // 3 xrefs: // > FriendsProfilePage::onToggleSort @ 0x5f4d56 // > FriendsProfilePage::onToggleSortDir @ 0x5f4dc2 // > FriendsProfilePage::getUserListFinished @ 0x5f4e62 // // 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 // void __fastcall FriendsProfilePage::sortUsers(FriendsProfilePage *this) { cocos2d::CCArray *v2; // r0 size_t *v3; // r3 void *v4; // r0 size_t v5; // r1 int (*v6)(const void *, const void *); // r3 v2 = *((cocos2d::CCArray **)this + 159); if ( v2 && cocos2d::CCArray::count(v2) > 1u ) { v3 = *(size_t **)(*((_DWORD *)this + 159) + 52); v4 = (void *)v3[3]; v5 = *v3; if ( *((_BYTE *)this + 680) ) v6 = friendSinceCompare; else v6 = friendNameCompare; qsort(v4, v5, 4u, v6); if ( *((_BYTE *)this + 692) ) cocos2d::CCArray::reverseObjects(*((cocos2d::CCArray **)this + 159)); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source