//
// sub_1021290 from 0x1021290 to 0x10212f4 (100 bytes)
//
// 3 xrefs:
// > ??> @ 0x14010e8
// > ??> @ 0x1401140
// > ??> @ 0x1401198
//
// 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:10 +0000
//
__int64 __fastcall sub_1021290(__int64 a1)
{
__int64 cipher_data; // x19
__int64 v3; // x20
cipher_data = EVP_CIPHER_CTX_get_cipher_data(a1);
OPENSSL_cleanse((_BYTE *)(cipher_data + 256), 0x188u);
v3 = *(_QWORD *)(cipher_data + 648);
if ( v3 != EVP_CIPHER_CTX_iv_noconst(a1) )
CRYPTO_free(*(_QWORD *)(cipher_data + 648), "crypto/evp/e_aes.c", 1272);
return 1;
}