//
// sub_A302E0 from 0xa302e0 to 0xa30338 (88 bytes)
//
// 3 xrefs:
// > OBJ_NAME_init @ 0xa30430
// > OBJ_NAME_init @ 0xa30438
// > ??> @ 0xa30464
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:08:04 +0000
//
int __fastcall sub_A302E0(int a1)
{
unsigned int v2; // r0
int (__fastcall **v4)(_DWORD); // r0
if ( dword_D35790 && *(_DWORD *)a1 < OPENSSL_sk_num(dword_D35790) )
{
v4 = (int (__fastcall **)(_DWORD))OPENSSL_sk_value(dword_D35790, *(_DWORD *)a1);
v2 = (*v4)(*(_DWORD *)(a1 + 8));
}
else
{
v2 = (unsigned int)OPENSSL_LH_strhash(*(unsigned __int8 **)(a1 + 8));
}
return v2 ^ *(_DWORD *)a1;
}