//
// sub_100734500 from 0x100734500 to 0x100734630 (304 bytes)
//
// 4 xrefs:
// > FriendsProfilePage::onToggleSort @ 0x100735dd6
// > FriendsProfilePage::onToggleSortDir @ 0x100735f32
// > FriendsProfilePage::sortUsers @ 0x100736ed7
// > FriendsProfilePage::getUserListFinished @ 0x10073742a
//
// 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_100734500(__int64 *a1, __int64 *a2)
{
__int64 v2; // rax
__int64 v3; // rbx
__int128 *v4; // rax
char *v5; // r14
char *v6; // r15
__int128 *v7; // rbx
__int64 v8; // r12
int v9; // edi
int v10; // ebx
int v11; // eax
unsigned int v12; // ebx
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;
if ( (*(_BYTE *)(*a1 + 320) & 1) != 0 )
{
sub_10001AD30(&v15, *(const void **)(v2 + 336), *(_QWORD *)(v2 + 328));
if ( (v15 & 1) == 0 )
{
LABEL_3:
v5 = (char *)&v15 + 1;
if ( (*(_BYTE *)(v3 + 320) & 1) != 0 )
goto LABEL_4;
LABEL_8:
v7 = (__int128 *)(v3 + 320);
__p = *((void **)v7 + 2);
v17 = *v7;
if ( (v17 & 1) != 0 )
goto LABEL_5;
LABEL_9:
v6 = (char *)&v17 + 1;
goto LABEL_10;
}
}
else
{
v4 = (__int128 *)(v2 + 320);
v16 = *((void **)v4 + 2);
v15 = *v4;
if ( (v15 & 1) == 0 )
goto LABEL_3;
}
v5 = (char *)v16;
if ( (*(_BYTE *)(v3 + 320) & 1) == 0 )
goto LABEL_8;
LABEL_4:
sub_10001AD30(&v17, *(const void **)(v3 + 336), *(_QWORD *)(v3 + 328));
if ( (v17 & 1) == 0 )
goto LABEL_9;
LABEL_5:
v6 = (char *)__p;
LABEL_10:
v8 = 0;
while ( 1 )
{
v9 = (unsigned __int8)v5[v8];
if ( !v5[v8] || !v6[v8] )
break;
v10 = __tolower(v9);
v11 = __tolower((unsigned __int8)v6[v8++]);
v12 = v10 - v11;
if ( v12 )
{
if ( (v17 & 1) == 0 )
goto LABEL_16;
goto LABEL_15;
}
}
v14 = __tolower(v9);
v12 = v14 - __tolower((unsigned __int8)v6[v8]);
if ( (v17 & 1) != 0 )
LABEL_15:
operator delete(__p);
LABEL_16:
if ( (v15 & 1) != 0 )
operator delete(v16);
return v12;
}