//
// bn_copy_words from 0x1097654 to 0x10976ac (88 bytes)
//
// 9 xrefs:
// > sub_1014AD8 @ 0x1014b14
// > sub_1014AD8 @ 0x1014b2c
// > sub_1014AD8 @ 0x1014b84
// > sub_10150E8 @ 0x10157fc
// > sub_10150E8 @ 0x1015814
// > sub_10150E8 @ 0x101582c
// > sub_10163C0 @ 0x1016790
// > sub_10163C0 @ 0x10167a4
// > ??> @ 0xe20f0
//
// 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_copy_words(void *a1, __int64 a2, int a3)
{
unsigned int v3; // w3
v3 = 0;
if ( *(_DWORD *)(a2 + 8) <= a3 )
{
memset(a1, 0, 8LL * a3);
memcpy(a1, *(const void **)a2, 8LL * *(int *)(a2 + 8));
return 1;
}
return v3;
}