//
// sub_8EB1A4 from 0x8eb1a4 to 0x8eb250 (172 bytes)
//
// 1 xrefs:
// > sub_8EB2B8 @ 0x8eb364
//
// 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:04:11 +0000
//
int __fastcall sub_8EB1A4(unsigned __int16 *a1)
{
int v1; // r3
v1 = (a1[22] << 6) | (8 * a1[29]) | a1[23];
if ( v1 <= 1034 )
{
if ( v1 < 1033 )
{
if ( v1 != 521 && v1 != 524 )
return -1;
return 3;
}
return 1;
}
if ( v1 == 1036 )
return 1;
if ( v1 != 2059 )
return -1;
return 0;
}