//
// sub_1000207AC from 0x1000207ac to 0x100020828 (124 bytes)
//
// 2 xrefs:
// > sub_100020534 @ 0x100020628
// > sub_100020534 @ 0x100020658
//
// 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
//
__int128 *__fastcall sub_1000207AC(__int64 a1, __int128 *a2, __int128 *a3, __int64 a4)
{
__int128 *v5; // x20
__int128 v7; // q0
__int128 v8; // q2
v5 = a2;
if ( a2 != a3 )
{
do
{
v7 = *v5;
v8 = v5[2];
*(_OWORD *)(a4 + 16) = v5[1];
*(_OWORD *)(a4 + 32) = v8;
*(_OWORD *)a4 = v7;
if ( v5 != (__int128 *)a4 )
sub_100017888(
(__int64 *)(a4 + 48),
*((char **)v5 + 6),
*((char **)v5 + 7),
(__int64)(*((_QWORD *)v5 + 7) - *((_QWORD *)v5 + 6)) >> 2);
v5 = (__int128 *)((char *)v5 + 72);
a4 += 72;
}
while ( v5 != a3 );
return a3;
}
return v5;
}