//
// ec_GFp_mont_field_encode from 0x7efd20 to 0x7efd78 (88 bytes)
//
// 3 xrefs:
// > ??> @ 0x61ddc
// > ??> @ 0xab2734
// > ??> @ 0xab27f8
//
// 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
//
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;
}