//
// CMAC_CTX_new from 0xffe7cc to 0xffe840 (116 bytes)
//
// 4 xrefs:
// > sub_109B57C @ 0x109b58c
// > sub_109B5AC @ 0x109b5c0
// > sub_109B604 @ 0x109b61c
// > ??> @ 0xba520
//
// 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:15:52 +0000
//
__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;
}