//
// bn_copy_words from 0x86fe50 to 0x86fe98 (72 bytes)
//
// 9 xrefs:
// > sub_7EFF08 @ 0x7eff2c
// > sub_7EFF08 @ 0x7eff48
// > sub_7EFF08 @ 0x7eff90
// > sub_7F0594 @ 0x7f0d7c
// > sub_7F0594 @ 0x7f0d9c
// > sub_7F0594 @ 0x7f0db8
// > sub_7F1BA0 @ 0x7f1fe4
// > sub_7F1BA0 @ 0x7f1ffc
// > ??> @ 0x61f6c
//
// 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
//
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;
}