//
// ecp_nistz256_scatter_w7 from 0xe5c190 to 0xe5c214 (132 bytes)
//
// 2 xrefs:
// > sub_D98060 @ 0xd9845c
// > ??> @ 0xbf820
//
// 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
//
_BYTE *__fastcall ecp_nistz256_scatter_w7(__int64 a1, __int64 *a2, __int64 a3)
{
_BYTE *result; // x0
__int64 v4; // x2
__int64 v5; // t1
result = (_BYTE *)(a1 + a3);
v4 = 8;
do
{
v5 = *a2++;
--v4;
__asm
{
PRFM #0x11, [X0,#0x1000]
PRFM #0x11, [X0,#0x1040]
PRFM #0x11, [X0,#0x1080]
PRFM #0x11, [X0,#0x10C0]
PRFM #0x11, [X0,#0x1100]
PRFM #0x11, [X0,#0x1140]
PRFM #0x11, [X0,#0x1180]
PRFM #0x11, [X0,#0x11C0]
}
*(result - 1) = v5;
result[63] = BYTE1(v5);
result[127] = BYTE2(v5);
result[191] = BYTE3(v5);
result[255] = BYTE4(v5);
result[319] = BYTE5(v5);
result[383] = BYTE6(v5);
result[447] = HIBYTE(v5);
result += 512;
}
while ( !_ZF );
return result;
}