//
// ec_GFp_mont_field_encode from 0x1014904 to 0x101495c (88 bytes)
//
// 3 xrefs:
// > ??> @ 0x8fc98
// > ??> @ 0x1539fa0
// > ??> @ 0x153a120
//
// 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
//
__int64 __fastcall ec_GFp_mont_field_encode(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v4; // x19
v4 = *(_QWORD *)(a1 + 120);
if ( v4 )
return BN_to_montgomery(a2, a3, v4, a4);
ERR_put_error(16, 134, 111, "crypto/ec/ecp_mont.c", 213);
return 0;
}