//
// sub_E5F69C from 0xe5f69c to 0xe5f790 (244 bytes)
//
// 1 xrefs:
// > ??> @ 0x1133108
//
// 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_E5F69C(__int64 a1, __int64 a2, signed int a3)
{
__int64 data; // x23
__int64 v6; // x0
unsigned int v7; // w19
int v8; // w22
if ( a2 && a3 > 0 )
{
data = BIO_get_data(a1);
v6 = BIO_next(a1);
v7 = v6 != 0;
if ( v6 && data )
{
v8 = BIO_write(v6, a2, a3);
if ( !(unsigned int)BIO_get_init(a1) )
goto LABEL_7;
if ( v8 <= 0 )
goto LABEL_7;
v7 = EVP_DigestUpdate(data);
if ( v7 )
goto LABEL_7;
BIO_clear_flags(a1, 15);
}
else
{
BIO_get_init(a1);
if ( v7 )
{
v8 = 0;
LABEL_7:
BIO_clear_flags(a1, 15);
BIO_copy_next_retry(a1);
return (unsigned int)v8;
}
}
}
else
{
return 0;
}
return v7;
}