//
// openssl_strerror_r from 0xa2fd0c to 0xa2fd5c (80 bytes)
//
// 2 xrefs:
// > ERR_load_ERR_strings @ 0xa0e540
// > ??> @ 0x7c35c
//
// 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:04 +0000
//
int __fastcall openssl_strerror_r(int a1, char *a2, unsigned int a3)
{
char *v5; // r1
size_t v6; // r4
if ( a3 <= 1 )
return 0;
v5 = strerror(a1);
if ( !v5 )
return 0;
v6 = a3 - 1;
strncpy(a2, v5, v6);
a2[v6] = 0;
return 1;
}