//
// X509_STORE_load_locations from 0x1065360 to 0x1065420 (192 bytes)
//
// 6 xrefs:
// > SSL_CTX_load_verify_locations @ 0xfc078c
// > sub_FE0894 @ 0xfe08b8
// > sub_FE0B7C @ 0xfe0ba4
// > sub_FE0BF4 @ 0xfe0c1c
// > sub_FE0C6C @ 0xfe0c90
// > ??> @ 0x75868
//
// 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
//
bool __fastcall X509_STORE_load_locations(__int64 a1, __int64 a2, __int64 a3)
{
char **v6; // x0
__int64 v7; // x0
char **v9; // x0
__int64 v10; // x0
if ( (!a2
|| (v6 = X509_LOOKUP_file(), (v7 = X509_STORE_add_lookup(a1, v6)) != 0)
&& (unsigned int)X509_LOOKUP_ctrl(v7, 1, a2, 1, 0) == 1)
&& (!a3
|| (v9 = X509_LOOKUP_hash_dir(), (v10 = X509_STORE_add_lookup(a1, v9)) != 0)
&& (unsigned int)X509_LOOKUP_ctrl(v10, 2, a3, 1, 0) == 1) )
{
return a2 != 0 || a3 != 0;
}
else
{
return 0;
}
}