//
// sub_1800D2D20 from 0x1800d2d20 to 0x1800d2d6a (74 bytes)
//
// 3 xrefs:
// > sub_1800D2CC0 @ 0x1800d2ce6
// > ??> @ 0x1801fecb8
// > ??> @ 0x1801fecc4
//
// This function is hookable on this platform (idp: pc, 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 10:54:10 +0000
//
__int64 __fastcall sub_1800D2D20(__int64 a1, int a2, int *a3, const void *a4, int a5)
{
__int64 v5; // r10
v5 = *a3;
if ( (int)v5 + a5 > a2 )
return 31;
memmove((void *)(v5 + a1), a4, a5);
*a3 += a5;
return 0;
}