//
// sub_10DD69C from 0x10dd69c to 0x10dd790 (244 bytes)
//
// 1 xrefs:
// > ??> @ 0x1410698
//
// 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:17:46 +0000
//
__int64 __fastcall sub_10DD69C(__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;
}