//
// bn_set_words from 0x86fec8 to 0x86ff40 (120 bytes)
//
// 6 xrefs:
// > sub_7EFF08 @ 0x7f0284
// > sub_7EFF08 @ 0x7f02d8
// > sub_7F0594 @ 0x7f13ec
// > sub_7F0594 @ 0x7f170c
// > sub_7F0594 @ 0x7f1728
// > ??> @ 0x61fac
//
// 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
//
int __fastcall bn_set_words(int a1, const void *a2, int a3)
{
if ( bn_wexpand(a1, a3) )
{
memcpy(*(void **)a1, a2, 4 * a3);
*(_DWORD *)(a1 + 4) = a3;
bn_correct_top((_DWORD *)a1);
return 1;
}
else
{
ERR_put_error(3, 144, 65, (int)"crypto/bn/bn_intern.c", 191);
return 0;
}
}