//
// Poly1305_Init from 0x829cb0 to 0x829d7c (204 bytes)
//
// 2 xrefs:
// > sub_7FF11C @ 0x7ff338
// > ??> @ 0x6310c
//
// 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
//
int __fastcall Poly1305_Init(_DWORD *a1, unsigned __int8 *a2)
{
int result; // r0
a1[48] = (a2[18] << 16) | (a2[17] << 8) | a2[16] | (a2[19] << 24);
a1[49] = (a2[22] << 16) | (a2[21] << 8) | a2[20] | (a2[23] << 24);
a1[50] = (a2[26] << 16) | (a2[25] << 8) | a2[24] | (a2[27] << 24);
a1[51] = (a2[30] << 16) | (a2[29] << 8) | a2[28] | (a2[31] << 24);
result = poly1305_init();
if ( !result )
{
a1[57] = poly1305_blocks;
a1[58] = poly1305_emit;
}
a1[56] = 0;
return result;
}