//
// Poly1305_Final from 0xdcf548 to 0xdcf5dc (148 bytes)
//
// 2 xrefs:
// > sub_DA5820 @ 0xda59b4
// > ??> @ 0xa3788
//
// 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
//
_BYTE *__fastcall Poly1305_Final(__int64 a1, __int64 a2)
{
__int64 v2; // x2
void (__fastcall *v5)(__int64, __int64, __int64, _QWORD); // x22
void (__fastcall *v6)(__int64, __int64, __int64); // x20
v2 = *(_QWORD *)(a1 + 224);
v5 = *(void (__fastcall **)(__int64, __int64, __int64, _QWORD))(a1 + 232);
v6 = *(void (__fastcall **)(__int64, __int64, __int64))(a1 + 240);
if ( v2 )
{
*(_BYTE *)(a1 + v2 + 208) = 1;
if ( (unsigned __int64)(v2 + 1) <= 0xF )
memset((void *)(a1 + v2 + 209), 0, 15 - v2);
v5(a1, a1 + 208, 16, 0);
}
v6(a1, a2, a1 + 192);
return OPENSSL_cleanse((_BYTE *)a1, 0xF8u);
}