//
// CMAC_CTX_new from 0xd8046c to 0xd804e0 (116 bytes)
//
// 4 xrefs:
// > sub_E1D27C @ 0xe1d28c
// > sub_E1D2AC @ 0xe1d2c0
// > sub_E1D304 @ 0xe1d31c
// > ??> @ 0x8cb08
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 CMAC_CTX_new()
{
__int64 result; // x0
__int64 v1; // x19
__int64 v2; // x20
result = CRYPTO_malloc(144, "crypto/cmac/cmac.c", 49);
v1 = result;
if ( result )
{
v2 = EVP_CIPHER_CTX_new();
*(_QWORD *)v1 = v2;
result = v1;
if ( v2 )
{
*(_DWORD *)(v1 + 136) = -1;
}
else
{
CRYPTO_free(v1, "crypto/cmac/cmac.c", 54);
return 0;
}
}
return result;
}