//
// bn_set_words from 0xe193d4 to 0xe19460 (140 bytes)
//
// 6 xrefs:
// > sub_D96778 @ 0xd96aec
// > sub_D96778 @ 0xd96b34
// > sub_D96D88 @ 0xd979f8
// > sub_D96D88 @ 0xd97a10
// > sub_D96D88 @ 0xd97a28
// > ??> @ 0x67f20
//
// 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_words(__int64 a1, const void *a2, int a3)
{
if ( bn_wexpand((unsigned __int64 *)a1, a3) )
{
memcpy(*(void **)a1, a2, 8LL * a3);
*(_DWORD *)(a1 + 8) = a3;
bn_correct_top(a1);
return 1;
}
else
{
ERR_put_error(3, 144, 65, (__int64)"crypto/bn/bn_intern.c", 191);
return 0;
}
}