//
// poly1305_emit from 0xe66740 to 0xe66774 (52 bytes)
//
// 5 xrefs:
// > sub_E66F00 @ 0xe66f04
// > ??> @ 0xb68b0
// > Poly1305_Init @ 0xdcf448
// > poly1305_init @ 0xe66648
// > ??> @ 0x122e538
//
// 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
//
_QWORD *__fastcall poly1305_emit(_QWORD *result, _OWORD *a2, _OWORD *a3)
{
unsigned __int64 v3; // x4
unsigned __int64 v4; // x5
unsigned __int128 v5; // kr00_16
v3 = *result;
v4 = result[1];
if ( (((*(_OWORD *)(result + 1) + (unsigned __int128)__CFADD__(*result, 5)) >> 64) & 0xFFFFFFFFFFFFFFFCLL) != 0 )
{
v5 = *(_OWORD *)result + 5LL;
v4 = v5 >> 64;
v3 = v5;
}
*a2 = __PAIR128__(v4, v3) + *a3;
return result;
}