//
// ec_GFp_mont_field_encode from 0xa04920 to 0xa04978 (88 bytes)
//
// 3 xrefs:
// > ??> @ 0x7b85c
// > ??> @ 0xd16e10
// > ??> @ 0xd16ed4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:39 +0000
//
int __fastcall ec_GFp_mont_field_encode(int a1, int a2, int a3, int a4)
{
int v4; // r4
v4 = *(_DWORD *)(a1 + 76);
if ( v4 )
return BN_to_montgomery(a2, a3, v4, a4);
ERR_put_error(16, 134, 111, "crypto/ec/ecp_mont.c", 213);
return 0;
}