//
// sub_87867C from 0x87867c to 0x8786dc (96 bytes)
//
// 3 xrefs:
// > _CONF_new_data @ 0x878974
// > _CONF_new_data @ 0x878980
// > ??> @ 0x87899c
//
// 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_87867C(const char **a1, const char **a2)
{
const char *v4; // r0
const char *v5; // r1
int result; // r0
const char *v7; // r0
const char *v8; // r1
v4 = *a1;
v5 = *a2;
if ( v4 == v5 || (result = strcmp(v4, v5)) == 0 )
{
v7 = a1[1];
if ( v7 )
{
v8 = a2[1];
if ( v8 )
return strcmp(v7, v8);
else
return 1;
}
else
{
result = (int)a2[1];
if ( result )
return -1;
}
}
return result;
}