//
// CRYPTO_ccm128_init from 0x810e58 to 0x810eb0 (88 bytes)
//
// 2 xrefs:
// > sub_7FD7F4 @ 0x7fd860
// > ??> @ 0x62c8c
//
// 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
//
void *__fastcall CRYPTO_ccm128_init(_BYTE *a1, char a2, char a3, int a4, int a5)
{
char v7; // r4
void *result; // r0
v7 = (4 * (a2 - 2)) & 0x38 | (a3 - 1) & 7;
result = memset(a1, 0, 0x10u);
*((_DWORD *)a1 + 11) = a4;
*a1 = v7;
*((_DWORD *)a1 + 10) = a5;
*((_QWORD *)a1 + 4) = 0;
return result;
}