//
// X509_LOOKUP_new from 0xa540dc to 0xa54144 (104 bytes)
//
// 2 xrefs:
// > X509_STORE_add_lookup @ 0xa54540
// > ??> @ 0x809bc
//
// 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:24 +0000
//
void *__fastcall X509_LOOKUP_new(int a1)
{
void *result; // r0
void *v3; // r4
int (*v4)(void); // r3
int v5; // r5
result = CRYPTO_zalloc(&dword_14, (int)"crypto/x509/x509_lu.c", 22);
v3 = result;
if ( result )
{
v4 = *(int (**)(void))(a1 + 4);
*((_DWORD *)result + 2) = a1;
if ( v4 )
{
v5 = v4();
result = v3;
if ( !v5 )
{
CRYPTO_free(v3, (int)"crypto/x509/x509_lu.c", 28);
return nullptr;
}
}
}
return result;
}