//
// sub_100561458 from 0x100561458 to 0x1005614a8 (80 bytes)
//
// 3 xrefs:
// > sub_10054B598 @ 0x10054b5e4
// > sub_1005524A4 @ 0x1005524f4
// > sub_100552734 @ 0x10055276c
//
// 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_100561458(_BYTE *a1, __int64 a2)
{
__int64 result; // x0
_BYTE *v3; // [xsp+8h] [xbp-18h] BYREF
__int64 v4; // [xsp+10h] [xbp-10h]
__int64 v5; // [xsp+18h] [xbp-8h]
v3 = a1;
v4 = 0;
v5 = a2;
result = sub_1005614A8(&v3, sub_10056284C);
if ( v5 )
{
if ( v5 == v4 )
*(v3 - 1) = 0;
else
*v3 = 0;
}
return result;
}