//
// CMAC_CTX_cleanup from 0x9edc08 to 0x9edc58 (80 bytes)
//
// 2 xrefs:
// > CMAC_CTX_free @ 0x9edc70
// > ??> @ 0x79abc
//
// 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:27 +0000
//
_BYTE *__fastcall CMAC_CTX_cleanup(int a1)
{
_BYTE *v2; // r5
_BYTE *result; // r0
v2 = (_BYTE *)(a1 + 68);
EVP_CIPHER_CTX_free(*(_DWORD *)a1);
OPENSSL_cleanse(v2, 0x20u);
OPENSSL_cleanse((_BYTE *)(a1 + 4), 0x20u);
OPENSSL_cleanse((_BYTE *)(a1 + 36), 0x20u);
result = OPENSSL_cleanse((_BYTE *)(a1 + 100), 0x20u);
*(_DWORD *)(a1 + 132) = -1;
return result;
}