//
// std::copy from 0x60bdcc to 0x60bdf2 (38 bytes)
//
// 9 xrefs:
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60da98
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60dac4
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60daf4
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60db32
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60dc2a
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60dc56
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60dc86
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60dcc4
// > fmt::BasicWriter::write_str @ 0x60e438
//
// 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
//
_DWORD *__fastcall std::copy(int a1, int a2, _DWORD *a3)
{
int v3; // r1
int v4; // r4
_DWORD *v5; // r5
int v6; // t1
v3 = a2 - a1;
v4 = a1 - 1;
v5 = a3;
while ( v3 - 1 - v4 + a1 > 0 )
{
v6 = *(unsigned __int8 *)++v4;
*v5++ = v6;
}
return &a3[v3 & ~(v3 >> 31)];
}