//
// EC_get_builtin_curves from 0x9fd0cc to 0x9fd114 (72 bytes)
//
// 1 xrefs:
// > ??> @ 0x7b06c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:36 +0000
//
int __fastcall EC_get_builtin_curves(int a1, unsigned int a2)
{
bool v2; // zf
int *v3; // r3
_DWORD *v4; // r2
char *v5; // r12
int v6; // r0
int v7; // r1
v2 = a2 == 0;
if ( a2 )
v2 = a1 == 0;
if ( !v2 )
{
v3 = (int *)&unk_D16830;
if ( a2 >= 0x51 )
a2 = 81;
v4 = (_DWORD *)(a1 + 4);
v5 = (char *)&unk_D16830 + 16 * a2;
do
{
v6 = *v3;
v7 = v3[3];
v3 += 4;
*(v4 - 1) = v6;
*v4 = v7;
v4 += 2;
}
while ( v3 != (int *)v5 );
}
return 81;
}