//
// sub_100649750 from 0x100649750 to 0x1006497f7 (167 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b835e0
//
// 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_100649750(__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 int)(*(_DWORD *)(*a2 + 452) - *(_DWORD *)(v2 + 452));
if ( !(_DWORD)result )
{
v5 = *(unsigned __int8 *)(v2 + 696);
v6 = *(_QWORD *)(v2 + 704);
v7 = *(const void **)(v2 + 712);
v8 = *(unsigned __int8 *)(v3 + 696);
if ( (v8 & 1) != 0 )
{
v9 = *(_QWORD *)(v3 + 704);
v10 = *(const void **)(v3 + 712);
}
else
{
v9 = v8 >> 1;
v10 = (const void *)(v3 + 697);
}
v11 = (const void *)(v2 + 697);
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;
}