//
// CRYPTO_ccm128_tag from 0x8131d0 to 0x813214 (68 bytes)
//
// 5 xrefs:
// > sub_7FD12C @ 0x7fd24c
// > sub_7FD39C @ 0x7fd5b0
// > sub_7FD39C @ 0x7fd678
// > sub_7FD39C @ 0x7fd700
// > ??> @ 0x62c1c
//
// 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
//
unsigned int __fastcall CRYPTO_ccm128_tag(_BYTE *a1, void *a2, unsigned int a3)
{
unsigned int v3; // r4
v3 = 2 * ((*a1 >> 3) & 7) + 2;
if ( v3 > a3 )
return 0;
memcpy(a2, a1 + 16, 2 * ((*a1 >> 3) & 7) + 2);
return v3;
}