//
// ecp_nistz256_gather_w7 from 0x8b1ce0 to 0x8b1d38 (88 bytes)
//
// 3 xrefs:
// > sub_7F0594 @ 0x7f08a0
// > sub_7F0594 @ 0x7f0a98
// > ??> @ 0x61fec
//
// 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
//
int *__fastcall ecp_nistz256_gather_w7(int *result, int a2, int a3)
{
int v3; // r3
unsigned __int8 *v4; // r1
int v5; // r2
int v6; // r4
int v7; // r5
int v8; // r6
int v9; // r7
v3 = 0;
if ( a3 )
{
--a3;
v3 = -1;
}
v4 = (unsigned __int8 *)(a2 + a3);
v5 = 16;
do
{
v6 = *v4;
--v5;
v7 = v4[64];
v8 = v4[128];
v9 = v4[192];
v4 += 256;
*result++ = (v6 | (v7 << 8) | (v8 << 16) | (v9 << 24)) & v3;
}
while ( v5 );
return result;
}