//
// sub_81C0F0 from 0x81c0f0 to 0x81c138 (72 bytes)
//
// 3 xrefs:
// > OBJ_obj2nid @ 0x81c888
// > OBJ_obj2nid @ 0x81c890
// > ??> @ 0x81c8dc
//
// 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_81C0F0(int *a1, _DWORD *a2)
{
int v2; // r0
char **v3; // r3
size_t v4; // r2
v2 = *a1;
v3 = &off_A32420[6 * *a2];
v4 = *(_DWORD *)(v2 + 12);
if ( v4 == (_DWORD)v3[3] )
{
if ( v4 )
return memcmp(*(const void **)(v2 + 16), v3[4], v4);
}
else
{
v4 -= (unsigned int)v3[3];
}
return v4;
}