//
// sub_140250800 from 0x140250800 to 0x14025089e (158 bytes)
//
// 6 xrefs:
// > sub_14024A6F0 @ 0x14024a7d9
// > PlayerObject::init @ 0x140387e60
// > sub_1403A4600 @ 0x1403a4673
// > ??> @ 0x1406835ac
// > ??> @ 0x1406835bc
// > ??> @ 0x1406cf0b4
//
// 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 sub_140250800(_DWORD *a1, unsigned __int64 a2, _DWORD *a3)
{
_DWORD *v3; // rdi
__int64 v4; // rbx
unsigned __int64 v6; // r9
v3 = a1;
if ( *a3 == _mm_cvtsi128_si32((__m128i)0LL) )
{
v4 = a2;
memset(a1, 0, 4 * a2);
return &v3[v4];
}
else
{
if ( a2 >= 4 )
{
v6 = ((a2 - 4) >> 2) + 1;
a2 += -4LL * v6;
do
{
*v3 = *a3;
v3[1] = *a3;
v3[2] = *a3;
v3[3] = *a3;
v3 += 4;
--v6;
}
while ( v6 );
}
for ( ; a2; --a2 )
*v3++ = *a3;
return v3;
}
}