//
// X509_STORE_load_locations from 0xa53d2c to 0xa53de4 (184 bytes)
//
// 6 xrefs:
// > SSL_CTX_load_verify_locations @ 0x9ae564
// > sub_9D0BF8 @ 0x9d0c20
// > sub_9D0F18 @ 0x9d0f44
// > sub_9D0FA0 @ 0x9d0fcc
// > sub_9D1028 @ 0x9d1050
// > ??> @ 0x75ccc
//
// 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_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;
}