//
// openssl_strerror_r from 0xdc08bc to 0xdc0918 (92 bytes)
//
// 2 xrefs:
// > ERR_load_ERR_strings @ 0xd9f708
// > ??> @ 0xa5cd8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}