//
// EC_POINT_dbl from 0x9ffb78 to 0x9ffc08 (144 bytes)
//
// 9 xrefs:
// > ec_wNAF_mul @ 0xa013f8
// > ec_wNAF_mul @ 0xa01678
// > ec_wNAF_precompute_mult @ 0xa01a50
// > ec_wNAF_precompute_mult @ 0xa01c04
// > ec_wNAF_precompute_mult @ 0xa01c30
// > sub_A067A0 @ 0xa06c2c
// > ec_GFp_simple_add @ 0xa090a4
// > ec_GFp_simple_add @ 0xa09138
// > ??> @ 0x7b55c
//
// 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:37 +0000
//
int __fastcall EC_POINT_dbl(int *a1, _DWORD *a2, _DWORD *a3)
{
int v3; // r12
v3 = *a1;
if ( !*(_DWORD *)(*a1 + 96) )
{
ERR_put_error(16, 115, 66, "crypto/ec/ec_lib.c", 795);
return 0;
}
if ( v3 != *a2 || v3 != *a3 )
{
ERR_put_error(16, 115, 101, "crypto/ec/ec_lib.c", 799);
return 0;
}
return (*(int (__fastcall **)(int *))(*a1 + 96))(a1);
}