//
// sub_E5F5E4 from 0xe5f5e4 to 0xe5f69c (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x1133110
//
// 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 sub_E5F5E4(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 data; // x22
__int64 v7; // x0
int v8; // w21
if ( !a2 )
return 0;
data = BIO_get_data(a1);
v7 = BIO_next(a1);
if ( !v7 || !data )
return 0;
v8 = BIO_read(v7, a2, a3);
if ( (unsigned int)BIO_get_init(a1) && v8 > 0 && (int)EVP_DigestUpdate(data) <= 0 )
return 0xFFFFFFFFLL;
BIO_clear_flags(a1, 15);
BIO_copy_next_retry(a1);
return (unsigned int)v8;
}