//
// sub_843888 from 0x843888 to 0x8438e2 (90 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:02:22 +0000
//
int __fastcall sub_843888(int *a1)
{
int v1; // r5
char *v3; // r3
int v4; // r0
int v5; // r0
v1 = *a1;
a1[35] = 2;
v3 = strstr(*(const char **)(v1 + 34676), ";mode=");
if ( !v3 )
{
v3 = strstr((const char *)a1[36], ";mode=");
if ( !v3 )
return 0;
}
v4 = (unsigned __int8)v3[6];
*v3 = 0;
v5 = sub_83AAE4(v4);
if ( v5 == 65 || v5 == 78 )
{
*(_BYTE *)(v1 + 891) = 1;
return 0;
}
else
{
*(_BYTE *)(v1 + 891) = 0;
return 0;
}
}