//
// bn_copy_words from 0xa84a50 to 0xa84a98 (72 bytes)
//
// 9 xrefs:
// > sub_A04B08 @ 0xa04b2c
// > sub_A04B08 @ 0xa04b48
// > sub_A04B08 @ 0xa04b90
// > sub_A05194 @ 0xa0597c
// > sub_A05194 @ 0xa0599c
// > sub_A05194 @ 0xa059b8
// > sub_A067A0 @ 0xa06be4
// > sub_A067A0 @ 0xa06bfc
// > ??> @ 0x7b9ec
//
// 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_copy_words(void *a1, int a2, int a3)
{
if ( *(_DWORD *)(a2 + 4) > a3 )
return 0;
memset(a1, 0, 4 * a3);
memcpy(a1, *(const void **)a2, 4 * *(_DWORD *)(a2 + 4));
return 1;
}