//
// sub_1026330 from 0x1026330 to 0x1026388 (88 bytes)
//
// 6 xrefs:
// > ??> @ 0x1402260
// > ??> @ 0x14022b8
// > ??> @ 0x1402310
// > ??> @ 0x1402368
// > ??> @ 0x14023c0
// > ??> @ 0x1402418
//
// 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_1026330(__int64 a1, __int64 a2)
{
__int64 cipher_data; // x20
unsigned int *v4; // x0
__int64 v7; // [xsp+28h] [xbp+28h]
cipher_data = EVP_CIPHER_CTX_get_cipher_data(a1);
v7 = (unsigned int)EVP_CIPHER_CTX_key_length(a1);
v4 = (unsigned int *)EVP_CIPHER_CTX_get_cipher_data(a1);
RC2_set_key(cipher_data + 4, v7, a2, *v4);
return 1;
}