//
// X509_STORE_load_locations from 0x83f12c to 0x83f1e4 (184 bytes)
//
// 6 xrefs:
// > SSL_CTX_load_verify_locations @ 0x799960
// > sub_7BBFF4 @ 0x7bc01c
// > sub_7BC314 @ 0x7bc340
// > sub_7BC39C @ 0x7bc3c8
// > sub_7BC424 @ 0x7bc44c
// > ??> @ 0x5c24c
//
// 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
//
int __fastcall X509_STORE_load_locations(int a1, int a2, int a3)
{
char **v6; // r0
int v7; // r0
char **v9; // r0
int v10; // r0
bool v11; // zf
int v12; // r0
if ( a2 )
{
v6 = X509_LOOKUP_file();
v7 = X509_STORE_add_lookup(a1, v6);
if ( !v7 || X509_LOOKUP_ctrl(v7, 1) != 1 )
return 0;
}
if ( a3 )
{
v9 = X509_LOOKUP_hash_dir();
v10 = X509_STORE_add_lookup(a1, v9);
if ( !v10 || X509_LOOKUP_ctrl(v10, 2) != 1 )
return 0;
}
v11 = a2 == 0;
if ( !a2 )
v11 = a3 == 0;
v12 = v11;
return v12 ^ 1;
}