//
// sub_A169C8 from 0xa169c8 to 0xa16a34 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0xd25f9c
//
// 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:49 +0000
//
int __fastcall sub_A169C8(int a1, int a2)
{
_DWORD *cipher_data; // r4
int v5; // r0
cipher_data = (_DWORD *)EVP_CIPHER_CTX_get_cipher_data(a1);
v5 = EVP_CIPHER_CTX_key_length(a1);
RC4_set_key(cipher_data, v5, a2);
MD5_Init(cipher_data + 65);
memcpy(cipher_data + 88, cipher_data + 65, 0x5Cu);
memcpy(cipher_data + 111, cipher_data + 65, 0x5Cu);
cipher_data[134] = -1;
return 1;
}