//
// sub_BA10A4 from 0xba10a4 to 0xba1160 (188 bytes)
//
// 1 xrefs:
// > ??> @ 0x111c8e8
//
// 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_BA10A4(__int64 *a1)
{
__int64 v2; // x21
char *v3; // x1
__int64 v4; // x0
char v5; // w0
v2 = *a1;
*((_DWORD *)a1 + 43) = 2;
v3 = strstr(*(const char **)(v2 + 36032), ";mode=");
if ( !v3 )
{
v3 = strstr((const char *)a1[22], ";mode=");
if ( !v3 )
return 0;
}
v4 = (unsigned __int8)v3[6];
*v3 = 0;
v5 = sub_B944C4(v4);
if ( v5 == 65 || v5 == 78 )
{
*(_BYTE *)(v2 + 1555) = 1;
return 0;
}
else
{
*(_BYTE *)(v2 + 1555) = 0;
return 0;
}
}