//
// sub_100241A6C from 0x100241a6c to 0x100241ad0 (100 bytes)
//
// 1 xrefs:
// > sub_100241828 @ 0x1002418a0
//
// 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_100241A6C(__int64 a1, __int64 a2)
{
__int64 v3; // x0
v3 = *(_QWORD *)(a2 + 24);
if ( v3 )
{
if ( v3 == a2 )
{
*(_QWORD *)(a1 + 24) = a1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a2 + 24) + 24LL))(*(_QWORD *)(a2 + 24), a1);
}
else
{
*(_QWORD *)(a1 + 24) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);
}
}
else
{
*(_QWORD *)(a1 + 24) = 0;
}
return a1;
}