//
// bn_set_words from 0x10976d4 to 0x1097760 (140 bytes)
//
// 6 xrefs:
// > sub_1014AD8 @ 0x1014e4c
// > sub_1014AD8 @ 0x1014e94
// > sub_10150E8 @ 0x1015d58
// > sub_10150E8 @ 0x1015d70
// > sub_10150E8 @ 0x1015d88
// > ??> @ 0x8cf38
//
// 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:17:24 +0000
//
__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;
}
}