//
// sub_6DB5E4 from 0x6db5e4 to 0x6db690 (172 bytes)
//
// 1 xrefs:
// > sub_6DB6F8 @ 0x6db7a4
//
// 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
//
int __fastcall sub_6DB5E4(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;
}