//
// BN_set_negative from 0x7d480c to 0x7d4840 (52 bytes)
//
// 12 xrefs:
// > BN_sub_word @ 0x7d89b4
// > ec_GFp_simple_group_set_curve @ 0x7f3e60
// > ASN1_INTEGER_to_BN @ 0x862744
// > ASN1_ENUMERATED_to_BN @ 0x862db0
// > ec_GF2m_simple_point_set_affine_coordinates @ 0x889dcc
// > ec_GF2m_simple_point_set_affine_coordinates @ 0x889dec
// > ec_GF2m_simple_point_set_affine_coordinates @ 0x889e14
// > ec_GF2m_simple_point_get_affine_coordinates @ 0x889ecc
// > ec_GF2m_simple_point_get_affine_coordinates @ 0x889ef8
// > sub_8D1010 @ 0x8d1628
// > sub_8D1010 @ 0x8d1634
// > ??> @ 0x5fb6c
//
// 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
//
bool __fastcall BN_set_negative(_BOOL4 result, int a2)
{
int v2; // r4
v2 = result;
*(_DWORD *)(v2 + 12) = a2 && !(result = BN_is_zero(result));
return result;
}