//
// bn_copy_words from 0xe19354 to 0xe193ac (88 bytes)
//
// 9 xrefs:
// > sub_D96778 @ 0xd967b4
// > sub_D96778 @ 0xd967cc
// > sub_D96778 @ 0xd96824
// > sub_D96D88 @ 0xd9749c
// > sub_D96D88 @ 0xd974b4
// > sub_D96D88 @ 0xd974cc
// > sub_D98060 @ 0xd98430
// > sub_D98060 @ 0xd98444
// > ??> @ 0xac9e0
//
// 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
//
__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;
}