//
// X509_LOOKUP_ctrl from 0xa541f4 to 0xa5422c (56 bytes)
//
// 7 xrefs:
// > SSL_CTX_set_default_verify_dir @ 0x9ae500
// > SSL_CTX_set_default_verify_file @ 0x9ae54c
// > X509_STORE_set_default_paths @ 0xa53ce0
// > X509_STORE_set_default_paths @ 0xa53d0c
// > X509_STORE_load_locations @ 0xa53d70
// > X509_STORE_load_locations @ 0xa53dbc
// > ??> @ 0x75cac
//
// 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
//
int __fastcall X509_LOOKUP_ctrl(int a1)
{
int v1; // r12
int (*v2)(void); // r12
v1 = *(_DWORD *)(a1 + 8);
if ( !v1 )
return -1;
v2 = *(int (**)(void))(v1 + 20);
if ( v2 )
return v2();
else
return 1;
}