//
// X509_LOOKUP_new from 0x83f4dc to 0x83f544 (104 bytes)
//
// 2 xrefs:
// > X509_STORE_add_lookup @ 0x83f940
// > ??> @ 0x66f3c
//
// 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
//
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;
}