//
// sub_1025E28 from 0x1025e28 to 0x1025ea8 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x153a638
//
// 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:16:13 +0000
//
__int64 __fastcall sub_1025E28(__int64 a1, __int64 a2, __int64 a3, unsigned __int64 a4)
{
unsigned __int64 v8; // x21
unsigned __int64 v9; // x22
__int64 v10; // x19
__int64 cipher_data; // x2
__int64 v12; // x1
__int64 v13; // x0
v8 = *(int *)(EVP_CIPHER_CTX_cipher(a1) + 4);
if ( v8 <= a4 )
{
v9 = a4 - v8;
v10 = a3;
do
{
cipher_data = EVP_CIPHER_CTX_get_cipher_data(a1);
v12 = a2;
v13 = v10;
v10 += v8;
a2 += v8;
IDEA_ecb_encrypt(v13, v12, cipher_data);
}
while ( v9 >= v10 - a3 );
}
return 1;
}