//
// sub_ACA700 from 0xaca700 to 0xaca7d4 (212 bytes)
//
// 1 xrefs:
// > ??> @ 0xc81678
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:09:20 +0000
//
int __fastcall sub_ACA700(int a1, int a2, int a3)
{
bool v3; // cc
int v4; // r4
int data; // r9
int v10; // r0
int v11; // r8
int v12; // r7
int init; // r0
bool v14; // cc
v3 = a2 <= 0;
if ( a2 )
v3 = a3 <= 0;
if ( v3 )
return 0;
data = BIO_get_data(a1);
v10 = BIO_next(a1);
v4 = v10;
if ( v10 )
v4 = 1;
if ( data )
v11 = v4 & 1;
else
v11 = 0;
if ( v11 )
{
v12 = BIO_write(v10, a2, a3);
init = BIO_get_init(a1);
v14 = init <= 0;
if ( init )
v14 = v12 <= 0;
if ( !v14 )
{
v4 = EVP_DigestUpdate(data);
if ( !v4 )
{
BIO_clear_flags(a1, 15);
return v4;
}
}
}
else
{
BIO_get_init(a1);
if ( !v4 )
return v4;
v12 = 0;
}
BIO_clear_flags(a1, 15);
BIO_copy_next_retry(a1);
return v12;
}