//
// X509_LOOKUP_by_subject from 0xa5422c to 0xa54268 (60 bytes)
//
// 2 xrefs:
// > X509_STORE_CTX_get_by_subject @ 0xa5474c
// > ??> @ 0x80a1c
//
// 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:25 +0000
//
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;
}