//
// ec_GFp_mont_field_sqr from 0x10149b8 to 0x1014a14 (92 bytes)
//
// 3 xrefs:
// > ??> @ 0xc3508
// > ??> @ 0x1539f90
// > ??> @ 0x153a110
//
// 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:04 +0000
//
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;
}