//
// EC_get_builtin_curves from 0x100d8dc to 0x100d924 (72 bytes)
//
// 1 xrefs:
// > ??> @ 0xa9030
//
// 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:16:00 +0000
//
__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_15393E8;
v3 = (char *)&unk_15393E8 + 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;
}