//
// X509_LOOKUP_by_subject from 0x83f62c to 0x83f668 (60 bytes)
//
// 2 xrefs:
// > X509_STORE_CTX_get_by_subject @ 0x83fb4c
// > ??> @ 0x66f9c
//
// 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
//
int __fastcall X509_LOOKUP_by_subject(int a1)
{
int v1; // r12
int (*v2)(void); // r12
v1 = *(_DWORD *)(a1 + 8);
if ( v1 && (v2 = *(int (**)(void))(v1 + 24)) != nullptr && !*(_DWORD *)(a1 + 4) )
return v2();
else
return 0;
}