//
// BN_set_negative from 0xff8cb4 to 0xff8cf8 (68 bytes)
//
// 12 xrefs:
// > BN_sub_word @ 0xffd9d8
// > ec_GFp_simple_group_set_curve @ 0x1018470
// > ASN1_INTEGER_to_BN @ 0x1088fc8
// > ASN1_ENUMERATED_to_BN @ 0x10894cc
// > ec_GF2m_simple_point_set_affine_coordinates @ 0x10b1980
// > ec_GF2m_simple_point_set_affine_coordinates @ 0x10b199c
// > ec_GF2m_simple_point_set_affine_coordinates @ 0x10b19c0
// > ec_GF2m_simple_point_get_affine_coordinates @ 0x10b1a88
// > ec_GF2m_simple_point_get_affine_coordinates @ 0x10b1aac
// > sub_10FAC48 @ 0x10fb204
// > sub_10FAC48 @ 0x10fb210
// > ??> @ 0x544f0
//
// 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:15:49 +0000
//
__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;
}
}