//
// sub_E1D120 from 0xe1d120 to 0xe1d204 (228 bytes)
//
// 1 xrefs:
// > ??> @ 0x1132378
//
// 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 __fastcall sub_E1D120(__int64 *a1, int a2, int a3, __int64 a4)
{
_QWORD *v4; // x19
__int64 v6; // x0
v4 = (_QWORD *)a1[5];
switch ( a2 )
{
case 6:
if ( a4 && (a3 & 0x80000000) == 0 )
return (unsigned int)CMAC_Init((_QWORD *)a1[5], a4, a3, 0, 0) != 0;
return 0;
case 12:
return (unsigned int)CMAC_Init((_QWORD *)a1[5], 0, 0, a4, a1[1]) != 0;
case 1:
v6 = a1[2];
if ( !v6 || (unsigned int)CMAC_CTX_copy((__int64)v4, *(_QWORD *)(v6 + 32)) )
return (unsigned int)CMAC_Init(v4, 0, 0, 0, 0) != 0;
return 0;
}
return 4294967294LL;
}