//
// sub_1005D6B78 from 0x1005d6b78 to 0x1005d6bd0 (88 bytes)
//
// 1 xrefs:
// > sub_1005D6108 @ 0x1005d6140
//
// 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 11:09:34 +0000
//
__int64 __fastcall sub_1005D6B78(__int64 a1, int a2, int *a3, void *__src, int a5)
{
__int64 v5; // x8
v5 = *a3;
if ( (int)v5 + a5 > a2 )
return 31;
memcpy((void *)(a1 + v5), __src, a5);
*a3 += a5;
return 0;
}