//
// X509_check_trust from 0xde8f24 to 0xde8fc0 (156 bytes)
//
// 5 xrefs:
// > OCSP_basic_verify @ 0xdc572c
// > sub_DEA684 @ 0xdea708
// > sub_DEA684 @ 0xdea928
// > sub_DEBD8C @ 0xdec5d0
// > ??> @ 0x39600
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall X509_check_trust(__int64 a1, int a2, unsigned int a3)
{
int v6; // w0
char *v7; // x0
if ( !a2 )
return sub_DE8CAC(910, a1, a3 | 8);
v6 = X509_TRUST_get_by_id(a2);
if ( v6 == -1 )
return off_1239298(a2, a1, a3);
v7 = X509_TRUST_get0(v6);
return (*((__int64 (__fastcall **)(char *, __int64, _QWORD))v7 + 1))(v7, a1, a3);
}