//
// sub_A1488C from 0xa1488c to 0xa148fc (112 bytes)
//
// 1 xrefs:
// > ??> @ 0xd1707c
//
// 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:07:48 +0000
//
int __fastcall sub_A1488C(int a1, int a2, unsigned __int8 *a3, unsigned int a4)
{
unsigned int v8; // r6
unsigned int v9; // r8
unsigned __int8 *v10; // r4
int cipher_data; // r10
int v12; // r0
int v13; // r1
int v14; // r3
unsigned __int8 *v15; // r0
v8 = *(_DWORD *)(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 = EVP_CIPHER_CTX_encrypting(a1);
v13 = a2;
a2 += v8;
v14 = v12;
v15 = v10;
v10 += v8;
DES_ecb_encrypt(v15, v13, cipher_data, v14);
}
while ( v9 >= v10 - a3 );
}
return 1;
}