//
// X509_check_trust from 0x1067264 to 0x1067300 (156 bytes)
//
// 5 xrefs:
// > OCSP_basic_verify @ 0x1043a8c
// > sub_10689C4 @ 0x1068a48
// > sub_10689C4 @ 0x1068c68
// > sub_106A0CC @ 0x106a910
// > ??> @ 0x538a8
//
// 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:54 +0000
//
__int64 __fastcall X509_check_trust(__int64 a1, int a2, unsigned int a3)
{
int v6; // w0
char *v7; // x0
if ( !a2 )
return sub_1066FEC(910, a1, a3 | 8);
v6 = X509_TRUST_get_by_id(a2);
if ( v6 == -1 )
return off_1552578(a2, a1, a3);
v7 = X509_TRUST_get0(v6);
return (*((__int64 (__fastcall **)(char *, __int64, _QWORD))v7 + 1))(v7, a1, a3);
}