//
// sub_1005ADB88 from 0x1005adb88 to 0x1005adc1c (148 bytes)
//
// 1 xrefs:
// > sub_1005CCD74 @ 0x1005ccf60
//
// 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_1005ADB88(__int64 *a1, _BYTE *a2)
{
_BYTE *v2; // x20
__int64 result; // x0
v2 = a2;
if ( *a2 == 45 )
++a2;
if ( *a2 == 48 && (a2[1] | 0x20) == 0x78 )
{
if ( !(unsigned int)sub_1005AD7A8(a1, a2 + 2) )
return 0;
}
else if ( !(unsigned int)sub_1005AD9B8(a1, a2) )
{
return 0;
}
result = 1;
if ( *v2 == 45 )
*(_DWORD *)(*a1 + 16) = 1;
return result;
}