//
// sub_1005712EC from 0x1005712ec to 0x100571370 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x10082e478
//
// 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_1005712EC(__int64 *a1)
{
__int64 v2; // x20
char *v3; // x0
int v4; // w0
v2 = *a1;
*((_DWORD *)a1 + 43) = 2;
v3 = strstr(*(char **)(v2 + 35584), ";mode=");
if ( v3 || (v3 = strstr((char *)a1[22], ";mode=")) != nullptr )
{
*v3 = 0;
v4 = sub_100573F9C((unsigned int)v3[6]);
*(_BYTE *)(v2 + 1299) = v4 == 65 || v4 == 78;
}
return 0;
}