//
// EC_POINTs_make_affine from 0x1010898 to 0x1010948 (176 bytes)
//
// 3 xrefs:
// > ec_wNAF_mul @ 0x10118d8
// > ec_wNAF_precompute_mult @ 0x1011f00
// > ??> @ 0xc3e20
//
// 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:02 +0000
//
__int64 __fastcall EC_POINTs_make_affine(__int64 *a1, __int64 a2, _QWORD **a3)
{
__int64 v3; // x6
__int64 (*v4)(void); // x19
__int64 v5; // x4
v3 = *a1;
v4 = *(__int64 (**)(void))(*a1 + 232);
if ( v4 )
{
if ( a2 )
{
if ( v3 != **a3 )
{
LABEL_9:
ERR_put_error(16, 136, 101, "crypto/ec/ec_lib.c", 891);
return 0;
}
v5 = 0;
while ( ++v5 != a2 )
{
if ( v3 != *a3[v5] )
goto LABEL_9;
}
}
return v4();
}
else
{
ERR_put_error(16, 136, 66, "crypto/ec/ec_lib.c", 886);
return 0;
}
}