//
// EC_POINT_dbl from 0xd91e00 to 0xd91e88 (136 bytes)
//
// 9 xrefs:
// > ec_wNAF_mul @ 0xd934b0
// > ec_wNAF_mul @ 0xd93734
// > ec_wNAF_precompute_mult @ 0xd93a8c
// > ec_wNAF_precompute_mult @ 0xd93c30
// > ec_wNAF_precompute_mult @ 0xd93c54
// > sub_D98060 @ 0xd98470
// > ec_GFp_simple_add @ 0xd9a700
// > ec_GFp_simple_add @ 0xd9a7e8
// > ??> @ 0x484e0
//
// 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_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;
}
}