//
// ecp_nistz256_scatter_w7 from 0x10da190 to 0x10da214 (132 bytes)
//
// 2 xrefs:
// > sub_10163C0 @ 0x10167bc
// > ??> @ 0xf9a60
//
// 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:17:45 +0000
//
_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;
}