//
// X509_PURPOSE_get_by_sname from 0x107f104 to 0x107f164 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x88e58
//
// 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:17:09 +0000
//
__int64 __fastcall X509_PURPOSE_get_by_sname(const char *a1)
{
int i; // w19
char *v3; // x0
for ( i = 0; ; ++i )
{
if ( i >= (int)X509_PURPOSE_get_count() )
return 0xFFFFFFFFLL;
v3 = X509_PURPOSE_get0(i);
if ( !strcmp(*((const char **)v3 + 4), a1) )
break;
}
return (unsigned int)i;
}