//
// ec_GFp_simple_group_copy from 0xd99fb8 to 0xd9a024 (108 bytes)
//
// 3 xrefs:
// > ec_GFp_mont_group_copy @ 0xd9653c
// > ??> @ 0xb30b8
// > ??> @ 0x1222418
//
// 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
//
__int64 __fastcall ec_GFp_simple_group_copy(__int64 a1, __int64 a2)
{
if ( !BN_copy(*(unsigned __int64 **)(a1 + 64), *(_QWORD *)(a2 + 64))
|| !BN_copy(*(unsigned __int64 **)(a1 + 96), *(_QWORD *)(a2 + 96))
|| !BN_copy(*(unsigned __int64 **)(a1 + 104), *(_QWORD *)(a2 + 104)) )
{
return 0;
}
*(_DWORD *)(a1 + 112) = *(_DWORD *)(a2 + 112);
return 1;
}