//
// sub_100241560 from 0x100241560 to 0x1002415ec (140 bytes)
//
// 1 xrefs:
// > sub_10024130C @ 0x1002413cc
//
// 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_100241560(_QWORD *a1, __int64 a2)
{
_QWORD *v4; // x0
__int64 v5; // x8
__int64 v6; // x8
v4 = (_QWORD *)a1[3];
a1[3] = 0;
if ( v4 == a1 )
{
v5 = 32;
}
else
{
if ( !v4 )
goto LABEL_6;
v5 = 40;
}
(*(void (**)(void))(*v4 + v5))();
LABEL_6:
v6 = *(_QWORD *)(a2 + 24);
if ( v6 )
{
if ( v6 == a2 )
{
a1[3] = a1;
(*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(a2 + 24) + 24LL))(*(_QWORD *)(a2 + 24), a1);
}
else
{
a1[3] = v6;
*(_QWORD *)(a2 + 24) = 0;
}
}
else
{
a1[3] = 0;
}
return a1;
}