//
// sub_103F284 from 0x103f284 to 0x103f2f4 (112 bytes)
//
// 2 xrefs:
// > OBJ_NAME_init @ 0x103f424
// > OBJ_NAME_init @ 0x103f430
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:29 +0000
//
__int64 __fastcall sub_103F284(int *a1)
{
int v2; // w0
__int64 v3; // x1
__int64 (__fastcall **v5)(_QWORD); // x0
if ( !qword_1567F80 )
return (unsigned __int64)OPENSSL_LH_strhash(*((unsigned __int8 **)a1 + 1)) ^ *a1;
v2 = OPENSSL_sk_num(qword_1567F80);
v3 = (unsigned int)*a1;
if ( (int)v3 >= v2 )
return (unsigned __int64)OPENSSL_LH_strhash(*((unsigned __int8 **)a1 + 1)) ^ *a1;
v5 = (__int64 (__fastcall **)(_QWORD))OPENSSL_sk_value(qword_1567F80, v3);
return (*v5)(*((_QWORD *)a1 + 1)) ^ *a1;
}