//
// sub_81B6E0 from 0x81b6e0 to 0x81b738 (88 bytes)
//
// 3 xrefs:
// > OBJ_NAME_init @ 0x81b830
// > OBJ_NAME_init @ 0x81b838
// > ??> @ 0x81b864
//
// 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_81B6E0(int a1)
{
unsigned int v2; // r0
int (__fastcall **v4)(_DWORD); // r0
if ( dword_AD4504 && *(_DWORD *)a1 < OPENSSL_sk_num(dword_AD4504) )
{
v4 = (int (__fastcall **)(_DWORD))OPENSSL_sk_value(dword_AD4504, *(_DWORD *)a1);
v2 = (*v4)(*(_DWORD *)(a1 + 8));
}
else
{
v2 = (unsigned int)OPENSSL_LH_strhash(*(unsigned __int8 **)(a1 + 8));
}
return v2 ^ *(_DWORD *)a1;
}