//
// ec_GF2m_simple_points_make_affine from 0x8897c8 to 0x889824 (92 bytes)
//
// 2 xrefs:
// > ??> @ 0x6a86c
// > ??> @ 0xab4fe4
//
// 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 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;
}