//
// Poly1305_Init from 0x104d6ec to 0x104d7c0 (212 bytes)
//
// 2 xrefs:
// > sub_1023B80 @ 0x1023d74
// > ??> @ 0xbf290
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:37 +0000
//
__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;
}