//
// sub_1001253D0 from 0x1001253d0 to 0x100125450 (128 bytes)
//
// 1 xrefs:
// > sub_10012537C @ 0x1001253a4
//
// 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_1001253D0(__int64 result, _QWORD *a2, _QWORD *a3)
{
_QWORD *v4; // x21
__int64 v5; // x20
_QWORD *v6; // x9
_QWORD *v7; // x8
bool v8; // zf
if ( a2 != a3 )
{
v4 = a2;
v5 = result;
do
{
result = sub_100125450(v5, v5 + 8, (char *)v4 + 28, (char *)v4 + 28);
v6 = (_QWORD *)v4[1];
if ( v6 )
{
do
{
v7 = v6;
v6 = (_QWORD *)*v6;
}
while ( v6 );
}
else
{
do
{
v7 = (_QWORD *)v4[2];
v8 = *v7 == (_QWORD)v4;
v4 = v7;
}
while ( !v8 );
}
v4 = v7;
}
while ( v7 != a3 );
}
return result;
}