//
// ec_GF2m_simple_point_set_affine_coordinates from 0xe33640 to 0xe33724 (228 bytes)
//
// 2 xrefs:
// > ??> @ 0x52728
// > ??> @ 0x12271c0
//
// 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_GF2m_simple_point_set_affine_coordinates(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
unsigned __int64 *v6; // x21
_UNKNOWN **v7; // x0
if ( a3 && a4 )
{
if ( BN_copy(*(unsigned __int64 **)(a2 + 8), a3)
&& (BN_set_negative(*(_QWORD *)(a2 + 8), 0), BN_copy(*(unsigned __int64 **)(a2 + 16), a4))
&& (BN_set_negative(*(_QWORD *)(a2 + 16), 0),
v6 = *(unsigned __int64 **)(a2 + 24),
v7 = BN_value_one(),
BN_copy(v6, (__int64)v7)) )
{
BN_set_negative(*(_QWORD *)(a2 + 24), 0);
*(_DWORD *)(a2 + 32) = 1;
return 1;
}
else
{
return 0;
}
}
else
{
ERR_put_error(16, 163, 67, (__int64)"crypto/ec/ec2_smpl.c", 361);
return 0;
}
}