//
// sub_100124A90 from 0x100124a90 to 0x100124ae4 (84 bytes)
//
// 2 xrefs:
// > sub_100124414 @ 0x100124524
// > sub_10012458C @ 0x100124594
//
// 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_100124A90(_QWORD *a1)
{
__int64 v2; // x1
__int64 v3; // x8
sub_100124AE4(*a1, a1[2]);
v2 = a1[1];
if ( v2 )
{
v3 = *(_QWORD *)(v2 + 16);
if ( v3 )
{
do
{
v2 = v3;
v3 = *(_QWORD *)(v3 + 16);
}
while ( v3 );
a1[1] = v2;
}
sub_100124AE4(*a1, v2);
}
return a1;
}