//
// EC_get_builtin_curves from 0xd8f57c to 0xd8f5c4 (72 bytes)
//
// 1 xrefs:
// > ??> @ 0x7ed50
//
// 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
//
__int64 __fastcall EC_get_builtin_curves(__int64 a1, unsigned __int64 a2)
{
char *v2; // x2
char *v3; // x4
int v4; // w3
__int64 v5; // x1
if ( a1 && a2 )
{
if ( a2 > 0x51 )
a2 = 81;
v2 = (char *)&unk_1221660;
v3 = (char *)&unk_1221660 + 32 * a2;
do
{
v4 = *(_DWORD *)v2;
v2 += 32;
a1 += 16;
v5 = *((_QWORD *)v2 - 1);
*(_DWORD *)(a1 - 16) = v4;
*(_QWORD *)(a1 - 8) = v5;
}
while ( v2 != v3 );
}
return 81;
}