//
// ec_GF2m_simple_point_set_affine_coordinates from 0x10b1940 to 0x10b1a24 (228 bytes)
//
// 2 xrefs:
// > ??> @ 0x72970
// > ??> @ 0x153ef48
//
// 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:17:43 +0000
//
__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;
}
}