//
// CRYPTO_ccm128_init from 0x1035e24 to 0x1035e50 (44 bytes)
//
// 4 xrefs:
// > sub_1021E8C @ 0x1021f14
// > sub_1021E8C @ 0x1021f94
// > sub_1021E8C @ 0x1021fdc
// > ??> @ 0xc5d88
//
// 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:24 +0000
//
_QWORD *__fastcall CRYPTO_ccm128_init(_QWORD *result, int a2, char a3, __int64 a4, __int64 a5)
{
*result = 0;
result[1] = 0;
result[4] = 0;
*(_BYTE *)result = (a3 - 1) & 7 | (8 * (((unsigned int)(a2 - 2) >> 1) & 7));
result[5] = a5;
result[6] = a4;
return result;
}