//
// Poly1305_Init from 0xa3e8b0 to 0xa3e97c (204 bytes)
//
// 2 xrefs:
// > sub_A13D1C @ 0xa13f38
// > ??> @ 0x7cb8c
//
// 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:08:12 +0000
//
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;
}