//
// CRYPTO_ccm128_tag from 0xa27dd0 to 0xa27e14 (68 bytes)
//
// 5 xrefs:
// > sub_A11D2C @ 0xa11e4c
// > sub_A11F9C @ 0xa121b0
// > sub_A11F9C @ 0xa12278
// > sub_A11F9C @ 0xa12300
// > ??> @ 0x7c69c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:59 +0000
//
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;
}