//
// sub_6E3C54 from 0x6e3c54 to 0x6e3dcc (376 bytes)
//
// 2 xrefs:
// > sub_6E3E58 @ 0x6e3fb0
// > sub_6E47B8 @ 0x6e48e4
//
// 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_6E3C54(int a1)
{
int v2; // [sp+8h] [bp-Ch]
int v3; // [sp+Ch] [bp-8h]
v2 = -1;
v3 = *(unsigned __int16 *)(a1 + 46);
switch ( *(_WORD *)(a1 + 44) )
{
case 8:
if ( v3 == 4 || v3 == 1 )
v2 = 0;
break;
case 0xB:
if ( v3 == 4 || v3 == 1 )
v2 = 2;
break;
case 0xC:
if ( v3 == 4 || v3 == 2 )
v2 = 3;
break;
case 0x10:
if ( v3 == 4 || v3 == 1 )
v2 = 4;
break;
case 0x20:
if ( v3 == 3 )
v2 = 5;
break;
default:
return v2;
}
return v2;
}