//
// Poly1305_Final from 0x829e40 to 0x829ec0 (128 bytes)
//
// 2 xrefs:
// > sub_7FF11C @ 0x7ff2c8
// > ??> @ 0x630fc
//
// 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(int a1, int a2)
{
int v2; // r2
void (__fastcall *v5)(int, int, int, _DWORD); // r7
void (__fastcall *v6)(int, int, int); // r5
v2 = *(_DWORD *)(a1 + 224);
v5 = *(void (__fastcall **)(int, int, int, _DWORD))(a1 + 228);
v6 = *(void (__fastcall **)(int, int, int))(a1 + 232);
if ( v2 )
{
*(_BYTE *)(a1 + v2 + 208) = 1;
if ( (unsigned int)(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, 0xF0u);
}