// // FriendsProfilePage::sortUsers from 0xa4fc8c to 0xa4fd08 (124 bytes) // // 4 xrefs: // > FriendsProfilePage::onToggleSort @ 0xa52658 // > FriendsProfilePage::onToggleSortDir @ 0xa526ec // > FriendsProfilePage::getUserListFinished @ 0xa52784 // > @ 0xb5690 // // 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::sortUsers(FriendsProfilePage *this) { __int64 result; // x0 unsigned int *v3; // x1 void *v4; // x0 size_t v5; // x1 int (*v6)(const void *, const void *); // x3 result = *((_QWORD *)this + 107); if ( result ) { result = cocos2d::CCArray::count((cocos2d::CCArray *)result); if ( (unsigned int)result > 1 ) { v3 = *(unsigned int **)(*((_QWORD *)this + 107) + 56LL); v4 = *((void **)v3 + 2); v5 = *v3; if ( *((_BYTE *)this + 944) ) v6 = (int (*)(const void *, const void *))friendSinceCompare; else v6 = (int (*)(const void *, const void *))friendNameCompare; qsort(v4, v5, 8u, v6); result = *((unsigned __int8 *)this + 968); if ( *((_BYTE *)this + 968) ) return cocos2d::CCArray::reverseObjects(*((cocos2d::CCArray **)this + 107)); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source