//
// X509_VERIFY_PARAM_set1_ip from 0xa5ba34 to 0xa5badc (168 bytes)
//
// 3 xrefs:
// > X509_VERIFY_PARAM_inherit @ 0xa5bdc4
// > X509_VERIFY_PARAM_set1_ip_asc @ 0xa5be80
// > ??> @ 0x8146c
//
// 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:29 +0000
//
int __fastcall X509_VERIFY_PARAM_set1_ip(int a1, char *a2, unsigned int a3)
{
_BOOL4 v3; // r3
void *v4; // r4
char *v7; // r5
int v8; // r7
v3 = a3 != 16 && (a3 & 0xFFFFFFFB) != 0;
v4 = (void *)a3;
if ( v3 )
return 0;
v7 = a2;
v8 = a1 + 60;
if ( a2 )
{
if ( !a3 )
v4 = (void *)strlen(a2);
v7 = (char *)CRYPTO_memdup(v7, v4, (int)"crypto/x509/x509_vpm.c", 266);
if ( !v7 )
return 0;
}
else
{
v4 = nullptr;
}
CRYPTO_free(*(void **)(a1 + 56), (int)"crypto/x509/x509_vpm.c", 273);
*(_DWORD *)(a1 + 56) = v7;
if ( v8 )
*(_DWORD *)(a1 + 60) = v4;
return 1;
}