//
// sub_1402130E0 from 0x1402130e0 to 0x140213171 (145 bytes)
//
// 2 xrefs:
// > FriendsProfilePage::sortUsers @ 0x140214b47
// > ??> @ 0x14091b608
//
// This function is hookable on this platform (idp: pc, 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 11:28:20 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall sub_1402130E0(__int64 *a1, _QWORD *a2)
{
__int64 v2; // rbx
unsigned __int8 *v3; // rdx
_BYTE *v4; // rcx
unsigned int v5; // ebx
_QWORD v7[4]; // [rsp+28h] [rbp-50h] BYREF
_QWORD v8[4]; // [rsp+48h] [rbp-30h] BYREF
v2 = *a1;
sub_14003F4F0((__int64)v8, *a2 + 320LL);
sub_14003F4F0((__int64)v7, v2 + 320);
v3 = (unsigned __int8 *)v8;
if ( v8[3] > 0xFu )
v3 = (unsigned __int8 *)v8[0];
v4 = v7;
if ( v7[3] > 0xFu )
v4 = (_BYTE *)v7[0];
v5 = sub_140212FA0(v4, v3);
sub_14003D310((__int64)v7);
sub_14003D310((__int64)v8);
return v5;
}