//
// bn_set_words from 0xa84ac8 to 0xa84b40 (120 bytes)
//
// 6 xrefs:
// > sub_A04B08 @ 0xa04e84
// > sub_A04B08 @ 0xa04ed8
// > sub_A05194 @ 0xa05fec
// > sub_A05194 @ 0xa0630c
// > sub_A05194 @ 0xa06328
// > ??> @ 0x7ba2c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:51 +0000
//
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;
}
}