//
// compAdvancedFollow from 0x856798 to 0x8567c8 (48 bytes)
//
// 1 xrefs:
// > ??> @ 0x678c0
//
// 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
//
__int64 __fastcall compAdvancedFollow(__int64 *a1, __int64 *a2)
{
__int64 v2; // x3
__int64 v3; // x2
int v4; // w1
int v5; // w0
bool v6; // zf
__int64 result; // x0
v2 = *a1;
v3 = *a2;
v4 = *(_DWORD *)(*a1 + 2040);
v5 = *(_DWORD *)(v3 + 2040);
v6 = v4 == v5;
result = (unsigned int)(v5 - v4);
if ( v6 )
return (unsigned int)(*(_DWORD *)(v2 + 2044) - *(_DWORD *)(v3 + 2044));
return result;
}