//
// ec_GFp_mont_field_sqr from 0xd96658 to 0xd966b4 (92 bytes)
//
// 3 xrefs:
// > ??> @ 0x93d20
// > ??> @ 0x1222208
// > ??> @ 0x1222388
//
// 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
//
unsigned __int64 *__fastcall ec_GFp_mont_field_sqr(__int64 a1, unsigned __int64 *a2, __int64 a3, __int64 a4)
{
if ( *(_QWORD *)(a1 + 120) )
return BN_mod_mul_montgomery(a2, a3, a3, *(_QWORD *)(a1 + 120), a4);
ERR_put_error(16, 132, 111, "crypto/ec/ecp_mont.c", 202);
return nullptr;
}