//
// X509_LOOKUP_ctrl from 0x10658b4 to 0x10658ec (56 bytes)
//
// 7 xrefs:
// > SSL_CTX_set_default_verify_dir @ 0xfc070c
// > SSL_CTX_set_default_verify_file @ 0xfc0764
// > X509_STORE_set_default_paths @ 0x1065310
// > X509_STORE_set_default_paths @ 0x1065338
// > X509_STORE_load_locations @ 0x10653a4
// > X509_STORE_load_locations @ 0x10653ec
// > ??> @ 0x94e88
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:53 +0000
//
__int64 __fastcall X509_LOOKUP_ctrl(__int64 a1)
{
__int64 v1; // x5
__int64 (*v2)(void); // x5
v1 = *(_QWORD *)(a1 + 8);
if ( !v1 )
return 0xFFFFFFFFLL;
v2 = *(__int64 (**)(void))(v1 + 40);
if ( v2 )
return v2();
else
return 1;
}