//
// sub_1004BA1C8 from 0x1004ba1c8 to 0x1004ba218 (80 bytes)
//
// 0 xrefs:
//
// 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_1004BA1C8(__int64 a1, __int64 a2)
{
__int64 v2; // x0
__int64 result; // x0
v2 = *(unsigned int *)(*(_QWORD *)(a1 + 72) + 69816LL);
if ( (_DWORD)a2 )
{
result = sub_1004F8F70(v2, 1, 0);
if ( !(_DWORD)result )
return 0;
}
else
{
result = sub_1004F8F70(v2, a2, 1);
if ( !(_DWORD)result )
return 0;
}
return result;
}