//
// sub_7C7684 from 0x7c7684 to 0x7c76b4 (48 bytes)
//
// 3 xrefs:
// > sub_7C7FD0 @ 0x7c8448
// > sub_7C7FD0 @ 0x7c8450
// > ??> @ 0x7c8548
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_7C7684(int a1, int a2)
{
signed int v2; // r4
signed int v3; // r5
const void *v4; // r1
size_t v5; // r2
int result; // r0
v2 = *(_DWORD *)(a2 + 4);
v3 = *(_DWORD *)(a1 + 4);
v4 = *(const void **)a2;
if ( v3 >= v2 )
v5 = v2;
else
v5 = *(_DWORD *)(a1 + 4);
result = memcmp(*(const void **)a1, v4, v5);
if ( !result )
return v3 - v2;
return result;
}