//
// sub_100734680 from 0x100734680 to 0x1007347c0 (320 bytes)
//
// 4 xrefs:
// > FriendsProfilePage::onToggleSort @ 0x100735dcf
// > FriendsProfilePage::onToggleSortDir @ 0x100735f2b
// > FriendsProfilePage::sortUsers @ 0x100736ed0
// > FriendsProfilePage::getUserListFinished @ 0x100737423
//
// 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 12:36:24 +0000
//
__int64 __fastcall sub_100734680(__int64 *a1, __int64 *a2)
{
__int64 v2; // rax
__int64 v3; // r15
unsigned int v4; // ebx
__int128 *v5; // rax
char *v6; // r14
char *v7; // r15
__int128 *v8; // r15
__int64 v9; // r12
int v10; // edi
int v11; // ebx
int v12; // eax
int v14; // ebx
__int128 v15; // [rsp+0h] [rbp-60h] BYREF
void *v16; // [rsp+10h] [rbp-50h]
__int128 v17; // [rsp+20h] [rbp-40h] BYREF
void *__p; // [rsp+30h] [rbp-30h]
v2 = *a1;
v3 = *a2;
v4 = *(_DWORD *)(*a2 + 456) - *(_DWORD *)(*a1 + 456);
if ( v4 )
return v4;
if ( (*(_BYTE *)(v2 + 320) & 1) != 0 )
{
sub_10001AD30(&v15, *(const void **)(v2 + 336), *(_QWORD *)(v2 + 328));
if ( (v15 & 1) == 0 )
{
LABEL_4:
v6 = (char *)&v15 + 1;
if ( (*(_BYTE *)(v3 + 320) & 1) != 0 )
goto LABEL_5;
LABEL_9:
v8 = (__int128 *)(v3 + 320);
__p = *((void **)v8 + 2);
v17 = *v8;
if ( (v17 & 1) != 0 )
goto LABEL_6;
goto LABEL_10;
}
}
else
{
v5 = (__int128 *)(v2 + 320);
v16 = *((void **)v5 + 2);
v15 = *v5;
if ( (v15 & 1) == 0 )
goto LABEL_4;
}
v6 = (char *)v16;
if ( (*(_BYTE *)(v3 + 320) & 1) == 0 )
goto LABEL_9;
LABEL_5:
sub_10001AD30(&v17, *(const void **)(v3 + 336), *(_QWORD *)(v3 + 328));
if ( (v17 & 1) != 0 )
{
LABEL_6:
v7 = (char *)__p;
goto LABEL_11;
}
LABEL_10:
v7 = (char *)&v17 + 1;
LABEL_11:
v9 = 0;
while ( 1 )
{
v10 = (unsigned __int8)v6[v9];
if ( !v6[v9] || !v7[v9] )
break;
v11 = __tolower(v10);
v12 = __tolower((unsigned __int8)v7[v9++]);
v4 = v11 - v12;
if ( v4 )
{
if ( (v17 & 1) == 0 )
goto LABEL_17;
goto LABEL_16;
}
}
v14 = __tolower(v10);
v4 = v14 - __tolower((unsigned __int8)v7[v9]);
if ( (v17 & 1) != 0 )
LABEL_16:
operator delete(__p);
LABEL_17:
if ( (v15 & 1) != 0 )
operator delete(v16);
return v4;
}