//
// Poly1305_Init from 0xdcf38c to 0xdcf460 (212 bytes)
//
// 2 xrefs:
// > sub_DA5820 @ 0xda5a14
// > ??> @ 0x90798
//
// 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
//
__int64 (__fastcall *__fastcall Poly1305_Init(__int64 a1, unsigned __int8 *a2))()
{
__int64 (__fastcall *result)(); // x0
*(_DWORD *)(a1 + 192) = (a2[18] << 16) | (a2[17] << 8) | a2[16] | (a2[19] << 24);
*(_DWORD *)(a1 + 196) = (a2[22] << 16) | (a2[21] << 8) | a2[20] | (a2[23] << 24);
*(_DWORD *)(a1 + 200) = (a2[26] << 16) | (a2[25] << 8) | a2[24] | (a2[27] << 24);
*(_DWORD *)(a1 + 204) = (a2[30] << 16) | (a2[29] << 8) | a2[28] | (a2[31] << 24);
result = (__int64 (__fastcall *)())poly1305_init();
if ( !(_DWORD)result )
{
*(_QWORD *)(a1 + 232) = poly1305_blocks;
result = poly1305_emit;
*(_QWORD *)(a1 + 240) = poly1305_emit;
}
*(_QWORD *)(a1 + 224) = 0;
return result;
}