//
// sub_14024A090 from 0x14024a090 to 0x14024a151 (193 bytes)
//
// 6 xrefs:
// > sub_140207A90 @ 0x1402086f4
// > sub_140207A90 @ 0x140208707
// > ??> @ 0x140682b68
// > ??> @ 0x140682b78
// > ??> @ 0x140682b8c
// > ??> @ 0x1406cea6c
//
// 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
//
_QWORD *__fastcall sub_14024A090(_QWORD *a1, _QWORD *a2)
{
_QWORD *v4; // r8
if ( a1 != a2 )
{
v4 = (_QWORD *)*a1;
if ( *a1 )
{
if ( (unsigned __int64)(96 * ((a1[2] - (_QWORD)v4) / 96LL)) >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free(v4);
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
}
*a1 = *a2;
a1[1] = a2[1];
a1[2] = a2[2];
*a2 = 0;
a2[1] = 0;
a2[2] = 0;
}
return a1;
}