//
// openssl_strerror_r from 0x103ec1c to 0x103ec78 (92 bytes)
//
// 2 xrefs:
// > ERR_load_ERR_strings @ 0x101da68
// > ??> @ 0xd9c18
//
// 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:16:28 +0000
//
__int64 __fastcall openssl_strerror_r(int a1, char *a2, unsigned __int64 a3)
{
char *v5; // x1
size_t v6; // x19
if ( a3 <= 1 )
return 0;
v5 = strerror(a1);
if ( !v5 )
return 0;
v6 = a3 - 1;
strncpy(a2, v5, v6);
a2[v6] = 0;
return 1;
}