//
// sub_100649910 from 0x100649910 to 0x100649999 (137 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b83610
//
// 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:34:46 +0000
//
__int64 __fastcall sub_100649910(__int64 *a1, __int64 *a2)
{
__int64 v2; // rcx
__int64 v3; // rdi
__int64 result; // rax
unsigned int v5; // eax
size_t v6; // rbx
const void *v7; // rsi
unsigned int v8; // r14d
size_t v9; // r14
const void *v10; // rdi
const void *v11; // rcx
size_t v12; // rdx
int v13; // eax
unsigned int v14; // edx
unsigned int v15; // ecx
v2 = *a1;
v3 = *a2;
result = *(unsigned __int8 *)(*a2 + 72);
if ( *(_BYTE *)(v2 + 72) == (_BYTE)result )
{
v5 = *(unsigned __int8 *)(v2 + 104);
v6 = *(_QWORD *)(v2 + 112);
v7 = *(const void **)(v2 + 120);
v8 = *(unsigned __int8 *)(v3 + 104);
if ( (v8 & 1) != 0 )
{
v9 = *(_QWORD *)(v3 + 112);
v10 = *(const void **)(v3 + 120);
}
else
{
v9 = v8 >> 1;
v10 = (const void *)(v3 + 105);
}
v11 = (const void *)(v2 + 105);
if ( (v5 & 1) == 0 )
{
v6 = v5 >> 1;
v7 = v11;
}
v12 = v9;
if ( v6 < v9 )
v12 = v6;
v13 = memcmp(v10, v7, v12);
v14 = -1;
if ( v9 >= v6 )
v14 = v6 < v9;
v15 = v13;
result = v14;
if ( v15 )
return v15;
}
return result;
}