//
// sub_9909C from 0x9909c to 0x990d0 (52 bytes)
//
// 1 xrefs:
// > sub_9916A @ 0x9916c
//
// 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_9909C(int a1, int a2, int *a3, int a4)
{
int v5; // r1
if ( a2 )
return 31;
v5 = *(_DWORD *)(a1 + 404);
if ( v5 >= 6 )
v5 = 6;
*a3 = v5 & ~(v5 >> 31);
if ( a4 )
sub_BE220(a4, off_ECEA4[*(_DWORD *)(a1 + 376)], 32);
return 0;
}