//
// BN_set_negative from 0xd7a954 to 0xd7a998 (68 bytes)
//
// 12 xrefs:
// > BN_sub_word @ 0xd7f678
// > ec_GFp_simple_group_set_curve @ 0xd9a110
// > ASN1_INTEGER_to_BN @ 0xe0acc8
// > ASN1_ENUMERATED_to_BN @ 0xe0b1cc
// > ec_GF2m_simple_point_set_affine_coordinates @ 0xe33680
// > ec_GF2m_simple_point_set_affine_coordinates @ 0xe3369c
// > ec_GF2m_simple_point_set_affine_coordinates @ 0xe336c0
// > ec_GF2m_simple_point_get_affine_coordinates @ 0xe33788
// > ec_GF2m_simple_point_get_affine_coordinates @ 0xe337ac
// > sub_E7CC48 @ 0xe7d204
// > sub_E7CC48 @ 0xe7d210
// > ??> @ 0x39e58
//
// 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 BN_set_negative(__int64 a1, int a2)
{
if ( !a2 || BN_is_zero(a1) )
{
*(_DWORD *)(a1 + 16) = 0;
return 0;
}
else
{
*(_DWORD *)(a1 + 16) = 1;
return 1;
}
}