//
// sub_E1EE20 from 0xe1ee20 to 0xe1eeec (204 bytes)
//
// 1 xrefs:
// > sub_E1FE00 @ 0xe1fe50
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:09:45 +0000
//
bool __fastcall sub_E1EE20(__int64 a1, char *a2, unsigned __int64 a3, _DWORD *a4)
{
_BOOL4 v4; // w19
int v5; // w4
__int64 v8; // x0
int v9; // w0
v4 = 0;
if ( a3 > 3
&& (unsigned int)(unsigned __int8)*a2 - 48 <= 9
&& (unsigned int)(unsigned __int8)a2[1] - 48 <= 9
&& (unsigned int)(unsigned __int8)a2[2] - 48 <= 9 )
{
v5 = (unsigned __int8)a2[3];
v4 = a3 == 5 || v5 == 32;
if ( v4 )
{
v8 = strtol(a2, nullptr, 10);
v9 = sub_E21C50(v8);
if ( v9 == 1 )
v9 = 0;
*a4 = v9;
}
else if ( v5 == 45 )
{
v4 = *(_DWORD *)(a1 + 1672) == 7 || *(_DWORD *)(a1 + 1672) == 2;
if ( v4 )
*a4 = 1;
}
}
return v4;
}