//
// X509_check_trust from 0xa55a30 to 0xa55aa0 (112 bytes)
//
// 5 xrefs:
// > OCSP_basic_verify @ 0xa348e8
// > sub_A572AC @ 0xa5731c
// > sub_A572AC @ 0xa5751c
// > sub_A589E0 @ 0xa59320
// > ??> @ 0x7e81c
//
// 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_check_trust(int a1, char *a2, int a3)
{
int v6; // r0
char *v7; // r0
if ( !a2 )
return sub_A5579C((_BYTE *)&stru_38C.st_name + 2, a1, a3 | 8);
v6 = X509_TRUST_get_by_id((int)a2);
if ( v6 == -1 )
return off_D26138(a2, a1, a3);
v7 = X509_TRUST_get0(v6);
return (*((int (__fastcall **)(char *, int, int))v7 + 2))(v7, a1, a3);
}