//
// X509_TRUST_get_by_id from 0xa559d4 to 0xa55a2c (88 bytes)
//
// 6 xrefs:
// > X509_check_trust @ 0xa55a4c
// > X509_TRUST_set @ 0xa55abc
// > X509_TRUST_add @ 0xa55b24
// > X509_STORE_CTX_purpose_inherit @ 0xa5a5e0
// > X509_STORE_CTX_purpose_inherit @ 0xa5a5f8
// > ??> @ 0x80e3c
//
// 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:26 +0000
//
int __fastcall X509_TRUST_get_by_id(int a1)
{
int v1; // r0
int v3; // [sp+0h] [bp-20h] BYREF
if ( (unsigned int)(a1 - 1) <= 7 )
return a1 - 1;
v3 = a1;
if ( !dword_D35AD4 )
return -1;
v1 = OPENSSL_sk_find(dword_D35AD4, (int)&v3);
if ( v1 == -1 )
return -1;
else
return v1 + 8;
}