//
// EC_POINT_dbl from 0x1010160 to 0x10101e8 (136 bytes)
//
// 9 xrefs:
// > ec_wNAF_mul @ 0x1011810
// > ec_wNAF_mul @ 0x1011a94
// > ec_wNAF_precompute_mult @ 0x1011dec
// > ec_wNAF_precompute_mult @ 0x1011f90
// > ec_wNAF_precompute_mult @ 0x1011fb4
// > sub_10163C0 @ 0x10167d0
// > ec_GFp_simple_add @ 0x1018a60
// > ec_GFp_simple_add @ 0x1018b48
// > ??> @ 0x66478
//
// 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:02 +0000
//
__int64 __fastcall EC_POINT_dbl(__int64 *a1, _QWORD *a2, _QWORD *a3)
{
__int64 v3; // x4
__int64 (*v4)(void); // x19
v3 = *a1;
v4 = *(__int64 (**)(void))(*a1 + 184);
if ( v4 )
{
if ( v3 == *a2 && v3 == *a3 )
{
return v4();
}
else
{
ERR_put_error(16, 115, 101, "crypto/ec/ec_lib.c", 799);
return 0;
}
}
else
{
ERR_put_error(16, 115, 66, "crypto/ec/ec_lib.c", 795);
return 0;
}
}