//
// sub_100124924 from 0x100124924 to 0x1001249a0 (124 bytes)
//
// 2 xrefs:
// > sub_1001245FC @ 0x1001246e0
// > sub_1001245FC @ 0x100124710
//
// 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 sub_100124924(__int64 a1, __int64 *a2, __int64 *a3, __int64 *a4)
{
__int64 *v5; // x20
__int64 v7; // x8
v5 = a2;
if ( a2 != a3 )
{
do
{
v7 = *v5;
*(__int64 *)((char *)a4 + 5) = *(__int64 *)((char *)v5 + 5);
*a4 = v7;
if ( v5 != a4 )
sub_100017888(a4 + 2, (char *)v5[2], (char *)v5[3], (v5[3] - v5[2]) >> 2);
v5 += 5;
a4 += 5;
}
while ( v5 != a3 );
return a3;
}
return v5;
}