//
// sub_A30390 from 0xa30390 to 0xa30404 (116 bytes)
//
// 3 xrefs:
// > OBJ_NAME_init @ 0xa30434
// > OBJ_NAME_init @ 0xa3043c
// > ??> @ 0xa30468
//
// 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_A30390(int a1, int a2)
{
int v5; // r0
if ( *(_DWORD *)a1 != *(_DWORD *)a2 )
return *(_DWORD *)a1 - *(_DWORD *)a2;
if ( !dword_D35790 || *(_DWORD *)a1 >= OPENSSL_sk_num(dword_D35790) )
return strcmp(*(const char **)(a1 + 8), *(const char **)(a2 + 8));
v5 = OPENSSL_sk_value(dword_D35790, *(_DWORD *)a1);
return (*(int (__fastcall **)(_DWORD, _DWORD))(v5 + 4))(*(_DWORD *)(a1 + 8), *(_DWORD *)(a2 + 8));
}