//
// ec_GF2m_simple_points_make_affine from 0xa9e3c8 to 0xa9e424 (92 bytes)
//
// 2 xrefs:
// > ??> @ 0x842ec
// > ??> @ 0xd196c0
//
// 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:09:11 +0000
//
int __fastcall ec_GF2m_simple_points_make_affine(int a1, int a2, int a3, int a4)
{
int v7; // r5
int v8; // r4
int v9; // t1
int result; // r0
if ( !a2 )
return 1;
v7 = a3 - 4;
v8 = 0;
while ( 1 )
{
v9 = *(_DWORD *)(v7 + 4);
v7 += 4;
result = (*(int (__fastcall **)(int, int, int))(*(_DWORD *)a1 + 116))(a1, v9, a4);
++v8;
if ( !result )
break;
if ( v8 == a2 )
return 1;
}
return result;
}