//
// sub_DA4888 from 0xda4888 to 0xda4910 (136 bytes)
//
// 3 xrefs:
// > ??> @ 0x1124180
// > ??> @ 0x11243e8
// > ??> @ 0x1124650
//
// 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_DA4888(__int64 a1, __int64 a2, __int64 a3, unsigned __int64 a4)
{
unsigned __int64 v8; // x21
__int64 cipher_data; // x22
unsigned __int64 v10; // x23
__int64 v11; // x19
__int64 v12; // x0
__int64 v13; // x1
v8 = (int)EVP_CIPHER_CTX_block_size(a1);
cipher_data = EVP_CIPHER_CTX_get_cipher_data(a1);
if ( v8 <= a4 )
{
v10 = a4 - v8;
v11 = a3;
do
{
v12 = v11;
v13 = a2;
v11 += v8;
a2 += v8;
(*(void (__fastcall **)(__int64, __int64, __int64))(cipher_data + 280))(v12, v13, cipher_data);
}
while ( v10 >= v11 - a3 );
}
return 1;
}