//
// EC_POINTs_make_affine from 0xd92538 to 0xd925e8 (176 bytes)
//
// 3 xrefs:
// > ec_wNAF_mul @ 0xd93578
// > ec_wNAF_precompute_mult @ 0xd93ba0
// > ??> @ 0x94428
//
// 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
//
__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;
}
}